pentesting, updated

Testing for SSI Injection

Check whether user input reaches a page processed for Server-Side Includes, letting you execute directives.

Goal

Confirm input can’t inject an SSI directive that gets executed when the page is rendered.

How to test

Only relevant where .shtml/SSI processing is enabled. Inject an SSI directive into a field that gets written into such a page:

<!--#exec cmd="id" -->
<!--#echo var="DOCUMENT_ROOT" -->

What to look for

Command output or server variables appearing in the rendered page — confirms the directive executed.

Notes

Rare on modern stacks; check quickly (response headers/extension) and move on if SSI isn’t in use.

References

§ home
~/knubertus/home/
1,1 Top