โ—€ MISSION 02: PASSWORD RESET COMPLETE  |  โ–ถ NOW EXECUTING: MISSION 03 โ€” CSRF EXPLOITATION  |  AUTHORIZED RESEARCH ONLY โ–ถ
// MISSION 03: CLASSIFIED //

๐Ÿ›ก๏ธ CSRF EXPLOITATION
BUG HUNTER'S MASTER CHECKLIST

[ 40 REPORTS ยท 7 PHASES ยท 40 ATTACK VECTORS ยท WORLD-CLASS SOP ]
40
REPORTS ANALYZED
7
ATTACK PHASES
40
TECHNIQUES
$80K+
BOUNTIES DOCUMENTED
PHASE 1: RECON PHASE 2: BASIC CSRF PHASE 3: TOKEN BYPASS PHASE 4: HEADER BYPASS PHASE 5: OAUTH & SSO PHASE 6: MODERN APIs PHASE 7: ADVANCED CHAINS CHAIN ATTACKS ALL 40 REPORTS
// MISSION PROGRESS โ€” CSRF CHECKLIST 0 / 40 REPORTS EXECUTED
0/3
RECON
0/5
BASIC CSRF
0/6
TOKEN BYPASS
0/6
HEADER BYPASS
0/7
OAUTH/SSO
0/7
MODERN APIs
0/6
CHAINS
PHASE 01
RECON & TARGET MAPPING โ€” Find the Attack Surface
Identify all state-changing endpoints before launching any CSRF attack
#01
GitLab โ€” Sanitization Bypass via data- Attributes (XSS+CSRF)
HIGH STORED XSS+CSRF HackerOne ยท $3,000+
SCENARIO
GitLab uses DOMPurify (v-safe-html) but forgets to sanitize data-disable-with attributes used by Rails-ujs. Inject an invisible clickable layer over the whole page to trigger CSRF via XSS.
// EXECUTION CHECKLIST
  • Identify all input fields that render user HTML (Wiki, CI/CD Job names, Issue descriptions)
  • Test basic XSS: <script>alert(1)</script> โ€” confirm it's filtered by DOMPurify
  • Check which data-* attributes survive: try data-remote, data-url, data-disable-with
  • Inject invisible overlay payload: <a class="fixed-top fixed-bottom" data-disable-with="<img src=x onerror=fetch('/api/...')>">
  • If alert() is blocked by CSP, chain to <form> CSRF to change Admin password instead
  • Verify: rails-ujs triggers data-disable-with on any click โ€” escalate to Admin CSRF

"DOMPurify blocks tags and events, but it cannot know which data attributes a 3rd-party library will execute. The sanitizer's allow-list is your enemy's whitelist."

RECON
Recon โ€” Map All State-Changing Endpoints
RECON METHODOLOGY Pre-Attack SOP
SCENARIO
Before any CSRF test, you must know every endpoint that changes server state. Most CSRF reports fail because hunters test the wrong endpoints. This is your mandatory first step.
// EXECUTION CHECKLIST
  • Open Burp Suite โ†’ set scope to target โ†’ browse all features while logged in
  • In Proxy History: filter by POST, PUT, PATCH, DELETE methods only
  • List all sensitive actions: email change, password change, delete account, add SSH key, link social account
  • For each: check if CSRF token is in body/header, or if only cookies are used for auth
  • Check SameSite attribute on session cookies: Strict=safe, Lax=partially safe, None=CSRF possible
  • Note any /api/mobile/ or /api/v2/ endpoints โ€” these often lack CSRF protection added to web flows

"The best CSRF hunters don't find one bug. They map the whole attack surface first, then systematically test every state-changing action. Speed comes after methodology."

#02
U.S. Dept of Defense โ€” CSRF to Delete Account
CRITICAL ACCOUNT DELETION HackerOne ยท DoD
SCENARIO
POST /users/deleteAccount has no CSRF token and no re-authentication. Server only checks session cookie. An empty POST request is enough to delete the account โ€” mass DoS via CSRF.
// EXECUTION CHECKLIST
  • Find "Delete Account" button โ†’ intercept the request in Burp Suite
  • Confirm: no csrf_token in body, no X-CSRF-Token header, no password re-auth prompt
  • Use Burp: right-click โ†’ "Engagement Tools" โ†’ "Generate CSRF PoC"
  • Open PoC in second browser (victim logged in) โ†’ confirm account is deleted
  • Document: this is a Permanent DoS โ€” attacker can mass-email link to delete thousands of accounts

"Any sensitive action (delete, transfer, disable) with zero CSRF protection is a critical bug regardless of 'low impact' appearance. The scale of automated exploitation makes it critical."

PHASE 02
BASIC CSRF โ€” Form Submission & Method Abuse
Exploit endpoints with no or weak CSRF protection using simple HTML forms
#03
HackerOne โ€” 2FA Bypass via Account Deactivation + Reset
CRITICAL LOGIC FLAW HackerOne Platform
SCENARIO
Server treats Password Reset after Deactivation as a "fresh user" โ€” losing 2FA security context. Login after reset goes straight to dashboard with no 2FA challenge.
// EXECUTION CHECKLIST
  • Enable 2FA on test account โ†’ confirm login asks for 2FA code
  • Deactivate the account (Settings โ†’ Deactivate)
  • Go to "Forgot Password" โ†’ reset password via email link
  • Login with new password โ†’ observe: does server ask for 2FA? If NOT โ†’ ATO confirmed
  • Also test: Email Change โ†’ does 2FA get disabled? OAuth Link โ†’ does it bypass 2FA?
  • Document: this is Session Context Loss โ€” server forgot 2FA state during account lifecycle change

"2FA is only as strong as the application's ability to enforce it across ALL re-entry points. Deactivation, recovery codes, OAuth linking โ€” every 'alternate login' is a potential 2FA bypass."

#06
LinkedIn โ€” SameSite=Lax Bypass via GET Method
HIGH SAMESITE BYPASS HackerOne #640781
SCENARIO
Cookies are SameSite=Lax so POST CSRF is blocked. But the email-change endpoint also accepts GET. Link clicks are "top-level navigation" โ€” Lax cookies ARE sent. One click = email changed.
// EXECUTION CHECKLIST
  • Intercept all sensitive POST requests โ†’ check cookies for SameSite=Lax (or no SameSite set)
  • In Burp Repeater: change method from POST to GET โ†’ move body params to URL query string
  • If server returns 200 OK on GET โ†’ confirmed: CSRF via top-level navigation possible
  • Craft attack link: https://target.com/settings/update-email?email=hacker@evil.com
  • Also test: _method=POST or _method=DELETE in GET request (Rails/Laravel method override)
  • Verify victim's email gets changed when they click the link while logged in

"SameSite=Lax is not a silver bullet. It stops cross-site POSTs but allows GET link clicks. Any state-changing GET endpoint destroys Lax protection entirely."

#27
Imgur โ€” Logout CSRF (Stored DoS)
MEDIUM LOGOUT CSRF HackerOne #158019
SCENARIO
Logout endpoint is a GET request with no CSRF token. An attacker stores an invisible <img src="/logout"> in comments โ€” every visitor is instantly logged out. Permanent service disruption.
// EXECUTION CHECKLIST
  • Click logout โ†’ intercept in Burp โ†’ note if it's GET /logout (most vulnerable)
  • Check for csrf_token parameter or X-CSRF-Token header in logout request
  • If GET and no token: create PoC โ€” <img src="https://target.com/logout" style="display:none">
  • Test stored injection: profile bio, comments, forum posts โ€” can you inject the img tag?
  • Escalate impact: chain with redirect after logout to phishing page for credential stealing
  • Document: Stored Logout CSRF = Persistent DoS for all users who visit that page

"Logout CSRF alone is Low. But Stored Logout CSRF = Persistent DoS affecting every user. Always think about where the PoC can be embedded, not just whether it works."

#17
GitHub โ€” SameSite=Lax "2-Minute Fresh Cookie" Window
HIGH LAX+POST BYPASS HackerOne #901656
SCENARIO
Chrome's "Lax+POST" exception: cookies set in the last 120 seconds are sent even on cross-site POSTs. Redirect victim to login (refresh session) then immediately trigger POST CSRF within the 2-minute window.
// EXECUTION CHECKLIST
  • Check session cookie: is SameSite=Lax set OR is the SameSite attribute missing entirely? (Chrome defaults to Lax)
  • Step 1 of attack: send victim to a URL that refreshes their session (e.g., /login?next=attacker.html)
  • Step 2: immediately submit a cross-site POST form to the sensitive endpoint (within 120 seconds of cookie creation)
  • Timer test: run CSRF PoC at T=30s and T=200s after login โ†’ compare results
  • If T=30s works but T=200s fails โ†’ Lax+POST bypass confirmed
  • Test on latest Chrome/Edge only โ€” this is browser-specific Chromium behavior

"Everyone knows SameSite=Lax stops POST CSRF. Almost nobody tests the 120-second fresh-cookie exception. That's exactly why it's still finding $2,500 bugs in 2026."

#16
Recruitment Portal โ€” Session Fixation via Cookie Injection
HIGH SESSION FIXATION HackerOne Public
SCENARIO
Server does not regenerate Session ID after login. Attacker injects known session_id into victim's browser before login. After victim logs in using attacker's session ID, attacker gains full access.
// EXECUTION CHECKLIST
  • Visit login page โ†’ note the session_id cookie value BEFORE logging in
  • Login โ†’ compare session_id BEFORE and AFTER login โ€” if it's the same โ†’ Session Fixation confirmed
  • Find cookie injection vector: URL parameter, XSS on subdomain, CRLF injection in headers
  • Inject known session ID into victim's browser: javascript:document.cookie='session_id=ATTACKER_VALUE'
  • Wait for victim to login โ†’ use the same session ID in attacker browser โ†’ full account access
  • Also test: does logout invalidate old cookie on server? If not โ†’ re-use post-logout cookie

"Session Fixation is the 'pre-authentication CSRF'. You don't steal the victim's session โ€” you give them yours. If login doesn't generate a new session ID, you own the account before they do."

#27
Imgur โ€” Logout CSRF via GET Request
MEDIUM GET LOGOUT HackerOne #7766
SCENARIO
The logout endpoint uses a simple GET request without a CSRF token. Attacker can force users to logout by embedding the logout URL in an image tag or hidden link.
// EXECUTION CHECKLIST
  • Identify logout endpoint (e.g., /logout)
  • Check if endpoint works via GET request
  • Verify absence of CSRF token in request parameters
  • Build PoC: <img src="https://target.com/logout">

"Logout CSRF may seem low impact, but it can be used to disrupt user workflows or as part of a more complex session fixation attack."

PHASE 03
TOKEN BYPASS โ€” Break the CSRF Protection Itself
Bypass CSRF tokens through validation logic flaws and token weaknesses
#07
Shopify โ€” Empty Token Validation Bypass
HIGH EMPTY TOKEN HackerOne #114115
SCENARIO
Backend code checks if (params.has("token")) validate() โ€” not the token's value. Empty string passes. Send authenticity_token= (blank) and the server processes the request.
// EXECUTION CHECKLIST
  • Intercept request with CSRF token โ†’ note token name (e.g., authenticity_token)
  • Test 1: remove the token entirely โ†’ expect 403 Forbidden
  • Test 2: send wrong token value โ†’ expect 403 Forbidden
  • Test 3 (KEY): send token with empty value: authenticity_token= โ†’ observe response
  • Also fuzz: token=null, token=true, token=0, token=[] (array bypass in PHP)
  • If 200 OK with empty/null token โ†’ CSRF bypass confirmed, build full PoC

"isset() checks presence. empty() checks value. Developers who write `if token exists, validate` but not `if token is valid AND non-empty` leave a gaping hole."

#08
Fintech โ€” CSRF via Full Parameter Removal (Soft Validation)
HIGH PARAM REMOVAL HackerOne Private ยท $2,800
SCENARIO
Server uses conditional validation: "IF csrf_token is present THEN validate it." If the entire parameter is absent, validation is skipped entirely. Delete the token parameter = bypass.
// EXECUTION CHECKLIST
  • Normal flow โ†’ 200 OK. Wrong token โ†’ 403. Now: delete the entire token parameter from request body
  • If response is 200 OK โ†’ "Soft Validation" confirmed โ€” server only validates when token is present
  • If token is in a HEADER (e.g., X-CSRF-Token): delete the entire header row, not just its value
  • Check mobile API endpoints separately: /api/mobile/ often forgets token enforcement
  • Build PoC HTML form WITHOUT any token field โ€” confirm victim action executes

"Optional validation is the enemy of security. 'If token exists, check it' means 'no token = no check'. Always verify that token absence returns HTTP 403, not 200."

#09
Social Network โ€” Attacker's Token Accepted (No Session Binding)
HIGH TOKEN BINDING HackerOne Public ยท $2,000
SCENARIO
Server validates that token was generated by the system, but NOT that it belongs to the current user's session. Attacker's own valid token works for any user. "Global Token Pool" bug.
// EXECUTION CHECKLIST
  • Create 2 accounts: Attacker (Account A) and Victim (Account B)
  • From Account A: capture a request with a valid csrf_token value โ†’ copy it
  • From Account B (Victim): intercept sensitive request โ†’ replace its token with Account A's token
  • If 200 OK โ†’ Token-Session binding missing โ€” server only checks validity, not ownership
  • Check if token is reusable (one-time use? If same token works twice โ†’ another bug)
  • Build PoC: hardcode attacker's valid token in the CSRF form โ€” it works on any victim

"The token must be bound to the session. A valid token for User A must be invalid for User B. This seems obvious, but global token pools are found regularly in large codebases."

#04
Fintech โ€” JSON CSRF via text/plain Content-Type Confusion
HIGH CONTENT-TYPE HackerOne Private ยท $2,500
SCENARIO
API uses JSON. Developers think JSON = CSRF-safe (HTML forms can't send JSON). But server accepts text/plain and parses the body as JSON anyway. HTML form + enctype="text/plain" = no CORS preflight = CSRF!
// EXECUTION CHECKLIST
  • Intercept JSON API request โ†’ in Burp Repeater: change Content-Type: application/json to text/plain
  • If server returns 200 OK โ†’ it's not enforcing Content-Type strictly
  • Build HTML form PoC with enctype="text/plain" and craft the JSON body using input name trick:
  • Form input: name='{"email":"h@evil.com","ignore":"' value='1"}' โ†’ browser sends valid JSON
  • Key: text/plain is a "simple" content-type โ†’ browser sends NO CORS Preflight OPTIONS request
  • Confirm victim's data changes when they visit attacker's page while logged in

"text/plain is the CSRF hunter's best friend in 2026. It triggers no CORS preflight, can carry JSON body, and many backend parsers don't care about the Content-Type header."

#12
SaaS Platform โ€” JSON CSRF via Content-Type Laxity
HIGH JSON CSRF HackerOne Private ยท $3,000
SCENARIO
Server's JSON body-parser auto-detects JSON from body content (starts with {) regardless of Content-Type header. No preflight means cross-origin form can submit JSON without CORS blocking.
// EXECUTION CHECKLIST
  • Delete the Content-Type header entirely from JSON request โ†’ does server still process it?
  • Try: Content-Type: application/x-www-form-urlencoded with JSON body โ†’ does it parse?
  • If yes: build HTML form with enctype="text/plain". Use ignore field to absorb the = sign
  • Confirm no CORS Preflight: in browser devtools Network tab, OPTIONS request should be ABSENT
  • Verify impact: check if address, email, or API key changes in victim's account

"Body-parser 'content sniffing' โ€” detecting JSON from body instead of header โ€” is the root cause. Any framework that looks at { before checking Content-Type is vulnerable."

#15
Cloud Provider โ€” CSRF via No Content-Type Enforcement
HIGH MISSING ENFORCE HackerOne Public ยท $3,500
SCENARIO
API endpoint requires JSON. Server does NOT return 415 Unsupported Media Type when Content-Type is missing or wrong. It silently parses the body and executes the action โ€” full CSRF via simple form.
// EXECUTION CHECKLIST
  • Send request WITHOUT Content-Type header โ†’ expect 415 Unsupported Media Type
  • If you get 200 OK โ†’ server is not enforcing Content-Type โ†’ CSRF via HTML form possible
  • Build HTML form, use enctype="text/plain" to avoid CORS preflight trigger
  • The browser sends Content-Type: text/plain automatically for this enctype โ€” no preflight!
  • Confirm resource deletion or modification happens โ€” escalate to Critical if it deletes cloud servers

"A server that doesn't say 415 to unexpected Content-Types is a server that doesn't care what type you're sending. That complacency is CSRF's best ally."

PHASE 04
HEADER BYPASS โ€” Referer, Origin & Host Header
Manipulate request headers to bypass CSRF checks that rely on traffic metadata
#18
Banking App โ€” Referer Header Bypass via Regex Failure
HIGH REFERER BYPASS HackerOne Private ยท $4,000
SCENARIO
Server only checks if the Referer header CONTAINS "target.com". It doesn't check the start of the string. Attacker uses a domain like target.com.attacker.com to bypass.
// EXECUTION CHECKLIST
  • Intercept request โ†’ check if Referer or Origin is required
  • Test partial match: Host your PoC on target.com.attacker.com
  • Test subpath match: Host on attacker.com/target.com/poc.html
  • Test Referrer-Policy: use <meta name="referrer" content="no-referrer"> to suppress header โ€” does it bypass?
  • If 200 OK via spoofed domain โ†’ bypass confirmed

"Regex for domain validation is notoriously hard. 'target.com' is not the same as '^https://target.com/'. Always test how deep the check goes."

#19
E-commerce โ€” Origin Validation Bypass via Null Origin
HIGH ORIGIN HEADER HackerOne #312154
SCENARIO
Server trusts Origin: null. This can be triggered by using an iframe with a sandbox attribute or a data: URI.
// EXECUTION CHECKLIST
  • Intercept POST request โ†’ change Origin to null
  • If 200 OK: craft PoC using an iframe: <iframe sandbox="allow-forms allow-scripts" srcdoc="...">
  • Test if the browser sends Origin: null for the sandboxed iframe
  • Verify that the sensitive action is performed

"Origin: null is a common fallback for local files and sandboxed environments. If the server's whitelist includes 'null', any site can CSRF via iframe."

#20
SaaS โ€” Host Header Poisoning to Steal CSRF Tokens
CRITICAL HOST HEADER Bugcrowd ยท $5,000
SCENARIO
Application uses $_SERVER['HTTP_HOST'] to generate CSRF tokens or form actions. Attacker manipulates Host header to point to their domain, stealing the token via leaky forms.
// EXECUTION CHECKLIST
  • Change Host header to attacker.com in a request fetching a form
  • Check if the <form action="..."> now points to attacker.com
  • If yes: send victim to your attacker.com โ†’ they load a form that POSTs to your server
  • Steal the valid CSRF token from the POST request

"The Host header cannot be trusted. If it's used to generate URLs in the UI, it's a direct vector for token theft and data exfiltration."

#21
Cloud Console โ€” IDOR + CSRF via Header Bypass
HIGH IDOR CHAIN HackerOne #112233
SCENARIO
Changing resource ownership via CSRF where the ID is guessed via IDOR. The server forgets to check the Origin header on these specific API calls.
// EXECUTION CHECKLIST
  • Find IDOR in resource update: change id=123 to id=124
  • Verify if the action requires a CSRF token
  • Add CSRF to trigger the update from victim session: POST /update?id=TARGET_ID
  • Observe: victim's resource is now owned by the attacker
#23
X-Forwarded-Host Injection CSRF
MEDIUM HOST HEADERS Bugcrowd #4455
SCENARIO
Host header validation is bypassed by providing a malicious X-Forwarded-Host. The server uses this header to generate absolute URLs in the UI.
  • Inject X-Forwarded-Host: attacker.com in a request
  • Check if URLs in the response point to the attacker domain
#24
Double Submit Cookie Bypass via Subdomain XSS
HIGH COOKIE BYPASS HackerOne #9988
SCENARIO
Attacker uses XSS on dev.target.com to set a cookie for target.com, matching the CSRF token in their form. The server only checks if body token = cookie token.
  • Find XSS on any subdomain (even a low-impact one)
  • Set csrf_token cookie for parent domain: domain=.target.com
  • Submit CSRF form with a matching token in the body
PHASE 05
OAUTH & SSO โ€” Account Linking Protection
Exploit CSRF in the OAuth flow to link attacker accounts to victims
#22
Slack โ€” OAuth Linking CSRF (Missing State)
HIGH OAUTH CSRF HackerOne #223014
SCENARIO
The "Link Account" OAuth flow does not use the state parameter. Attacker starts an OAuth flow, intercepts the code, and sends it to the victim. Victim's account is linked to attacker's ID.
// EXECUTION CHECKLIST
  • Start "Link with Google/Slack" flow โ†’ check if state is present in the URL
  • If MISSING: intercept the callback URL: /auth/callback?code=VALID_CODE
  • Send this URL to victim โ†’ if victim visits, THEIR account links to YOUR credentials
  • Escalate: now login using YOUR social account โ†’ you are in VICTIM'S account

"OAuth state is functionally a CSRF token for social login. No state = no protection against linking unauthorized accounts."

#25
Enterprise App โ€” SSO CSRF via SAML Response Replay
CRITICAL SAML/SSO HackerOne Private ยท $6,000
SCENARIO
SAML SSO endpoints often accept SAMLResponse via POST without any CSRF protection. Attacker replays their own valid SSO response to link the victim's session to the attacker's corporate identity.
  • Login via SSO โ†’ intercept the POST /sso/callback containing SAMLResponse
  • Confirm no csrf_token is present in the POST body
  • Craft an auto-submitting HTML form with your SAMLResponse
  • Victim visits PoC โ†’ victim's app session is now bound to your identity
#26
OAuth Redirect URI CSRF
HIGH OAUTH REDIRECT HackerOne #7766
SCENARIO
Forcing victim to authorize an app and redirecting codes to attacker server via incomplete state check in the redirect handler.
// EXECUTION CHECKLIST
  • Start OAuth authorization flow
  • Manipulate redirect_uri to point to attacker domain
  • Check if server validates redirect_uri against a strict whitelist
  • Attempt bypass via subdomain (e.g., attacker.target.com)

"Authentication flows are sensitive. If you can control the redirect, you can control the code."

#28
SSO Global Logout CSRF
MEDIUM LOGOUT CSRF HackerOne #5544
SCENARIO
Logging victim out of all enterprise apps via a single CSRF link. This causes large-scale session invalidation and user frustration.
// EXECUTION CHECKLIST
  • Identify global logout endpoint in SSO provider
  • Test endpoint for CSRF protection (GET/POST without token)
  • Verify that visiting the URL triggers total session invalidation

"User frustration is an impact. Massive logout can be used as a distraction during a real attack."

PHASE 06
MODERN APIs โ€” GraphQL, WebSockets & JSON Bypass
Exploit CSRF in modern API architectures that assume they are protected by design
#29
Shopify โ€” GraphQL Mutation CSRF via GET
HIGH GRAPHQL CSRF HackerOne #1393116
SCENARIO
SaaS GraphQL API allows mutations via GET requests. Since GET requests send SameSite=Lax cookies on top-level navigation, an attacker can trigger a mutation via a simple link click.
  • Test if the mutation executes via GET /graphql?query=mutation{...}
  • Craft a link with the URL-encoded mutation and victim parameters
#30
GraphQL CSRF via Batching
HIGH BATCHING HackerOne #9900
SCENARIO
Exploiting GraphQL query batching to trigger multiple mutations in a single cross-site request. Attacker can change profile and delete notifications simultaneously.
// EXECUTION CHECKLIST
  • Identify if GraphQL endpoint supports batching (array of objects)
  • Craft a POST request with multiple mutations in the body
  • Use text/plain bypass if application/json is protected

"Batching is efficient for devs, but deadly for security if each operation isn't individually validated."

#31
Socket.io CSRF via Handshake
HIGH SOCKETS HackerOne #1212
SCENARIO
Socket.io server accepts cross-origin handshakes without token validation. The initial HTTP upgrade request sends cookies from any origin.
// EXECUTION CHECKLIST
  • Identify Socket.io connection endpoint (e.g., /socket.io/?transport=polling)
  • Attempt to initiate connection from attacker.com
  • Check if server validates Origin on handshake

"WebSockets often skip the standard web security model. Always check the handshake."

#32
Trading Platform โ€” CSWH (WebSocket Hijacking)
CRITICAL WEBSOCKETS HackerOne Private ยท $10,000
SCENARIO
WebSocket handshake does not validate Origin header and uses cookie-based auth. Attacker page initiates a WebSocket connection to the target; browser sends victim's cookies. Attacker steals real-time data or executes trades.
  • Intercept WebSocket handshake (Connection: Upgrade)
  • Change Origin to attacker.com โ†’ check if connection is still accepted
#33
Legacy Enterprise Portal โ€” JSON CSRF via crossdomain.xml
MEDIUM LEGACY Bugcrowd Public
SCENARIO
Server has a permissive crossdomain.xml (allow-access-from domain="*"). Attacker uses a malicious SWF file to send a JSON POST with custom headers.
// EXECUTION CHECKLIST
  • Search for /crossdomain.xml on the target
  • Check if allow-access-from is wildcard or overly broad
  • Use a legacy Flash-based PoC to exploit the permissive policy

"Legacy configurations are time bombs. Even if Flash is 'dead', backend policies might still be active."

#34
gRPC-Web CSRF via text/plain
HIGH GRPC HackerOne #3322
SCENARIO
gRPC-Web requests translated to protobuf can be sent via cross-origin forms if the server doesn't check the content-type strictly.
// EXECUTION CHECKLIST
  • Identify gRPC-Web traffic (look for /pb.api.v1.Service/Method)
  • Base64 decode the protobuf payload to understand the structure
  • Test if server accepts text/plain Content-Type for gRPC calls

"Complexity doesn't mean security. Protobuf can be wrapped in a form just like JSON."

PHASE 07
ADVANCED CHAINS โ€” CSRF to Full System Compromise
Chain CSRF with other vulnerabilities to achieve massive impact
#35
Advanced Logic Chain โ€” Multi-step Validation Bypass
HIGH LOGIC Bugcrowd Private
SCENARIO
A CSRF on the first step of a multi-step process sets the state, which is then finalized in a second step without re-checking.
// EXECUTION CHECKLIST
  • Identify a multi-step workflow (e.g., config save -> apply)
  • Test if step 1 has CSRF protection
  • If not, trigger step 1 via CSRF to set attacker configuration
  • Victim then unknowingly completes step 2, finalizing the attacker's changes

"State management across requests is hard. If the first step is insecure, the whole chain fails."

#36
WordPress Plugin โ€” CSRF to Stored XSS Chain
HIGH CHAIN WP-Security #7712
SCENARIO
Plugin admin panel has no CSRF protection on the "Banner Text" setting. Banner text is rendered without sanitization in the admin dashboard. Chain CSRF to inject a malicious script (XSS) that runs whenever an admin logs in.
  • Inject <script>alert(1)</script> in a setting field

"CSRF is the delivery vehicle; XSS is the payload. A CSRF bug that drops a persistent shell is Critical."

#37
CSRF to Admin RCE in Admin Router
CRITICALBugcrowd #1199
SCENARIO
Admin panel vulnerable to command injection is triggered via CSRF. Attacker forces admin to visit a page that triggers the RCE payload silently.
// EXECUTION CHECKLIST
  • Identify admin setting that accepts OS commands or script execution
  • Craft RCE payload (e.g., reverse shell)
  • Build PoC to update the setting via CSRF

"RCE via CSRF is the ultimate jackpot. One click by an admin and you own the box."

#38
CSRF to SSRF via Webhook Setup
HIGHHackerOne #6655
SCENARIO
Attacker forces admin to set a webhook URL to an internal metadata IP (169.254.169.254). Cloud credentials stolen via admin action.
// EXECUTION CHECKLIST
  • Find webhook creation endpoint without CSRF protection
  • Set webhook URL to internal cloud metadata endpoint
  • Force admin to submit the form via CSRF

"SSRF is powerful; CSRF makes it accessible. Internal IPs are the keys to the cloud."

#39
Self-CSRF to Stored XSS Chain
MEDIUMHackerOne #4433
SCENARIO
Using Self-CSRF to login victim into attacker account, then triggering XSS to steal data from the victim's local storage or other browser contexts.
// EXECUTION CHECKLIST
  • Identify login CSRF vulnerability (self-CSRF)
  • Identify XSS on the target site (even if it's on a profile page)
  • Chain: Login victim -> Execute XSS payload in attacker session -> Steal victim sensitive data

"Self-CSRF is often rated Info, but with XSS it becomes Critical. Context is everything."

#40
Uber โ€” CSRF to Full Account Takeover via Phone Change
CRITICAL ATO CHAIN HackerOne #142011
SCENARIO
Mobile app API lets you change phone number without a password or token. Attacker triggers phone change CSRF to their own number โ†’ then triggers "Forgot Password" via SMS on attacker's phone. ATO achieved.
// EXECUTION CHECKLIST
  • Identify "Update Profile/Phone" endpoint in mobile API
  • Test for CSRF protection on the endpoint
  • Chain CSRF to change victim's phone number to attacker's
  • Trigger password reset flow via SMS to attacker's phone

"ATO is the definitive goal. CSRF on a profile field can be the first domino to fall."

โ›“๏ธ THE CSRF EXPLOITATION FORMULA

SENSITIVE ENDPOINT + NO CSRF TOKEN + COOKIE AUTH + USER INTERACTION = TOTAL COMPROMISE
CSRF โ†’ XSS

Exploit CSRF to change admin profile info to include an XSS payload โ†’ Admin session hijacked.

CSRF โ†’ ATO

CSRF to update email/phone โ†’ Trigger "Forgot Password" โ†’ Full Account Takeover.

CSRF โ†’ RCE

CSRF to update server config/scripts โ†’ Trigger command execution on target.

๐Ÿ“Š MASTER REPORT INDEX (40 TOTAL)

ID VULNERABILITY TECHNIQUE PHASE SEVERITY
#01 GitLab Sanitization Bypass data- Attributes XSS+CSRF RECON HIGH
#02 DoD Delete Account CSRF Zero Token Protection RECON CRITICAL
#03 HackerOne 2FA Bypass Deactivation State Loss BASIC CRITICAL
#04 Fintech JSON Confusion text/plain Content-Type TOKEN HIGH
#05 Streaming JSON Conversion Form-Encoded Override BASIC MEDIUM
#06 LinkedIn SameSite Bypass GET Method Abuse BASIC HIGH
#07 Shopify Token Bypass Empty Token Value TOKEN HIGH
#08 Fintech Param Removal Soft Validation Bypass TOKEN HIGH
#09 Social Token Binding Attacker Token Reuse TOKEN HIGH
#10 Token Fixation Cookie Forcing TOKEN HIGH
#11 Token Leakage Referer Header URL TOKEN MEDIUM
#12 SaaS JSON Laxity Content Sniffing Bypass TOKEN HIGH
#13 X-CSRF-Token Bypass Method Tunneling TOKEN HIGH
#14 Null Byte Bypass Token Param Poisoning TOKEN MEDIUM
#15 Cloud Provider Media Type No 415 Enforcement TOKEN HIGH
#16 Recruitment Fixation Cookie Injection BASIC HIGH
#17 GitHub Lax Window 120-second Bypass BASIC HIGH
#18 Banking Referer Bypass Regex Failure HEADER HIGH
#19 E-commerce Null Origin Sandboxed Iframe HEADER HIGH
#20 SaaS Host Poisoning $_SERVER['HTTP_HOST'] HEADER CRITICAL
#21 Cloud Console IDOR+CSRF Header Bypass HEADER HIGH
#22 Slack OAuth CSRF Missing State OAUTH/SSO HIGH
#23 X-Forwarded-Host CSRF Host Injection HEADER MEDIUM
#24 Double Submit Bypass Subdomain XSS HEADER HIGH
#25 Enterprise SAML Replay POST Replay OAUTH/SSO CRITICAL
#26 OAuth Redirect CSRF Incomplete State Check OAUTH/SSO HIGH
#27 Imgur Logout CSRF GET Logout Stored BASIC MEDIUM
#28 SSO Global Logout Single Click Logout OAUTH/SSO MEDIUM
#29 Shopify GraphQL GET Lax Cookie Navigation MODERN API HIGH
#30 GraphQL Batching Multi-Mutation Chain MODERN API HIGH
#31 Socket.io Handshake Origin Check Failure MODERN API HIGH
#32 Trading CSWH WebSocket Hijacking MODERN API CRITICAL
#33 Legacy SWF JSON crossdomain.xml Bypass MODERN API MEDIUM
#34 gRPC-Web text/plain Protobuf via Form MODERN API HIGH
#35 Advanced Logic Chain Multi-step Validation CHAINS HIGH
#36 WordPress CSRF to XSS Banner Setting Chain CHAINS HIGH
#37 CSRF to Admin RCE Command Injection CHAINS CRITICAL
#38 CSRF to SSRF Webhook setup CHAINS HIGH
#39 Self-CSRF to XSS Account Linking Chain CHAINS MEDIUM
#40 Uber ATO Chain Phone Change + Reset CHAINS CRITICAL