Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

Practice library / Web attacks

Workbook · Easy · 3 hours

Bug Bounty Hunting

HackerOne/Bugcrowd methodology, triaging, report writing, and maximising payouts.

  • bug-bounty
  • hackerone
  • bugcrowd
  • report-writing
  • triage
On this page 5 sections
  1. ·About This Workbook
  2. ·Chapter 1 — Getting Started
  3. ·Chapter 2 — A Hunting Workflow
  4. ·Chapter 3 — Reporting & Disclosure
  5. ·Next steps

Before you start

A bug bounty program is an invitation from an organisation to test defined assets for security flaws in return for payment. The work is one part technique, one part process: picking the right program, staying inside scope, running a repeatable test method, and writing a report that a triager can reproduce in five minutes. This workbook covers all of that for a beginner who already knows the basics of web testing. It walks through scope tables, safe harbor rules, low-impact recon, and the disclosure etiquette that keeps a researcher welcome on a platform. It also covers the report structure that pays, because the quality of a report often matters more than the depth of the bug.

What You'll Learn

  • Explain what a bug bounty program is and what a safe harbor does and does not cover
  • Read a scope table and decide whether an asset, a test or a technique is allowed
  • Choose a program that fits your skills and your time
  • Run a low-impact recon and testing workflow inside the scope
  • Decide when to go deep on one feature and when to go wide
  • Write a report that a triager can reproduce in five minutes
  • Follow the disclosure rules of a program and keep your own record

About This Workbook

A bug bounty program is an invitation. An organisation says: "Test these assets, in these ways, and we pay for valid reports of security flaws." The organisation is the program owner. You are the researcher. A triager (an employee of the owner or of the platform) reads your report, reproduces the flaw and decides on severity and reward.

This workbook teaches the method, not a bag of tricks. A bounty hunter who knows the rules, hunts in a repeatable way and writes clear reports is likely to earn more than one who only knows more payloads. It also keeps you out of legal trouble.

You must know the basics of web testing before you start. Read Web Application Pentesting first. The technique labs are linked in the chapters. For the report layout used in paid client work, see Documentation & Reporting.

Authorised scope only. In this workbook every command targets example.com, a reserved name that you do not own. Replace it only with an asset that the program scope lists as in scope. To practise without a program, use your own lab VM, DVWA, Metasploitable or a CTF target such as hack.me, hackmyvm or picoCTF. A bug bounty is not a licence to test anything on the internet.

Chapter 1 — Getting Started

Objectives

  • Describe the three kinds of program and who runs them
  • Explain a safe harbor and its limits
  • Read a scope table and a list of rules
  • Choose a first program
  • Set realistic expectations on time and money

Explanation

Types of program.

TypeHow it worksWhat it means for you
PublicAnyone can join and testMany researchers; duplicate reports are common
PrivateThe owner invites selected researchersFewer researchers; you must earn an invitation with a good record
Vulnerability disclosure program (VDP)Reports are welcome, but there is no cash rewardGood for practice, reputation and first reports

Two kinds of host exist. A platform (for example HackerOne, Bugcrowd or Intigriti) runs many programs, handles triage and payment, and gives you a reputation score. A self-hosted program is run by the owner on its own website, often described in a security.txt file.

The legal frame. Laws such as the US Computer Fraud and Abuse Act and the UK Computer Misuse Act make unauthorised access a crime. Good intent is not a defence. A program gives you permission. The permission has a safe harbor clause: the owner promises not to take legal action against research that follows the program rules. Read three points in it:

  1. The safe harbor covers only the assets and the actions that the policy names.
  2. It protects you from the owner. It does not protect you from a third party, for example a cloud provider or a customer of the owner.
  3. A program that has no written safe harbor gives you no promise. Ask before you test, or choose another program.

Scope. The scope is the most important part of the policy. It has two lists.

In scopeOut of scope
*.example.com (all subdomains)shop.example.com (run by a vendor)
The mobile apps Example for Android and iOSThird-party services, for example payment pages
api.example.comAny asset that is not named

Then come the rules of engagement. These are common:

  • No denial of service and no high request rates.
  • No social engineering of staff, no phishing, no physical tests.
  • Test only with your own accounts. Never read, change or keep the data of another user.
  • Stop when you prove the flaw. Do not go further to "see how deep it goes."
  • Use an identifying header or a test account if the policy asks for it.
  • Report to the program first. Do not publish before the owner agrees.

Programs also list out-of-scope vulnerability types, for example missing security headers, clickjacking on pages with no sensitive action, or self-XSS. A report on one of these is closed as "not applicable" and can cost you reputation.

Choosing a program. Match the program to your skill, not to the biggest reward.

  • Read the policy page and the hall of fame. If researchers are thanked and paid often, the owner takes reports seriously.
  • Check the response time. A program that answers in a few days is a better partner than one that answers in months.
  • Check the scope size. A wide scope (many subdomains) gives you more surface and fewer duplicates than one web page.
  • Prefer a technology that you know. If you know web APIs, do not start with a hardware program.
  • Start with one or two programs and learn them well. Do not join twenty.

Expectations. Many early reports are closed as duplicate, informative or not applicable. Many researchers earn nothing in their first months. The first aim is a valid report and a good reputation, not money. Treat the work as practice that also builds a public record. It does not give a salary.

Worked example

You find a program and want to check the policy before any test. Many sites publish a contact file at a fixed path. Run curl to read it.

curl -s https://example.com/.well-known/security.txt
Contact: mailto:security@example.com
Expires: 2027-06-30T00:00:00.000Z
Policy: https://example.com/security-policy
Preferred-Languages: en

The file names a contact and a policy page. Read the policy and write down what you need in a notes file. This is a good first entry.

PROGRAM: Example (public, platform program)
Safe harbor: yes (clause 4)
In scope:    *.example.com, api.example.com, Android app
Out of scope: shop.example.com (vendor), DoS, social engineering
Rules:       own accounts only; max 5 requests/second; stop at proof
Not rewarded: missing headers, clickjacking without action, self-XSS
Report to:   platform form, first (no public disclosure without approval)

Before every test session, read this note again. A policy can change.

Wildcard scope, such as *.example.com, covers a subdomain that is run by the owner. It does not always cover a subdomain that points to a vendor service. If the policy is not clear, ask the program by message and wait for the answer.

Practice questions

  1. What is the difference between a bug bounty program and a VDP?
  2. A policy lists *.example.com in scope. You find status.example.com, which is a page hosted by a status-page vendor. May you test it?
  3. Name two reasons to read the out-of-scope vulnerability types before you test.
  4. A program has no safe harbor text. What do you do?
Answers
  1. A bounty program pays money for valid reports. A VDP accepts reports and gives thanks or a hall-of-fame entry, but no cash reward.
  2. Not without a check. The wildcard names assets of the owner, and a vendor page is run by another company. The safe harbor of the owner does not cover the vendor. Ask the program, or leave it alone.
  3. You do not lose time on a report that is closed as not applicable, and you do not lose reputation on the platform. It also shows you what the owner already accepts as a risk.
  4. Ask the program in writing whether research is authorised, or choose another program. Without a written safe harbor you have no promise of protection.

Chapter 2 — A Hunting Workflow

Objectives

  • Build an asset list inside the scope
  • Test with a low request rate and an identifying header
  • Rank the surface by likely impact
  • Choose between going deep and going wide
  • Keep notes that let you stop and continue

Explanation

A workflow is a loop: list assets, find what changed or what is unusual, test it, record it. Do the same steps every time. Random testing wastes days.

Step 1: recon. Recon builds the list of what you may test. It has two parts. Passive recon reads public sources and sends no traffic to the target: certificate transparency logs, DNS records, search engines, archives. Active recon sends requests to the target, so the rules of the program apply in full. Read Web Application Recon and OSINT & Reconnaissance for the techniques. Three real tools that bounty hunters use:

  • subfinder lists subdomains from passive sources.
  • httpx probes a list of hosts and shows which ones answer on HTTP.
  • curl checks one request by hand.

Always filter the results against the scope. A tool does not know your scope.

Step 2: rank the surface. An application has more surface than you can test. Rank it. Look first at:

  • Features with user data and roles: profile, billing, file upload, invitation, export, API.
  • New or changed features: a new release or a new subdomain has had less review.
  • Old and forgotten hosts: staging, dev, old, beta (only if in scope).
  • Complex logic: password reset, payment, multi-step flows, sharing between accounts.
  • Parts that handle input in unusual ways: import of files, URL fetchers, webhooks.

Static pages and the home page have had the most review. Fewer hunters read the API documentation or the mobile app traffic in detail.

Step 3: test. Use the skills from the web labs, one class at a time. Start with checks that match logic and access control, because scanners miss them and they often rate high: IDOR, broken authentication, missing authorisation on an API. Then input flaws such as XSS and injection. Use your own accounts. Make two accounts, "A" and "B". Test whether A can read B's object, never someone else's.

Deep or wide.

ApproachHowWhen it works
WideCheck many hosts for one known class of problemBig scope; a new technique; a fast check
DeepLearn one feature fully (every parameter, every role)Small scope; complex app; many hunters already did the wide checks

Wide hunting finds the easy bugs, and many hunters find them at the same time, so duplicates are common. Deep hunting finds logic bugs that few people find. A good rule: go wide on day one to learn the program, then go deep on the one feature that looks the most complex.

Rate and noise. A bounty target is a live service with real users. Keep the rate low, test in quiet hours when you can, and add a header that identifies you if the policy asks for it. Never run a full-speed scanner. A scan can look like an attack and can break a fragile service.

Check the rate limit in the rules. If the policy says "no more than 5 requests per second", set your tools to a lower value. A tool with default settings often sends hundreds.

Worked example

The scope is *.example.com with a rate limit of 5 requests per second. First, build the asset list from passive sources. subfinder with -silent prints one name per line.

subfinder -d example.com -silent | sort -u > subs.txt
wc -l subs.txt
214 subs.txt

Remove every host that the policy excludes. The vendor host shop.example.com is out of scope.

grep -v '^shop\.example\.com$' subs.txt > inscope.txt
wc -l inscope.txt
213 inscope.txt

Now see which hosts answer. httpx can limit the rate with -rl (requests per second). -sc shows the status code, -title the page title and -td the technology.

httpx -l inscope.txt -sc -title -td -rl 3 -silent -H "X-Researcher: your-handle"
https://www.example.com [200] [Example - Home] [Nginx]
https://api.example.com [401] [] [Nginx]
https://app.example.com [200] [Example Dashboard] [React,Nginx]
https://staging.example.com [302] [Login] [Nginx]
https://docs.example.com [200] [API Docs] [Nginx]

Read the output with the ranking in mind.

  • docs.example.com is a strong lead: the API documentation lists endpoints that the web page never shows.
  • app.example.com is a logged-in application with user data. This is the main target.
  • staging.example.com is a test copy. It is in scope here, but a staging host may hold real data. Be careful and do only what the policy allows.

Pick app.example.com and open the API documentation. Create two accounts, A and B. Create an invoice with account A and look at the request.

curl -s -H "Authorization: Bearer $TOKEN_A" -H "X-Researcher: your-handle" \
  https://api.example.com/v1/invoices/1041
{"id":1041,"owner":"a@example.net","total":"49.00","status":"paid"}

The object belongs to A. Now test the access control with the token of B on the object of A. Only your own two accounts and your own object are used.

curl -s -o /dev/null -w "%{http_code}\n" -H "Authorization: Bearer $TOKEN_B" \
  -H "X-Researcher: your-handle" https://api.example.com/v1/invoices/1041
200

A correct API returns 403 or 404. A 200 means that B can read the invoice of A: a missing authorisation check, known as an IDOR (insecure direct object reference). You have proof with your own data. Stop here. Do not try other invoice numbers: those belong to real customers. Write your notes now, and go to Chapter 3 for the report.

Keep a log of what you did, so that you can answer questions from the triager later.

2026-11-19 14:02  account A and B created (own e-mail addresses)
2026-11-19 14:20  GET /v1/invoices/1041 as A -> 200 (own invoice)
2026-11-19 14:22  GET /v1/invoices/1041 as B -> 200 (expected 403)
2026-11-19 14:23  stopped. No other invoice id was requested.

Practice questions

  1. Why do you remove hosts from the scope list before you run httpx?
  2. Why is an API documentation page a good first target?
  3. You think the answer to "is there an IDOR?" needs invoice numbers 1000 to 2000. What is wrong with this plan?
  4. When do you choose a deep test over a wide test?
Answers
  1. A tool sends requests to every host in the list. A request to an out-of-scope host is a request without permission, even if it is only a probe.
  2. It lists endpoints, parameters and roles in one place, and many hunters do not read it. A flaw in an undocumented or rarely used endpoint is less likely to be reported already.
  3. Other numbers are invoices of real customers. Reading them breaks the rule "own accounts only" and is a privacy breach. Prove the flaw with two of your own accounts and stop.
  4. When the scope is small, the application is complex, or other hunters have already checked the simple problems everywhere. Deep tests find logic flaws that a wide check does not.

Chapter 3 — Reporting & Disclosure

Objectives

  • Write a report with a clear title, summary, steps, impact and fix
  • Build a proof of concept that is safe and minimal
  • Rate severity with CVSS and explain the rating in plain words
  • Handle triage answers: duplicate, informative, not applicable
  • Follow the rules of responsible disclosure

Explanation

A finding that is badly reported is not paid. The triager reads many reports each day. Your aim is a report that they can reproduce without writing to you. Imagine a reader who has not seen your notes.

Report structure. Use the same parts every time.

PartWhat to write
TitleThe flaw and the place, in one line: "IDOR on GET /v1/invoices/{id} exposes invoices of other users"
SummaryTwo or three sentences: what is wrong, where, and what an attacker gains
Steps to reproduceA numbered list with exact requests; use test accounts and say which
Proof of conceptThe request and response, or a short video or screenshot; redact other people's data
ImpactWhat an attacker can do in the real world, in terms of the business
SeverityCVSS vector and score, and one sentence of reason
Suggested fixOne or two lines, for example "check that the invoice owner equals the caller"
EnvironmentDate and time, browser or tool, account names

Proof of concept (PoC). A good PoC is minimal, safe and repeatable.

  • Minimal: the smallest request that shows the flaw. No extra payloads.
  • Safe: it proves the flaw and does not cause harm. Use alert(document.domain) for XSS, not a script that steals cookies. For read access use your own second account.
  • Repeatable: the triager must see the same result by following the steps.

Do not include real personal data of other users in the report. If your test exposed some by accident, say so, redact it and tell the program.

Severity. Programs use their own table or the CVSS (Common Vulnerability Scoring System) base score, from 0 to 10: None, Low (0.1 to 3.9), Medium (4.0 to 6.9), High (7.0 to 8.9), Critical (9.0 to 10). The vector shows the reasons. A short guide for version 3.1:

MetricValueMeaning
AVNAttack Vector: Network, over the internet
ACLAttack Complexity: Low, no special condition
PRLPrivileges Required: Low, an own account
UINUser Interaction: None
C, I, AH, L or NImpact on Confidentiality, Integrity, Availability

The IDOR above reads other users' invoices. It changes nothing and does not stop the service. The vector is CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, score 6.5 (Medium). Do not inflate the score. A triager who sees a Critical rating on a Medium bug trusts your next report less.

Triage outcomes. Learn the meaning of each answer.

StatusMeaningWhat you do
Triaged / AcceptedThe flaw is valid; the owner will fix itWait for the reward and the fix
DuplicateSomeone reported it firstLearn from it; check faster next time
InformativeTrue, but the owner accepts the risk or sees no impactAsk if you can add impact; otherwise move on
Not applicableOut of scope or not a flawRe-read the policy
Needs more infoThe triager cannot reproduceAnswer the same day with clearer steps

Stay polite in every message. Do not argue and do not demand money. If you disagree with a severity, give new facts about the impact and ask for a review once.

Responsible disclosure. Responsible disclosure means that you tell the owner first, give them time to fix, and publish only with agreement. Follow these rules:

  1. Report through the channel of the program.
  2. Do not tell other people the details before the fix, and do not post on social media.
  3. Delete any data that you kept by accident, when the program asks for it.
  4. Ask for permission to publish a write-up after the fix. Many platforms have a disclosure option, and the owner must agree to it. Some programs set a deadline for the fix, often 90 days, and then allow disclosure.
  5. Do not use the flaw after you report it, and do not test it again and again for fun.

Never ask for payment in a way that sounds like a threat ("pay me or I publish"). This is extortion, and it is a crime.

Keep your own record of every report: date, program, link, status and reward. It helps with tax, with your reputation, and with proof that you stayed in scope if anyone asks.

Worked example

This report matches the IDOR from Chapter 2. It is short, complete and safe.

Title: IDOR on GET /v1/invoices/{id} exposes invoices of other users

Summary
The endpoint GET https://api.example.com/v1/invoices/{id} returns an invoice
for any valid id when the caller has a valid token. It does not check that the
invoice belongs to the caller. A signed-in user can read invoices of other users.

Steps to reproduce (two test accounts that I own: A and B)
1. Sign in as A. Create an invoice. Its id is 1041.
2. Request it with the token of A:
   curl -s -H "Authorization: Bearer $TOKEN_A" https://api.example.com/v1/invoices/1041
   Response: 200 with the invoice of A.
3. Request the same id with the token of B:
   curl -s -H "Authorization: Bearer $TOKEN_B" https://api.example.com/v1/invoices/1041
   Response: 200 with the invoice of A. Expected: 403 or 404.

Proof of concept
Screenshot of step 3 attached. I used only my own accounts and my own invoice.
I did not request any other id.

Impact
An attacker with any free account can read invoices that contain the e-mail
address, name and amount of other customers. The ids are numbers in order, so
a script could read all of them. This is a privacy breach.

Severity
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N  =  6.5 (Medium)
Reason: any account can read data of other users; no data is changed.

Suggested fix
Check on the server that invoice.owner_id equals the id of the caller. Use
random identifiers (UUID) as an extra layer, not as the only control.

Environment
2026-11-19, curl 8.x, accounts a@example.net and b@example.net

Check this report against the list below. A triager must be able to say yes to every line.

  1. Can I reproduce it from the steps alone?
  2. Is the data in the proof my own?
  3. Is the impact written in business terms?
  4. Is the severity honest?
  5. Did the researcher stop at the proof?

A report that fails one of these gets "needs more info" and loses days.

Practice questions

  1. Write a one-line title for a stored XSS in the comment field of app.example.com.
  2. Why is alert(document.domain) a better PoC than a script that sends the session cookie to your own server?
  3. Your report is closed as "informative". What do you do?
  4. The owner has not answered for 60 days. May you publish the details at once?
  5. Name two things that must not be in a report.
Answers
  1. "Stored XSS in the comment field of the project page on app.example.com runs script for other users." It names the class, the place and the effect.
  2. It proves that script runs in the origin of the site and does no harm. A cookie thief collects data that you have no right to hold, and it can break the program rules.
  3. Read the reason. If the owner sees no impact, ask politely whether you can show a worse effect with your own accounts, once. If the answer is no, accept it and move on.
  4. No. First ask the program for an update, and use the platform's mediation if it has one. Publish only under the disclosure terms of the program, or after the deadline in the policy.
  5. Data of real users (redact it), and threats or demands for money. Also leave out things that you did not test, such as guesses about impact that you cannot show.

Next steps

Pick one program with a clear safe harbor and a small scope. Read its policy twice and write your note, as in the worked example of Chapter 1. Then run one full loop on one feature: recon, rank, test, record. Write the notes and, if you find a flaw, the report. Practise the technique in the lab IDOR and learn the report styles of paid work in Documentation & Reporting.

Workbook complete. You can now read a program policy, hunt inside the scope with a repeatable workflow, and write and disclose a report the right way.

Sign in to track progress and send feedback.

Related