Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I encountered a novel (to me anyway) form of injection attack in one of my logs

login as <!--#exec cmd="ls .."-->

Which looks like someone it trying to trigger sever side includes on an apache server, if the input text was echoed into an error message.

Can apache even be configured to process SSI on it's output stream? Or is there some more subtle vulnerability it's trying to exploit?

share|improve this question
up vote 3 down vote accepted

This article shows how to do black box probing to test for SSI Injection exploits using text very similar to what you describe.

An exploit would certainly be possible in the case that the text is written to a file and subsequently served by the webserver that supports SSI (whether or not that site otherwise uses SSI at all). I am not aware of a way that Apache can process SSI in the output stream.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.