Skip to content
Write-up Intermediate

Critical Bug Bounty Reports: Part 1

The write-up describes five critical vulnerabilities: an account takeover via unvalidated security question reset, full customer account access through new account creation, two RCEs via AEM ACS Tools Fiddle with default credentials, and a full customer information disclosure via IDOR. An attacker could reset security questions, brute-force zip codes, execute OS commands, and access sensitive customer data.

Greg Gibson Follow

Published on infosecwriteups.com

This month marks 2 years of formal Bug Bounty hunting for me, with my first report submitted to a program on Bugcrowd on July 27, 2019. That report was marked Not Applicable and to this day I’m genuinely bewildered the company hasn’t fixed it.

Greg Gibson, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

This is a set of short write-ups covering the Critical severity bugs Greg Gibson submitted to bug bounty programs over his first two years of hunting. His first report went to a Bugcrowd program on July 27, 2019 and was marked Not Applicable; the next was a P4 / Informational for a subdomain with an exposed web.config file. His first 10 reports averaged a severity rating of 3.7, with 1 N/A, 5 Informational and 4 accepted. At the time of writing he was in Bugcrowd's top 200 all time ranking with 134 accepted vulnerabilities, 20 of them P1.

Bugcrowd’s P1 Warrior badge series — Level 2 badge, awarded to Hacker’s who submit 5 valid P1 submissions in any program From the original on infosecwriteups.com

The badge above is Bugcrowd's P1 Warrior Level 2, awarded for five valid P1 submissions in any program. The article's stated thesis is that impact drives severity as much as, or sometimes more than, the vulnerability class, and the five bugs below are chosen to illustrate that.

The targets are five different applications across Bugcrowd and HackerOne: a private program's authentication and profile flows, a business to business site, two Adobe Experience Manager (AEM) deployments, and a Fortune 500 company's REST API. The report does not name any of the domains.

Setup

The report gives no tool versions. The tools and preconditions it does mention are:

  • Burp Suite, specifically Burp Intruder, for the brute force in bug 2.
  • 0ang3el's AEM scanner, used to find the two command injection bugs.
  • A private program invitation for bugs 1 and 2, with bug 2 on the same program as bug 1.
  • For bug 5, a friend who was a real customer of the company and agreed to let the researcher use his phone number and date of birth. The researcher himself was not a customer.
  • For bug 3, a non-paying HackerOne program running AEM.

Finding it

Bug 1: Account takeover through unvalidated security question reset

Found while testing the authentication, password reset and user profile flows of a private program that had just opened. The application did not tie the security question update to the session; it took the username from the POST body.

Bug 2: Full customer account access through new account creation

Self-registration on a B2B site required the business's account number and the associated zip code. A previously identified IDOR on completed orders let the researcher enumerate valid account numbers and business names, but not addresses. Business addresses are easy to find on Google, which supplies the zip code. There was no rate limiting on the registration form.

Bugs 3 and 4: RCE on AEM via ACS Tools Fiddle with default credentials

A HackerOne program was running Adobe Experience Manager. Running 0ang3el's scanner against it quickly surfaced an OS command injection. On the same large scope, the scanner picked up a second instance with the same vulnerability.

Bug 5: Full customer information disclosure

The company had several unauthenticated workflows that required semi-private user information: a phone number and date of birth. Those two, for the friend, exposed a third key piece of information the researcher calls widgets. With first name, last name, phone number, date of birth and information about the widgets, he could reach a request form. The form talked to a JSON REST API in the background, and the client side JavaScript appended an API key into a custom header, because an unauthenticated user has no session to rely on.

Exploitation

Step 1: Reset the victim's security question and answer (bug 1)

The update request carried the target username as a parameter, in a shape similar to:

Text
security_question=hacked&security_answer=hacked&username=victim_account

Because the username came from the request rather than the session, any user could set a new security question and answer for any other user. This is not CSRF: the attacker is not tricking a victim into changing their own question, the attacker changes someone else's directly.

The password reset flow then only asked for the security answer before prompting for a new password. Having overwritten the answer, the attacker logs out, walks the reset flow for the victim, supplies the answer they just set, and sets a new password. That completes the account takeover.

Step 2: Enumerate account numbers, then brute force the zip (bug 2)

The IDOR on completed orders yielded valid business account numbers and business names. The missing piece for self-registration was the zip code. Searching the business on Google gave the address and therefore the zip. The registration form had no rate limiting, so Burp Intruder could submit it repeatedly against the roughly 42,000 valid US zip codes until the form returned successfully. With a successful registration the researcher could log in and access the business's full account details, submit orders on their behalf, and more.

Step 3: Command injection on AEM (bugs 3 and 4)

The scanner identified OS command injection on an AEM instance reachable through ACS Tools Fiddle with default credentials. The proof of concept commands executed were:

Bash
whoami
Bash
cat /etc/passwd

The same scanner found a second host with the same issue on the same program. On bug 3 the company implemented the fix before the triage team had even reviewed the finding.

Step 4: Increment the widget ID (bug 5)

The request form called a JSON REST API similar to:

Text
https://domain.com/api/v1/widget/123456

with the API key in a custom header added by client side JavaScript. Incrementing the numeric identifier in the URL returned other customers' records. The response contained full customer information, equivalent to what you would see accessing the company's database directly.

Root cause

  • Bug 1: the security question update trusted a client-supplied username instead of deriving the user from the session, and the password reset flow treated knowledge of the security answer as sufficient proof of identity. The two together turn a profile edit into an authentication bypass.
  • Bug 2: self-registration was gated on two pieces of business data, one of which (the account number) leaked through an IDOR on completed orders, and the other (the zip) is public. With no rate limiting, the roughly 42,000 valid US zip codes could be brute forced.
  • Bugs 3 and 4: AEM's ACS Tools Fiddle was reachable with default credentials, giving an authenticated administrative surface that exposes command execution.
  • Bug 5: the API authorised the request by the API key in the header, which every client receives, rather than by any check that the caller owns the object identified in the URL. The key is an authentication artefact for the application, not for the customer, so object-level authorisation is missing entirely.

Impact

  • Bug 1: full account takeover of any user, by resetting their security question and answer and then their password.
  • Bug 2: full access to any business account whose account number could be enumerated, including viewing account details and submitting orders on the business's behalf.
  • Bugs 3 and 4: remote command execution on two AEM hosts, demonstrated by reading /etc/passwd.
  • Bug 5: disclosure of full customer records by incrementing the widget identifier, with the API key the client side JavaScript appends in a custom header.

Fix

Only bug 3 has a stated outcome: the company implemented the fix before triage reviewed it. The report does not describe the change. The fixes implied by the root causes are: derive the user from the session for security question updates and do not let the security answer alone authorise a password reset; rate limit self-registration and stop leaking account numbers through order objects; remove or re-secure ACS Tools Fiddle and change default credentials; and enforce object-level authorisation on the API so the key identifies the application but the server still checks that the requested widget belongs to the caller.

Variants to test

  1. Profile and security question endpoints that accept a username, user_id or email parameter. Positive result: the response confirms the change and the victim's reset flow accepts the new answer.
  2. Password reset flows that ask only for a security answer, a date of birth or a postcode. Positive result: the answer can be obtained or set by the attacker, and the flow proceeds to the new password form.
  3. Self-registration forms gated on an account number plus a low-entropy secret. Positive result: the account number is enumerable elsewhere (orders, invoices, public directories) and the form accepts repeated attempts without throttling.
  4. AEM instances exposing ACS Tools Fiddle. Positive result: default credentials are accepted and a command such as whoami returns output.
  5. REST endpoints of the form /api/v1/<object>/<numeric id> where the client sends an API key in a header. Positive result: incrementing the id returns another customer's record.
  6. Any unauthenticated multi-step workflow that collects semi-private data (phone, date of birth) before reaching a form. Positive result: the collected data is enough to reach the form, and the form's backend call is object-reference based.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 14 min read.

What happened, in plain words

Greg Gibson spent two years reporting security bugs to bug bounty programs. A bug bounty program is a deal offered by a company: if you find a security flaw in their website or app and report it privately, they may pay you and thank you instead of getting angry. Bugcrowd and HackerOne are two well-known platforms where companies list these programs and researchers submit their findings. Each finding gets a severity label, from P1 (the most serious, often called Critical) down to P4 or P5 (minor), plus sometimes a label like Not Applicable or Informational when the company decides the report is not a real security problem.

His very first report, sent to a Bugcrowd program on July 27, 2019, was marked Not Applicable. The next one was a P4 / Informational about a subdomain (a sub-part of a website, like shop.example.com) that had left a configuration file called web.config publicly readable. His first ten reports averaged a severity rating of 3.7, with 1 N/A, 5 Informational and 4 accepted. By the time he wrote this article he was in Bugcrowd's top 200 all time ranking, with 134 accepted vulnerabilities, 20 of them P1.

Bugcrowd’s P1 Warrior badge series — Level 2 badge, awarded to Hacker’s who submit 5 valid P1 submissions in any program From the original on infosecwriteups.com

The badge above is Bugcrowd's P1 Warrior Level 2, given to researchers who submit five valid P1 reports in any program. The article's main point is simple: how bad a bug is depends as much on what an attacker can actually do with it (the impact) as on the category of bug it belongs to. The five bugs below are chosen to show that.

The five targets are different applications across Bugcrowd and HackerOne: a private program's login and profile pages, a business to business site, two installations of Adobe Experience Manager (AEM, a content management system that companies use to build websites), and a Fortune 500 company's API. The report does not name any of the domains.

Setup

The report gives no tool versions. The tools and preconditions it mentions are:

  • Burp Suite, specifically a part of it called Burp Intruder, used for the brute force in bug 2. Burp Suite is a program that sits between your browser and a website so you can see and change every request. Intruder is the part that sends the same request many times with different values filled in automatically.
  • 0ang3el's AEM scanner, used to find the two command injection bugs. A scanner is a tool that automatically probes a website for known weaknesses.
  • A private program invitation for bugs 1 and 2, with bug 2 on the same program as bug 1. A private program is one that is not open to the public; only invited researchers can see it.
  • For bug 5, a friend who was a real customer of the company and agreed to let the researcher use his phone number and date of birth. The researcher himself was not a customer.
  • For bug 3, a non-paying HackerOne program running AEM.

Finding it

Bug 1: Account takeover through unvalidated security question reset

Found while testing the authentication, password reset and user profile flows of a private program that had just opened. Authentication means proving who you are when you log in. A security question is the extra question some sites ask ("What was the name of your first pet?") so you can prove your identity later, for example when you forget your password. The application did not tie the security question update to the session; it took the username from the POST body. A session is the short-lived record a site keeps of "this browser is logged in as this person", usually held in a cookie, which is a small piece of data the browser stores and sends back with every request. The POST body is the part of a web request that carries the data you typed into a form.

Bug 2: Full customer account access through new account creation

Self-registration on a B2B site required the business's account number and the associated zip code. B2B means business to business: the site is for companies, not ordinary shoppers. A previously identified IDOR on completed orders let the researcher enumerate valid account numbers and business names, but not addresses. IDOR stands for Insecure Direct Object Reference: the site looks up a record by an identifier you supply (like order number 1234) without checking that the record belongs to you, so you can change the number and see someone else's. To enumerate means to walk through a range of values and collect the ones that exist. Business addresses are easy to find on Google, which supplies the zip code. There was no rate limiting on the registration form. Rate limiting is a cap on how many times you can do something in a given period, like a ticket machine that only sells one ticket per minute.

Bugs 3 and 4: RCE on AEM via ACS Tools Fiddle with default credentials

A HackerOne program was running Adobe Experience Manager. Running 0ang3el's scanner against it quickly surfaced an OS command injection. RCE means remote code execution: the attacker can make the server run commands of their choosing. ACS Tools Fiddle is a tool inside AEM that lets administrators run commands and scripts; default credentials means the installation still uses the factory username and password that everyone knows. On the same large scope, the scanner picked up a second instance with the same vulnerability. Scope is the list of systems a program allows you to test.

Bug 5: Full customer information disclosure

The company had several unauthenticated workflows that required semi-private user information: a phone number and date of birth. Unauthenticated means you do not need to log in. A workflow is a sequence of pages or steps a user goes through to get something done. Those two pieces of information, for the friend, exposed a third key piece of information the researcher calls widgets. With first name, last name, phone number, date of birth and information about the widgets, he could reach a request form. The form talked to a JSON REST API in the background. An API is the set of addresses a website's own pages use to fetch and send data, like a service counter behind the shop front. REST is a common style for such APIs, where each thing (a customer, an order, a widget) has its own address. JSON is a text format for data, made of names and values in curly braces, easy for programs to read. The client side JavaScript appended an API key into a custom header, because an unauthenticated user has no session to rely on. JavaScript is the code that runs in your browser and makes pages interactive. An API key is a long secret string that identifies the application making the call, a bit like a staff pass that says "this request comes from our own website". A header is an extra labelled line attached to a web request, carrying information alongside the main content.

Exploitation

Step 1: Reset the victim's security question and answer (bug 1)

The update request carried the target username as a parameter, in a shape similar to:

Text
security_question=hacked&security_answer=hacked&username=victim_account

Line by line: security_question=hacked sets the new security question to the word "hacked"; security_answer=hacked sets the matching answer to the word "hacked"; username=victim_account says which account this change applies to. The & signs join the three name/value pairs into one string, the same way a form submission is packed up. The researcher took this step because the server trusted the username value in the request instead of working out who was logged in from the session. That means he could put any victim's username there and change their question and answer while logged in as himself.

Because the username came from the request rather than the session, any user could set a new security question and answer for any other user. This is not CSRF: the attacker is not tricking a victim into changing their own question, the attacker changes someone else's directly. CSRF, cross site request forgery, is when a malicious page makes your browser send a request to another site where you are logged in, so the action happens under your name without your knowledge. Here no victim involvement is needed at all.

The password reset flow then only asked for the security answer before prompting for a new password. Having overwritten the answer, the attacker logs out, walks the reset flow for the victim, supplies the answer they just set, and sets a new password. That completes the account takeover. Account takeover means logging in as someone else and controlling their account. The reason this works is that the reset flow treats knowing the security answer as proof of identity, and the attacker has just written that answer himself.

Step 2: Enumerate account numbers, then brute force the zip (bug 2)

The IDOR on completed orders yielded valid business account numbers and business names. The missing piece for self-registration was the zip code. Searching the business on Google gave the address and therefore the zip. The registration form had no rate limiting, so Burp Intruder could submit it repeatedly against the roughly 42,000 valid US zip codes until the form returned successfully. Brute force means trying every possible value until one works, like trying every key on a keyring. With a successful registration the researcher could log in and access the business's full account details, submit orders on their behalf, and more. He took these steps in this order because each piece of the puzzle unlocked the next: the order pages gave him account numbers, Google gave him the zip, and the missing rate limit made guessing the zip practical.

Step 3: Command injection on AEM (bugs 3 and 4)

The scanner identified OS command injection on an AEM instance reachable through ACS Tools Fiddle with default credentials. The proof of concept commands executed were:

Bash
whoami
Bash
cat /etc/passwd

The first command confirms code execution under the application's user; the second demonstrates reading a sensitive system file. The same scanner found a second host with the same issue on the same program. On bug 3 the company implemented the fix before the triage team had even reviewed the finding. Triage is the first review a report gets, where the program decides whether it is valid.

Step 4: Increment the widget ID (bug 5)

The request form called a JSON REST API similar to:

Text
https://domain.com/api/v1/widget/123456

Reading it piece by piece: https:// is the secure web protocol; domain.com stands in for the company's site; /api/v1/ marks this as version 1 of the API; /widget/ names the kind of object; 123456 is the identifier of one particular widget. Incrementing that last number exposed the IDOR.

with the API key in a custom header added by client side JavaScript. Incrementing the numeric identifier in the URL returned other customers' records. The response contained full customer information, equivalent to what you would see accessing the company's database directly.

Root cause

  • Bug 1: the security question update trusted a client-supplied username instead of deriving the user from the session, and the password reset flow treated knowledge of the security answer as sufficient proof of identity. The two together turn a profile edit into an authentication bypass. An endpoint is one specific address on a server that performs one action.
  • Bug 2: self-registration was gated on two pieces of business data, one of which (the account number) leaked through an IDOR on completed orders, and the other (the zip) is public. With no rate limiting, the remaining entropy of a US zip code is trivial to exhaust. Entropy here means how hard a value is to guess; 42,000 possibilities is small for a computer.
  • Bugs 3 and 4: AEM's ACS Tools Fiddle was reachable with default credentials, giving an authenticated administrative surface that exposes command execution.
  • Bug 5: the API authorised the request by the API key in the header, which every client receives, rather than by any check that the caller owns the object identified in the URL. The key is an authentication artefact for the application, not for the customer, so object-level authorisation is missing entirely. Authorisation means deciding what a given user is allowed to do; object-level authorisation means checking each individual record, not just the overall request.

Impact

  • Bug 1: full account takeover of any user, by resetting their security question and answer and then their password.
  • Bug 2: full access to any business account whose account number could be enumerated, including viewing account details and submitting orders on the business's behalf.
  • Bugs 3 and 4: remote command execution on two AEM hosts, demonstrated by reading /etc/passwd.
  • Bug 5: disclosure of full customer records by incrementing the widget identifier, with the API key the client side JavaScript appends in a custom header.

Fix

Only bug 3 has a stated outcome: the company implemented the fix before triage reviewed it. The report does not describe the change. The fixes implied by the root causes are: derive the user from the session for security question updates and do not let the security answer alone authorise a password reset; rate limit self-registration and stop leaking account numbers through order objects; remove or re-secure ACS Tools Fiddle and change default credentials; and enforce object-level authorisation on the API so the key identifies the application but the server still checks that the requested widget belongs to the caller.

Variants to test

  1. Profile and security question endpoints that accept a username, user_id or email parameter. Positive result: the response confirms the change and the victim's reset flow accepts the new answer.
  2. Password reset flows that ask only for a security answer, a date of birth or a postcode. Positive result: the answer can be obtained or set by the attacker, and the flow proceeds to the new password form.
  3. Self-registration forms gated on an account number plus a low-entropy secret. Positive result: the account number is enumerable elsewhere (orders, invoices, public directories) and the form accepts repeated attempts without throttling.
  4. AEM instances exposing ACS Tools Fiddle. Positive result: default credentials are accepted and a command such as whoami returns output.
  5. REST endpoints of the form /api/v1/<object>/<numeric id> where the client sends an API key in a header. Positive result: incrementing the id returns another customer's record.
  6. Any unauthenticated multi-step workflow that collects semi-private data (phone, date of birth) before reaching a form. Positive result: the collected data is enough to reach the form, and the form's backend call is object-reference based.

Glossary

  • Account takeover: gaining control of someone else's account, usually by changing their password.
  • ACS Tools Fiddle: a tool inside Adobe Experience Manager that lets administrators run commands and scripts.
  • Adobe Experience Manager (AEM): a content management system companies use to build and run websites.
  • API: the set of addresses a website's own pages use to fetch and send data behind the scenes.
  • API key: a long secret string that identifies the application making a request, not the individual person.
  • Authentication: proving who you are, typically by logging in.
  • Authorisation: deciding what a logged-in or anonymous user is allowed to do.
  • B2B: business to business; a site used by companies rather than ordinary shoppers.
  • Brute force: trying every possible value until one works.
  • Bug bounty program: a deal where a company rewards people for privately reporting security flaws.
  • Burp Intruder: the part of Burp Suite that sends the same request many times with different values filled in.
  • Burp Suite: a tool that sits between your browser and a website so you can see and change requests.
  • Client side JavaScript: code that runs in your browser and makes pages interactive.
  • Cookie: a small piece of data a site stores in your browser and gets back with each request.
  • CSRF (cross site request forgery): a trick where a malicious page makes your browser send a request to another site where you are logged in.
  • Default credentials: the factory username and password an installation still uses, which everyone knows.
  • Endpoint: one specific address on a server that performs one action.
  • Entropy: how hard a value is to guess.
  • Enumerate: to walk through a range of values and collect the ones that exist.
  • Header: an extra labelled line attached to a web request, carrying information alongside the main content.
  • IDOR (Insecure Direct Object Reference): looking up a record by an identifier you supply without checking that it belongs to you.
  • Impact: what an attacker can actually do with a flaw.
  • JSON: a text format for data made of names and values, easy for programs to read.
  • P1 / P4: severity labels used by bounty platforms, P1 being the most serious and P4 minor.
  • POST body: the part of a web request that carries the data typed into a form.
  • Private program: a bounty program open only to invited researchers.
  • Rate limiting: a cap on how many times something can be done in a given period.
  • RCE (remote code execution): making a server run commands of the attacker's choosing.
  • REST: a common style for APIs where each thing has its own address.
  • Scope: the list of systems a program allows you to test.
  • Scanner: a tool that automatically probes a website for known weaknesses.
  • Security question: an extra question a site asks so you can prove your identity later.
  • Session: the short-lived record a site keeps of which browser is logged in as which person.
  • Subdomain: a sub-part of a website, such as shop.example.com.
  • Triage: the first review a report gets, where the program decides whether it is valid.
  • Unauthenticated: without logging in.
  • Workflow: a sequence of pages or steps a user goes through to get something done.

More by Greg Gibson

View all

3 more disclosed reports, best first.

Similar reports

Same bug class and techniques, clearest first.