Please enable JavaScript to use CodeHS

$ cybersecurity --explain bug-bounty

What Is a Bug Bounty?

Some companies invite skilled, careful people to find the mistakes in their software, then say thank you with a reward. Learn how it works, why the rules matter more than the hacking, and play the company security team.

Rule zeroOnly test what you have clear permission to test. No permission means no testing.

Ethical hacking ~20 min Beginner friendly
The Idea

Companies pay people to find their mistakes

Every app has bugs. A bug is a mistake in code that makes software act in a way nobody planned. Most bugs are harmless, like a button in the wrong spot. Some are vulnerabilities: bugs that someone could abuse to hurt people, for example by seeing private information.

A bug bounty is a program where a company says, "If you find a security bug in our stuff, tell us the right way and we will fix it. We may reward you." A bounty is the reward. It can be a thank-you, a spot on a hall of fame, or money. Rewards vary a lot from program to program.

Why would a company do this? Because thousands of careful people looking are better than a small team looking alone. The bug gets found by a friend, not an enemy.

Six words to know

  • BugA mistake in code that makes software act wrong.
  • VulnerabilityA bug that someone could abuse to cause harm.
  • BountyA reward for a valid report, from a thank-you to a big prize.
  • ScopeThe list of what you may test, and what is off limits.
  • SeverityHow serious a bug is: low, medium, high, or critical.
  • DisclosureTelling people about a bug. Doing it the safe way is "responsible."

Important: a bug bounty is not a hall pass to poke at any website. Testing a system you do not have permission to test can break the law, even if you mean well. The program's written rules are your permission. No rules, no testing.


The Big Picture

The treasure map: who does what

Three players are involved. The company owns the software. The hacker is the ethical bug finder. A platform is a website in the middle that hosts the rules, passes reports along, and keeps things fair. Step through the story and watch what flows between them.

1rules 2sign up 3report 4fix it 5thanks + reward Company Platform Hacker

Gold dashed line: the step happening now. Teal solid line: steps already done. Grey dotted line: steps still to come.

Step 1: The company writes the rules

The company lists what you may test (the scope), what is off limits, and how to report. These rules are the hacker's permission slip.


Before Anything Else

The golden rules

Good bug hunters are known for their manners as much as their skills. These rules keep you, and other people, safe. Break them and you can lose your reward, get banned, or even get in legal trouble.

  1. Only test what you have permission to test

    Permission means a program that invites you in writing. A website being public does not mean it is open for testing.

  2. Read the rules (the scope) first

    Every program lists what is in scope and out of scope. Read it every time. Rules change, and each program is different.

  3. Never touch real people's data

    Use test accounts that you made yourself. If you ever see someone else's private information, stop, do not save it or share it, and report it.

  4. No program, no testing

    If a company has no bug bounty or disclosure program, do not test its systems. Pick a practice lab instead.

  5. Do no harm

    Do not break things, slow things down, or trick people. A bug hunter helps, not hurts.

  6. Keep it private until it is fixed

    Tell the company first. Do not post or sell the details, even if you are impatient. Follow the program's disclosure rules.

  7. Teens: bring a parent or guardian in, and check the age rules

    Many programs have age rules, and some need a parent or guardian to sign up or get paid. Check them before you start. A grown-up on your team is a feature, not a limit.


Game 1

The scope game: allowed or not?

Here is the rules card for Pixel Pizza, a made-up company with a made-up bug bounty program. Read it, then decide for each target whether testing is allowed. Every address ends in .example because these are pretend websites.

  • Test the login page on app.pixelpizza.example using a test account you created.

  • Test payments.cardpartner.example, the card company that Pixel Pizza uses.

  • Look for mistakes on the practice copy, sandbox.pixelpizza.example.

  • Open a real customer's order to check whether you can see it.

  • Test your own school's website, because you are curious and you go there.

  • Send a huge flood of traffic to app.pixelpizza.example to see if it crashes.

Answered 0 of 6

Game 2

Write a great bug report

Finding a bug is half the job. The other half is explaining it so a busy security team can understand it fast. A good report has four parts: a title, the steps to see the problem, the impact (who could be hurt, and how), and a fix idea. Fill in the form. The preview and checklist update as you type. Nothing is sent anywhere.

Say what is wrong and where, in one line.
One step per line, so someone else can repeat it. Use only your own test accounts.
Who could be hurt, and what could happen? Use plain words.
Optional in real life, but teams love it. How could they fix it?

Report preview

Your title appears here

Steps

Your steps appear here.

Impact

Who could be hurt?

Fix idea

How could it be fixed?

Report quality checklist

  • Title says what is wrong and where (about 5 to 16 words)
  • Steps are numbered or on separate lines (at least 3)
  • Impact explains who could be hurt (about 10 words or more)
  • Fix idea gives the team a starting point
  • No real person's private info (no emails, phone numbers, or passwords)

0 of 5 checks done. Start typing!


Game 3

Triage desk: you are the security team

Triage means sorting by how urgent something is, like nurses in an emergency room. When reports arrive, the security team decides two things: is this report valid, a duplicate (someone already reported it), or out of scope? And if it is valid, how severe is it?

  • LowSmall clue or tiny risk. Fix when convenient.
  • MediumReal risk, but it takes extra luck or steps to abuse.
  • HighCould let someone take over accounts or see private data.
  • CriticalEasy to abuse, and lots of people's private data is at risk.

Back to Pixel Pizza. Reports are landing in your inbox. Pick a category and, for valid reports, a severity. Then check your call.

Report 1 of 6 Correct so far: 0
1. What is it?
2. How severe? (valid reports only)

The Timeline

Responsible disclosure: who knows what, and when

Disclosure means telling others about a bug. Responsible disclosure (also called coordinated disclosure) means a careful order: tell the company privately first, give them time to fix it, and only talk about the details publicly after that. Programs often set a time limit, such as a few months, so a bug does not stay hidden forever.

Drag the slider along the timeline. Then switch to the other path to see what happens when someone sells or leaks a bug instead.

  1. 1Found
  2. 2Reported
  3. 3Fixed
  4. 4Disclosed
  • The hacker (you)
  • The company
  • The public, and attackers
Danger to real peopleLow

Selling or leaking a bug can break laws and can lead to a ban from every program. It can also harm real people. This page is not legal advice, so when in doubt, ask a parent, guardian, or teacher before you do anything.


Your First Steps

How to start safely as a teen

You do not have to wait to start. You can build real skills now, in places made for practice, long before you ever join a program.

  1. Get a parent or guardian on your team

    Show them this page. Many programs have age rules, so check them together. Some need an adult to sign up, verify who you are, or receive payments.

  2. Learn the basics

    Learn to code, how websites work, and how passwords and logins work. Start with what ethical hacking is.

  3. Practice in legal places

    Capture-the-flag games and practice labs are made to be hacked. Try capture the flag for beginners. Your own test projects at home are fair game too.

  4. Read about real bug types, safely

    Learn how mistakes like SQL injection and cross-site scripting happen, so you can build things that avoid them.

  5. Join a program only when you are ready, and only with an adult's OK

    Read the rules every time, stay in scope, and stop and report as soon as you find something. Keep it private until the company says it is fixed.

Two kinds of programs

Vulnerability disclosure program

VDP
  • A company's "report a security problem here" page.
  • Usually thank-yous or public credit, not money.
  • A good, lower-pressure place to learn how reporting works.

Paid bug bounty program

Bounty
  • Offers rewards, which vary from small to large.
  • Often has strict rules, age limits, and identity or payment steps.
  • Many reports compete, so duplicates are common.

Found something by accident? Stop. Do not poke around more. Do not save or share anything you saw. Tell a trusted adult, and then use the company's "report a security issue" page if it has one.


Quick Answers

Quick answers

What is a bug bounty?

A bug bounty is a program where a company invites outside security researchers, often called ethical hackers, to look for security bugs in its products and report them. The company sets the rules and can reward valid reports with a thank-you, public credit, or money.

Is bug bounty hunting legal?

It is only safe when you follow a program's written rules. Testing a system without permission can break the law, even if you mean well. Always read the program's scope, test only what is listed, never touch real people's data, and stop and report if you find something.

What is scope in a bug bounty program?

Scope is the list of websites, apps, and actions a program allows you to test, along with what is off limits. If something is not listed as in scope, do not test it.

What is responsible disclosure?

Responsible disclosure means you report a bug privately to the company first, give them time to fix it, and only share details publicly after the fix or an agreed plan. This protects the people who use the product.

Can teenagers do bug bounties?

Many programs have age rules, and some require a parent or guardian, an adult account for payments, or a minimum age. Check each program's rules, involve a parent or guardian, and practice legally first in capture-the-flag games and labs built for learning.

How much do bug bounties pay?

Rewards vary a lot. Some programs only say thank you or list your name, and others pay larger rewards for serious bugs. What you get depends on the company, the program rules, and how serious and well explained the bug is.


Check Yourself

Quick quiz

1. What should you do before you test anything for bugs?

2. While using your own test account, you accidentally see another customer's private receipt. What now?

3. What does "scope" mean in a bug bounty program?

Keep learning about ethical hacking

You know the rules, the roles, and how reports get sorted. Next, practice real skills in places that are made for it.

Related: What Is SQL Injection? and What Is Cross-Site Scripting?