Skip to content
SecurityElites
  • AI Red Teaming
    • Prompt Injection
    • LLM Hacking
    • Hacking AI
    • OWASP LLM Top 10
    • AI Security Testing Tools
    • AI in Security
    • AI Security Awareness
    • All AI Tutorials
  • AI Tools
    • All AI Security Tools
    • Vulnerabilities API
    • Agentic X Agents
    • AI Vulnerabilities Database
    • Suspicious Email or Link
    • Building With AI
    • AI in Your Company
    • Code, Cloud and Servers
    • Detect and Respond
    • Policies and Readiness
  • Bug Bounty
    • SE Bug Bounty Arena
    • Monthly Challenge
    • Hunter Certification
    • Hunting With AI
    • AI Targets
    • Leaderboard
    • My Reports
  • Labs
    • Free Hacking Labs
    • Premium Practice Labs
    • Prompt Injection Range
    • Attack Simulator (CTF)
    • Daily Challenge
    • Walkthroughs
    • DVWA Labs
    • HackTheBox Labs
    • Metasploitable Labs
    • TryHackMe Walkthroughs
  • Certification
    • SE-ARTCP Certification
    • Free Practice Exam
  • Courses
    • Academy: Day-by-Day Courses
    • Career Paths
    • AI LLM Hacking Course
    • Ethical Hacking Course
    • Bug Bounty Course
    • Kali Linux Course
    • Free CEH Practice Exam
  • Careers
    • AI Jobs
    • Career Tracks
    • Interview Prep Packs
    • Application Kit
  • Hacking
    • Ethical Hacking Basics
    • Trending
    • Security News
    • How to Hack Guides
    • Hacking Phases
    • Penetration Testing
    • Web Application Security
    • Website Hacking
    • Network Security
    • Cloud Hacking
    • Mobile Hacking
    • Android Hacking
    • Password Cracking
    • Social Media Hacking
    • Malware Analysis
    • Dark Web and Privacy
  • Tools
    • Email Breach Checker
    • Password Breach Checker
    • Dark Web Scanner
    • How Hackable Are You?
    • Google Dork Generator
    • CVE Explorer
    • Kali Linux Commands
    • Default Passwords
    • All Tools
    • Resources
    • Latest Tutorials
    • Cheat Sheets
    • Glossary
    • Interview Questions
    • Cyber Security Career
  • For Teams
    • AI Security Awareness
    • AI Agent Access Review
    • AI Risk Assessment
    • AI Application Review
    • Team Cohorts
    • AI Exposure Map
    • AI Incident Drill
    • AI Trust Page
    • AI Front Door
Get Premium
Sign In Join Free
Get PremiumGet CertifiedFor Teams
  • AI Red Teaming
    • Prompt Injection
    • LLM Hacking
    • Hacking AI
    • OWASP LLM Top 10
    • AI Security Testing Tools
    • AI in Security
    • AI Security Awareness
    • All AI Tutorials
  • AI Tools
    • All AI Security Tools
    • Vulnerabilities API
    • Agentic X Agents
    • AI Vulnerabilities Database
    • Suspicious Email or Link
    • Building With AI
    • AI in Your Company
    • Code, Cloud and Servers
    • Detect and Respond
    • Policies and Readiness
  • Bug Bounty
    • SE Bug Bounty Arena
    • Monthly Challenge
    • Hunter Certification
    • Hunting With AI
    • AI Targets
    • Leaderboard
    • My Reports
  • Labs
    • Free Hacking Labs
    • Premium Practice Labs
    • Prompt Injection Range
    • Attack Simulator (CTF)
    • Daily Challenge
    • Walkthroughs
    • DVWA Labs
    • HackTheBox Labs
    • Metasploitable Labs
    • TryHackMe Walkthroughs
  • Certification
    • SE-ARTCP Certification
    • Free Practice Exam
  • Courses
    • Academy: Day-by-Day Courses
    • Career Paths
    • AI LLM Hacking Course
    • Ethical Hacking Course
    • Bug Bounty Course
    • Kali Linux Course
    • Free CEH Practice Exam
  • Careers
    • AI Jobs
    • Career Tracks
    • Interview Prep Packs
    • Application Kit
  • Hacking
    • Ethical Hacking Basics
    • Trending
    • Security News
    • How to Hack Guides
    • Hacking Phases
    • Penetration Testing
    • Web Application Security
    • Website Hacking
    • Network Security
    • Cloud Hacking
    • Mobile Hacking
    • Android Hacking
    • Password Cracking
    • Social Media Hacking
    • Malware Analysis
    • Dark Web and Privacy
  • Tools
    • Email Breach Checker
    • Password Breach Checker
    • Dark Web Scanner
    • How Hackable Are You?
    • Google Dork Generator
    • CVE Explorer
    • Kali Linux Commands
    • Default Passwords
    • All Tools
    • Resources
    • Latest Tutorials
    • Cheat Sheets
    • Glossary
    • Interview Questions
    • Cyber Security Career
  • For Teams
    • AI Security Awareness
    • AI Agent Access Review
    • AI Risk Assessment
    • AI Application Review
    • Team Cohorts
    • AI Exposure Map
    • AI Incident Drill
    • AI Trust Page
    • AI Front Door
Sign In Join Free
Home/Bug Bounty Hunting/Bug Bounty Course/BB Day18: OAuth 2.0 Bug Bounty 2026 — CSRF in OAuth, Token Leakage & Account Takeover Chains
Bug Bounty Course

BB Day18: OAuth 2.0 Bug Bounty 2026 — CSRF in OAuth, Token Leakage & Account Takeover Chains

Mr Elite · April 12, 2026 · 14 min read
BB Day18: OAuth 2.0 Bug Bounty 2026 — CSRF in OAuth, Token Leakage & Account Takeover Chains
Share: 𝕏 Share on X in Share on LinkedIn * Share on Reddit
✨ AI Summary

This article is Day 18 of a 60-day bug bounty mastery course focused on OAuth 2.0 vulnerabilities in social login implementations. It maps the complete OAuth authorization code flow and identifies four critical attack vectors: missing state parameters enabling CSRF-based account takeover, loose redirect_uri validation allowing authorization code theft, token leakage via Referer headers to third-party services, and chaining these weaknesses into complete account compromise. The material matters because OAuth vulnerabilities consistently pay Critical severity in bug bounty programs and OAuth login buttons appear on nearly every modern web application.

Key insights
  • OAuth authorization code flow attack surfaceThe article identifies three distinct testing points in the OAuth 2.0 authorization code flow: Step 1 (authorization request) vulnerable to redirect_uri bypass, missing/weak state, and scope manipulation; Step 2 (authorization code returned in URL) vulnerable to Referer leakage and code reuse; Step 3 (token exchange server-side) vulnerable to redirect_uri mismatch bypasses. Each step involves parameters passed through browser redirects, which are trivially interceptable and modifiable.
  • Missing state parameter enables account takeoverWithout the state parameter (OAuth's CSRF token), an attacker can initiate an OAuth authorization with their own account, capture the resulting callback URL containing an authorization code, and send that URL to a victim via CSRF or phishing. When the victim clicks the link, their account becomes linked to the attacker's OAuth identity, allowing the attacker to log in as the victim using their own credentials—full account takeover without needing the victim's password.
  • Redirect_uri validation bypass patternsThe article provides seven specific redirect_uri bypass patterns: path traversal (https://app.com/callback/../attacker.com), query string injection (https://app.com/callback?x=https://attacker.com), subdomain registration (https://attacker.app.com/callback), @ character confusion (https://app.com@attacker.com/callback), URL encoding, extra slashes, and localhost bypass. Authorization servers often validate domain but not path, allowing path traversal attacks that redirect authorization codes to arbitrary paths on the legitimate domain.
  • Token leakage via Referer headersWhen authorization codes or access tokens appear in URLs (implicit flow or some authorization code implementations), and the page then loads third-party resources (Google Analytics, CDN scripts, fonts, ad networks), the browser automatically includes the full current URL in the Referer header sent to those third parties. Every analytics platform and CDN provider receives the authorization code in their access logs—silent credential theft without user awareness.
  • State parameter must be truly random and session-boundThe article includes a real-world example where a SaaS platform's OAuth implementation included a state parameter but used a static, non-randomly-generated value that appeared identically in every authorization request. This allowed attackers who had clicked the login button once to know the state value and trick victims into completing the OAuth flow with a predictable state. The fix required cryptographically random state generation tied to the current user session, demonstrating that presence of state alone is insufficient.
  • Practical OAuth mapping before exploitationExercise 1 requires mapping the complete OAuth flow in DevTools before attempting any vulnerability tests: documenting the client_id, redirect_uri, state parameter (and whether it changes each request), requested scopes, and response_type. The exercise also requires checking what third-party scripts load after OAuth completion, as this reveals potential Referer leakage paths. The article emphasizes that accurate mapping is essential—you cannot test redirect_uri without knowing the legitimate value, and you cannot validate state checking without knowing whether it exists.
  • Implicit flow tokens more dangerous than authorization codeThe article distinguishes response_type=token (implicit flow) from response_type=code (authorization code flow), noting that implicit flow exposes access tokens directly in the URL fragment, creating Referer leakage risk when third-party resources load. The PortSwigger lab for implicit flow authentication bypass demonstrates why implicit flow is more dangerous than the authorization code flow for token security.
  • Account takeover requires chaining multiple weaknessesComplete account takeover chains combine redirect_uri bypass (to capture the authorization code), missing state CSRF (to force a victim to initiate the flow), and code exchange (to obtain an access token). Each step amplifies the others; an attacker who can redirect codes to their own server and bypass CSRF protection can fully compromise a victim's account without ever obtaining their password, even if each individual weakness might seem lower severity in isolation.

Bottom line: OAuth vulnerabilities—particularly missing state parameters, loose redirect_uri validation, and token leakage—are consistently the highest-paying findings in bug bounty programs because they enable direct account takeover without credentials. Systematic testing using the seven redirect_uri bypass patterns, state validation checks, and Referer leakage detection on any OAuth implementation is essential reconnaissance for authentication attack surfaces.

🎯 BUG BOUNTY COURSE
FREE

Part of the 60-Day Bug Bounty Mastery Course

Day 18 of 60 · 30% complete

⚠️ Authorised Testing Only: OAuth vulnerability testing must only be performed against applications within your authorised bug bounty scope. OAuth CSRF attacks that link accounts or redirect tokens could affect real users if performed outside a controlled test environment. Always use your own test accounts when demonstrating OAuth vulnerabilities.
OAuth Bug Bounty 2026 :— the “Login with Google” button is on nearly every application you will test in a bug bounty programme. And behind that button is an authorization flow with multiple parameters that developers frequently misconfigure, skip CSRF protection on, or validate too loosely. A missing state parameter enables account takeover. A loose redirect_uri validation sends authorization codes directly to an attacker’s server. A token in a URL that the application shares with third-party scripts leaks via Referer headers to analytics providers. Each of these is a real, documented, commonly found vulnerability class that pays Critical in most programmes. Today you learn all of them.

🎯 What You’ll Master in Day 18

Understand the OAuth 2.0 authorization code flow and where each attack vector lives
Test for missing state parameter and exploit it as an OAuth CSRF
Enumerate and test redirect_uri validation bypasses systematically
Identify token leakage via Referer headers in post-OAuth page loads
Chain multiple OAuth weaknesses into a complete account takeover PoC

⏱️ 50 min read · 3 exercises

📋 What You’ll Master — OAuth Bug Bounty 2026

  1. The OAuth 2.0 Authorization Code Flow — What You Are Actually Attacking
  2. Missing State Parameter — OAuth CSRF and Account Takeover
  3. redirect_uri Validation Bypass — Stealing Authorization Codes
  4. Token Leakage via Referer — Silent Credential Theft
  5. Building the Complete Account Takeover Chain

In Day 17 you exploited JWT vulnerabilities to forge authentication tokens. OAuth sits one layer above — it is the flow that issues the tokens JWT attacks target. Understanding OAuth misconfigurations combined with JWT attacks gives you the complete authentication attack surface in the 60-Day Bug Bounty Mastery Course.


The OAuth 2.0 Authorization Code Flow — What You Are Actually Attacking

The OAuth 2.0 authorization code flow involves four entities: the user, the client application (the site with the “Login with Google” button), the authorization server (Google/GitHub/Facebook), and the resource server (the API). The flow produces an authorization code, which the client application exchanges for an access token behind the scenes. Every step involves parameters passed through browser redirects — and browser redirects are trivially interceptable and modifiable.

securityelites.com
OAuth 2.0 Authorization Code Flow — Attack Surface Map
STEP 1 — Authorization Request (User → Auth Server)
GET /authorize?client_id=X&redirect_uri=https://app.com/callback&state=RANDOM&scope=email&response_type=code
🎯 Test: redirect_uri bypass · missing/weak state parameter · scope manipulation

STEP 2 — Authorization Code Returned (Auth Server → User → App)
Redirect: https://app.com/callback?code=AUTH_CODE&state=RANDOM
🎯 Test: code in URL → Referer leakage · code reuse across clients

STEP 3 — Token Exchange (App → Auth Server, server-side)
POST /token {code, client_id, client_secret, redirect_uri}
🎯 Test: redirect_uri must match Step 1 exactly — mismatch = bypass

📸 OAuth 2.0 authorization code flow with attack surface annotations — three test points: redirect_uri and state in the authorization request, authorization code in the redirect URL, and redirect_uri validation in the token exchange. Each is a distinct vulnerability class.

🛠️ EXERCISE 1 — BROWSER (12 MIN · NO INSTALL)
Map the OAuth Flow on a Bug Bounty Target and Document Every Parameter

⏱️ Time: 12 minutes · Browser DevTools · any programme in scope with OAuth login

Step 1: Choose a bug bounty programme target with a
“Login with Google”, “Login with GitHub”, or similar
OAuth login button. Only use targets within programme scope.

Step 2: Open DevTools → Network tab → check “Preserve log”

Step 3: Click the OAuth login button

Step 4: In the Network tab, find the first redirect to the
authorization server (accounts.google.com, github.com/login/oauth, etc.)
Right-click → Copy → Copy URL

Step 5: In a text editor, parse the authorization URL:
– What is the client_id?
– What is the redirect_uri value?
– Is there a state parameter? If yes, does it change each time?
– What scopes are requested?
– What is the response_type? (code vs token)

Step 6: Complete the login flow

Step 7: In Network tab, find the callback request to the
redirect_uri. Does the URL contain the authorization code?

Step 8: Check what third-party scripts load on the page
after OAuth completes (analytics, CDN, fonts, ads).
If the code was in the URL at callback, it may have leaked
via Referer to all of these.

Document: full authorization URL, all parameters, any concerns.

✅ What you just learned: Mapping the OAuth flow before testing is essential — you cannot test redirect_uri if you do not know what the legitimate value is, and you cannot test state if you do not know whether it exists. The most common immediate finding from this mapping exercise is a missing state parameter — surprisingly common even in 2026. The third-party script check in Step 8 catches token leakage without any interception tool — if code= appears in the callback URL and the page then loads third-party scripts, those scripts receive the code in the Referer header.

📸 Save your mapped OAuth parameter list (redact any sensitive values) in your notes.


Missing State Parameter — OAuth CSRF and Account Takeover

The state parameter is OAuth’s CSRF token. Without it, an attacker can initiate an OAuth authorization with their own account, intercept the resulting redirect URL (before completing authorization), craft a CSRF payload from it, and trick a victim into visiting it. When the victim’s browser follows the link, it completes the OAuth flow — linking the attacker’s OAuth identity to the victim’s application account. The attacker can now log in as the victim using their own OAuth credentials.

TESTING FOR MISSING STATE PARAMETER
# Step 1: Start an OAuth flow — intercept with Burp
GET /authorize?client_id=CLIENT&redirect_uri=https://app.com/callback&response_type=code
# No ‘state’ parameter present → potential OAuth CSRF
# Step 2: If state IS present — check if it is validated
# In Burp Repeater, modify the state value to a random string
GET /callback?code=AUTH_CODE&state=TAMPERED_VALUE
# If the application accepts the modified state → no validation
# Step 3: Build the CSRF PoC (for missing state)
# Attacker initiates OAuth flow with attacker’s account
# Gets the callback URL: ?code=ATTACKER_CODE
# Sends victim this URL via CSRF/phishing
# Victim’s browser completes: attacker account linked to victim
# Step 4: Check if state is tied to user session
curl “https://app.com/callback?code=TEST&state=VALID_STATE_FROM_ANOTHER_SESSION”
# If accepted → state is not session-bound → still CSRF-able


redirect_uri Validation Bypass — Stealing Authorization Codes

The redirect_uri determines where the authorization server sends the authorization code after user consent. Strict validation accepts only the exact registered URI. Loose validation accepts any URI under the registered domain, or fails to check specific bypass patterns. If any modification is accepted, the authorization code is sent to the wrong destination — enabling code theft if that destination is attacker-controlled.

🌐 EXERCISE 2 — PORTSWIGGER (25 MIN)
Exploit OAuth Vulnerabilities Using PortSwigger Web Academy Labs

⏱️ Time: 25 minutes · Free PortSwigger account

Step 1: Go to portswigger.net/web-security/oauth
Step 2: Open lab: “Authentication bypass via OAuth implicit flow”
Step 3: Complete the lab — note how the implicit flow exposes
tokens directly in the URL fragment

Step 4: Open lab: “Forced OAuth profile linking”
This demonstrates account takeover via missing state
Step 5: Follow the lab — the attack flow:
a) Intercept the OAuth link request
b) Drop the request before the state is validated
c) Send the captured URL to the “victim” (same browser
in the lab’s victim simulation)
d) The victim’s account becomes linked to your OAuth identity

Step 6: Open lab: “OAuth account takeover via redirect_uri bypass”
Test redirect_uri modifications:
– Path traversal: https://legit.com/callback/../
– Query string: https://legit.com/callback?x=
– Subdomain: https://attacker.legit.com
Observe which modifications the auth server accepts

For each lab, document:
– The specific parameter that was vulnerable
– The exact payload used
– The impact achieved (account linkage, code theft, etc.)

✅ What you just learned: The PortSwigger OAuth labs demonstrate that each OAuth vulnerability class requires a different attack approach. The implicit flow lab shows why response_type=token (exposing tokens in URLs) is more dangerous than response_type=code. The forced linking lab shows the exact CSRF chain for missing state. The redirect_uri lab shows that authorization servers often validate domain but not path — allowing path traversal attacks that redirect codes to arbitrary paths on the legitimate domain. Each of these has appeared in real bug bounty reports at Critical severity.

📸 Screenshot completed lab confirmations and save it in your notes.


Token Leakage via Referer — Silent Credential Theft

When an authorization code or access token appears in a URL — which happens in the implicit flow and in some authorization code flow implementations — and the page then loads any third-party resources (Google Analytics, CDN scripts, fonts), the browser automatically includes the full current URL in the Referer header sent to those third parties. The authorization code is in that URL. Every analytics platform, CDN provider, and ad network that the page loads will receive it in their access logs.

TOKEN LEAKAGE VIA REFERER — DETECTION
# Step 1: In Burp — set up intercept on OAuth callback
# After OAuth redirects to: /callback?code=AUTH_CODE_HERE
# Step 2: Check if token/code is in the URL at callback
https://app.com/callback?code=4/0AfJohXnV… ← code in URL
# Step 3: Check what third-party requests fire after callback
# Burp → HTTP History → filter by Referer containing ‘code=’
GET /analytics.js HTTP/1.1
Referer: https://app.com/callback?code=4/0AfJohXnV…
# Authorization code just leaked to the analytics provider
# Step 4: Check if implicit flow exposes token in fragment
https://app.com/#access_token=TOKEN&token_type=Bearer
# Fragments don’t send in Referer — but check for JS reading location.hash
# Any postMessage or window.open call with the fragment = leakage


Building the Complete Account Takeover Chain

⚡ EXERCISE 3 — BURP SUITE (15 MIN)
Build an OAuth redirect_uri Bypass Test Suite in Burp Suite

⏱️ Time: 15 minutes · Burp Suite · in-scope OAuth target or PortSwigger lab

REDIRECT_URI BYPASS PAYLOAD LIST — BURP INTRUDER
# Start OAuth flow — intercept authorization request in Burp
GET /authorize?client_id=X&redirect_uri=https://app.com/callback&…
# Send to Repeater — test these redirect_uri modifications:
# 1. Path traversal
redirect_uri=https://app.com/callback/../attacker.com
# 2. Query string injection
redirect_uri=https://app.com/callback?x=https://attacker.com
# 3. Subdomain (if wildcard registered)
redirect_uri=https://attacker.app.com/callback
# 4. @ character confusion
redirect_uri=https://app.com@attacker.com/callback
# 5. URL encoding
redirect_uri=https://app.com%2Fcallback%2F..%2F..%2Fattacker.com
# 6. Extra slashes
redirect_uri=https://app.com//attacker.com/callback
# 7. Localhost bypass (dev environments)
redirect_uri=http://localhost/callback
# For each — check HTTP response: does auth server redirect to modified URI?
# Success = code appears in redirect to attacker-controlled domain

✅ What you just learned: The seven redirect_uri bypass patterns cover the full range of validation flaws — from pure path-based validation (bypassed with path traversal) through hostname-only validation (bypassed with subdomain or @ patterns) to wildcard domain matching (bypassed with subdomain registration). In Burp Repeater, work through each systematically and observe the response. Any 302 redirect to a modified URI is a finding. The impact level depends on whether you can register the destination — if you can receive the redirected code, you have a code theft vulnerability chainable to account takeover.

📸 Screenshot a Burp Repeater request showing a modified redirect_uri test and response and keep them in your notes.

🧠 QUICK CHECK — Day 18

An OAuth authorization request does not include a state parameter. You initiate an OAuth flow with your own test account, capture the callback URL containing the authorization code before completing the flow, and send that URL to a victim via a crafted link. The victim clicks the link and their account becomes linked to your OAuth identity. What vulnerability class is this and what is the severity?



Writing the OAuth Report — Impact Framing That Gets Paid

Triage teams rate OAuth bugs by what the flaw lets an attacker take over, not by the misconfiguration itself. Frame the report around account takeover and prove it with the least intrusive evidence.

  • Title: name the flaw, the endpoint and the impact, for example “Missing state parameter on /oauth/callback allows one-click account takeover”.
  • Steps to reproduce: give the exact authorization request and callback, and the attacker-controlled value (missing state, loose redirect_uri, leaked code). Number every step so triage can replay it.
  • Evidence: show the authorization code or token reaching a destination it should not, or one account linked to another identity. Use two test accounts you control, never a real user’s.
  • Impact: state plainly that it results in account takeover or unauthorised access, and which users are affected (everyone, or those who click a link).
  • Fix: recommend the specific control — exact redirect_uri matching, a verified state parameter, PKCE, and short-lived single-use codes.

Keep the proof minimal: linking your own two test accounts demonstrates the bug without touching anyone else’s data, which is what keeps a report in scope.

📋 OAuth Bug Bounty Checklist — Day 18

Check for state parameterMissing state = OAuth CSRF → account takeover via forced account linking
Test state validationModify state value in callback — accepted = not validated = still vulnerable
Test redirect_uri (7 patterns)Path traversal · query injection · subdomain · @ confusion · encoding · slashes · localhost
Check response_typeresponse_type=token (implicit) = access token in URL = Referer leakage risk
Check for Referer leakageCode/token in callback URL + third-party scripts = credentials leak via Referer header
Test scope manipulationAdd email/admin/write scopes — does auth server grant beyond what app registered?

🏆 Mark Day 18 as Complete

OAuth is on the attack surface of nearly every modern web application with social login. The four vulnerability classes you learned today — missing state, redirect_uri bypass, token leakage, and account takeover chains — are consistently the highest-paying findings in OAuth testing because they directly enable account takeover.


❓ Frequently Asked Questions

What is OAuth and why is it vulnerable?
OAuth 2.0 is the “Login with Google/GitHub” framework — it lets apps access resources without sharing passwords. Vulnerable because multiple parties communicate through interceptable browser redirects. Key vulns: missing state (CSRF), loose redirect_uri validation (code theft), tokens in URLs (Referer leakage).
What is the OAuth state parameter?
A random token generated by the client, included in the authorization request, and verified on return. It prevents CSRF on the OAuth flow. Without it, an attacker can trick a victim into linking their account to the attacker’s OAuth identity — account takeover without needing the victim’s password.
How do I test redirect_uri validation?
Modify redirect_uri in Burp Repeater with 7 patterns: path traversal, query string injection, subdomain prefix, @ confusion, URL encoding, extra slashes, and localhost. Any accepted modification that redirects the authorization code to a non-registered URI is a finding.
What is an OAuth account takeover chain?
Combining redirect_uri bypass (capture the code) + missing state CSRF (force victim to initiate flow) + code exchange = attacker logs in as victim. Each step amplifies the others into full account takeover without credentials.
What comes after Day 18 in the Bug Bounty course?
Day 19 covers CSRF — Cross-Site Request Forgery. OAuth CSRF is a specific application of CSRF principles; Day 19 covers the broader vulnerability class including token validation bypasses, SameSite cookie exploitation, and CSRF in API endpoints.
← Previous

Day 17: JWT Attacks Bug Bounty 2026

Next →

Day 19: CSRF Bug Bounty 2026

📚 Further Reading

  • JWT Attacks Bug Bounty 2026 — Day 17 covers JWT algorithm confusion and alg:none attacks — the token-level counterpart to OAuth’s flow-level vulnerabilities, often combined into complete authentication bypass chains.
  • 60-Day Bug Bounty Mastery Course — The complete course hub — Day 18 OAuth attacks are part of the authentication vulnerability phase covering Days 16–22, building from rate limiting through OAuth, CSRF, and HTTP request smuggling.
  • Authentication Bypass Hub — The complete authentication bypass category covering OAuth, JWT, CSRF, SAML, and session management attacks with real-world examples and PortSwigger lab references.
  • PortSwigger OAuth Attack Labs — Six interactive OAuth labs covering implicit flow bypass, forced account linking, redirect_uri bypass, and SSRF via OpenID dynamic client registration — the most comprehensive practical OAuth training available.
  • OAuth 2.0 Official Specification — The OAuth 2.0 RFC specification — understanding what the standard requires versus what implementations often skip is the foundation for finding every vulnerability class covered in this guide.
ME
Mr Elite
Owner, SecurityElites.com
The OAuth finding that gave me the most confidence in this vulnerability class was a medium-sized SaaS platform with a “Login with GitHub” button. The authorization request had a state parameter — so the naive check would have moved on. But the state was a static string, not randomly generated. The same value appeared in every single authorization request regardless of user or session. That meant any attacker who had ever clicked the login button knew the state value. They could initiate an OAuth flow, capture the callback URL, and send it to any victim — the static state would validate on the server side. Account takeover via a “validated” but completely predictable state parameter. The fix was two lines of code: generate a cryptographically random state value and tie it to the current session. The finding paid Critical. The lesson: check that the state is present, but also check that it is random, and also check that it is session-bound. All three conditions must be true for the CSRF protection to actually work.

🧪 Practice in browser

OAuth — Missing State Parameter (Account Takeover)

ConnectApp lets users link their Twitter account via OAuth. The client never sets the 'state' parameter on the authorization request — and never verifies it on the callback. Use that to link the victim's session to YOUR Twitter account.

AUTHINTERMEDIATE+100 XP
⚡ Start Lab →
Share: 𝕏 Share on X in Share on LinkedIn * Share on Reddit
oauth account takeover oauth csrf bug bounty oauth state parameter bypass oauth token leakage
⚡
Join free to earn XP for reading this article Track your progress, build streaks and compete on the leaderboard.
Join Free
Lokesh N. Singh aka Mr Elite
Lokesh N. Singh aka Mr Elite
Founder, Securityelites · AI Red Team Educator
Founder of Securityelites and creator of the SE-ARTCP credential. Working penetration tester focused on AI red team, prompt injection research, and LLM security education.
Linkedin ↗ Twitter ↗
About Lokesh ->
<- Previous Day Kali Linux Day16: Dirbuster Tutorial Kali Linux 2026 — GUI Directory Brute Force & Hidden File Discovery Next Day -> LLM Hacking 101 — How to Find Vulnerabilities in AI Systems (Ethical Hacker’s Guide 2026)
Free forever

Turn learning into XP.

Hack live AI, capture flags, and earn XP that converts to a real certification. No card, ever.

0Operatives
0Labs
  • Capture flags, earn XP
  • Climb from Script Kiddie → Legend
  • XP → SE-ARTCP certification
Create free profile →

New on SecurityElites

AI Security ToolsFreeCheck an email, a link, your code or your AI app.
Bug Bounty ArenaAIHunt bugs in chatbots, RAG search and AI agents, then write the report.
Academy19 coursesDay-by-day courses with labs, a mission and a quiz every day.
AI JobsNewOpen AI and AI security roles, each with interview questions and labs to prepare.
TrendingHotAI Scammer: How They Fake Faces and Voices, and How to Protect Yourself
Security NewsLiveOpenEMR flaws exploited within 24 hours of disclosure, VulnCheck says
Daily briefing
Loading today's intel…
🎲 Drop me in a random lab
Mission tracks
  • ▸AI LLM HackingFLAGSHIP
  • ▸Kali Linux
  • ▸Bug Bounty
  • ▸Ethical Hacking
  • ▸Hacking Labs
Top operatives · this week
🥇Mr EliteKernel Phantom4,022
🥈Math ElgringoExploit Hunter3,151
🥉Prodan MinevExploit Hunter2,256
Full leaderboard →
Free tools
  • ▸Google Dork Generator
  • ▸IP Lookup
  • ▸Port Scanner
  • ▸Whois Lookup
  • ▸CEH Practice Exam
Latest intel
AI Tools for Security Testing: What Works, What Fails and How to Use Them Safely AI Model and Data Attacks Explained: Poisoning, Backdoors, Theft and Defences RAG Security Explained: How Retrieval Systems Are Attacked and How to Defend Them AI-Powered Attacks Explained: How Criminals Use AI and How to Defend AI Jailbreaking Explained: How It Works and How to Defend Against It
SecurityElites

Free cybersecurity courses, hands-on labs and hacking tools -- from beginner to elite.

Courses

  • All Courses
  • AI LLM Hacking Course NEW
  • Kali Linux Course
  • Bug Bounty Course
  • Ethical Hacking
  • Hacking Labs

Topics

  • AI for Hackers
  • Ethical Hacking
  • Web App Security
  • OSINT
  • Penetration Testing

Platform

  • Free Tools
  • For Teams & Enterprises
  • AI Jobs
  • My Dashboard
  • Leaderboard
  • Register Free
© 2026 SecurityElites.com — All rights reserved.
  • Home
  • Dashboard
  • Leaderboard
  • Courses
  • Tools
  • Blog
  • About
  • Editorial Policy
  • Contact
  • Privacy Policy
  • Terms of Use
Home Learn Play Labs Ranks Join
Our seed round is openSeed round is open Invest in the future of AI security and training. Own a stake in SecurityElites. Invest now