WHAT IS A BUG BOUNTY?

Companies pay you to hack them. Legally.

You test within their rules → find bugs → write report → get paid.

Market growing 12-15% CAGR through 2035 . This is a career.


PLATFORMS THAT ACTUALLY PAY

Platform

Best For

Why

HackerOne

Overall

Largest community, fastest triage

Bugcrowd

Variety

Massive public/private mix

Immunefi

Web3

Highest payouts (six figures)

Intigriti

Beginners

Smoothest onboarding

YesWeHack

Privacy

EU-based, transparent

Synack

High-end

Invite-only, enterprise $$$


WHAT ACTUALLY PAYS

Severity

Range

Low

$100 - $500

Medium

$500 - $2,000

High

$2,000 - $10,000

Critical

$10,000 - $250,000+

Web3 Critical

$100,000 - $2,000,000+

Average blockchain bounty: $13,000
Average web bounty: $7,200

THE CHECKLIST (TEST THESE)

Password Reset

  • Arrays where strings belong? (GitLab style)

  • RNG cryptographically secure? (SecureRandom vs Random)

  • Tokens predictable? (timestamp + email? sequential?)

  • Rate limiting on reset endpoint?

  • Tokens expire after use?

  • Tokens expire after password change?

Email Change

  • Requires current password?

  • Requires verification of NEW email?

  • Can chain email change + password reset?

Information Disclosure

  • Does "forgot password" reveal if account exists?

  • Response time differ for existing vs non-existing?

  • Emails exposed in responses?

Headers

  • Host header injection?

  • Origin header injection?

  • X-Forwarded-Host?

  • Arrays in headers?

Concurrency

  • Site slow at certain times?

  • Race conditions bypass auth?

  • Atomic operations or can requests overtake state?


THE MENTAL MODEL

Average hunter: Runs scanner, finds XSS, reports, gets $100.

Elite hunter: Asks "what did the developer assume?"

  • Assume array would only have one email?

  • Assume RNG was secure?

  • Assume Origin header was safe?

  • Assume requests wouldn't queue?

The bugs aren't in the code. They're in what the developer didn't consider.


Start: Pick one platform. Learn Burp Suite. Read write-ups. Test everything.



STEP 1: BUILD YOUR FOUNDATION

Learn the basics

  • HTTP requests, headers, methods

  • How cookies and sessions work

  • Basic JavaScript ( u just need to be able to read and understand the code )

  • DNS, IPs, ports (networking fundamentals)

Master the OWASP Top 10

  • XSS (Cross-Site Scripting)

  • SQL Injection

  • IDOR (Insecure Direct Object References)

  • CSRF

  • SSRF

  • Authentication flaws

STEP 2: SET UP YOUR ARSENAL

Essential tools

  • Burp Suite (web proxy—learn it until it's muscle memory)

  • Nmap (network discovery)

  • Amass (subdomain enumeration)

  • SQLMap (SQLi automation—but learn manual first)

  • SecLists (wordlists for everything)

Practice environments

  • PortSwigger Labs (free, structured)

  • Hack The Box

  • TryHackMe

  • OWASP WebGoat

STEP 3: PICK YOUR FIRST TARGET

DO NOT start on Google or Facebook.

DO start on

  • HackerOne's public programs (filter it by easy or just friendly)

  • Intigriti's challenges (they run monthly XSS challenges)

  • Open Bug Bounty (no pressure, just learning)


#1: THE GITLAB APOCALYPSE (CVSS 10.0)

CVE-2023-7028

text

POST /users/password HTTP/1.1
{"user":{"email":["victim@x.com","attacker@y.com"]}}

The Bug: Server accepted an array of emails instead of a string. Reset link sent to BOTH addresses.

Impact: No auth required. No interaction. Full account takeover. 5,300+ vulnerable instances.

Lesson: Never trust parameter types. Test arrays where strings belong.


#2: PREDICTING THE FUTURE (RNG CRACK)

Alovoa Dating App

The Bug: Used RandomStringUtils.randomAlphanumeric() for reset tokens.

Why: Uses java.util.Random — a linear congruential generator. Mathematically reversible.

Attack:

  1. Request token for yourself

  2. Crack seed from your token (4 hours)

  3. Generate ALL past/future tokens

  4. Victim requests reset → you have their token

Fix: java.security.SecureRandom only. Never Random for security.


#3: THE CLOUDFLARE BYPASS

Password Reset Poisoning

The Bug: Host header injection blocked by Cloudflare. Server used Origin header instead.

text

Origin: https://attacker.com

Result: Reset link generated with attacker domain. Victim clicks → token stolen.

Lesson: Test ALL headers. When one blocked, another might be trusted.


#4: THE RACE CONDITION

TOCTOU (Time-of-Check Time-of-Use)

The Bug: During high latency, multiple wrong passwords returned valid tokens.

Why:

  1. Check password → Issue token (two steps)

  2. Requests queue during slowdown

  3. All pass Step 1 before any reach Step 2

  4. System thinks ALL passwords are valid

Result: 5 wrong passwords → 5 valid tokens.

Fix: Atomic operations. Database locks. Don't let concurrency break auth.


THINK LIKE THE DEV WHO CODED IT

BREAK LIKE THE HACKER

GET PAID LIKE BOTH :D