"Bounties paid in the last 90 days" discloses the undisclosed bounty amount in program statistics
A program's undisclosed bounty amount could be inferred by comparing the total 'Bounties paid in the last 90 days' statistic before and after a bounty was awarded. An attacker could calculate the difference to learn the hidden amount.
- Triaged in 13 days
- Fixed in 5 months
- Paid in 24 days
- Disclosed after 5 months
Hi Team,
Summary:
I have found a bypass on this disclosed report: Know undisclosed Bounty Amount when Bounty Statistics are enabled.
Description:
When a program does not disclose how much bounty is paid to particular report, but if bounty statics is enabled then undisclosed Bounty Amount can be enumerated using the "Bounties paid in the last 90 days".
"Bounties paid in the last 90 days" is the total amount paid in the last 90 days, so by doing a basic mathematical equation, we can be able to determine the undisclosed bounty amount, below is the formula to get the undisclosed bounty amount.
Formula
old = Old Bounties paid in the last 90 days >> Total 90 days bounty paid
new = New Bounties paid in the last 90 days >> Everytime the 90 days bounty changes
undisclosed amount = old - new
Mitigation:
Use the same fix you have applied in this report #148050
Impact
Disclosing the undisclosed bounty amount for program which is not disclosing bounties in their settings.
Let me know if anything else is needed.
Regards Japz
Context
HackerOne programs can choose whether the bounty amount paid on a particular report is disclosed. Separately, a program can enable bounty statistics, which show a figure labelled "Bounties paid in the last 90 days". This report describes how the second feature leaks the information the first one is meant to hide.
The researcher frames the issue as a bypass of an earlier disclosed report, Know undisclosed Bounty Amount when Bounty Statistics are enabled. The mitigation for this new report is simply to apply the same fix that was applied to #148050.
Setup
No special accounts, roles, tools or versions are described. The precondition is a program that does not disclose the bounty amount on individual reports but has bounty statistics enabled, so that the "Bounties paid in the last 90 days" total is visible.
Finding it
The researcher noticed that the 90 day figure is a running total of everything paid in that window. If a single new bounty is paid and the total is read again, the difference between the two readings is the amount of that new bounty, even when the report itself does not show it. The statistic therefore acts as an oracle for a value the program intended to keep private.
Exploitation
Step 1: Record the current total
Read the program's "Bounties paid in the last 90 days" figure and keep it. The report calls this value old.
Step 2: Wait for a bounty to be paid
When a bounty is awarded, the 90 day total changes. Read the figure again; the report calls this value new.
Step 3: Subtract
The undisclosed amount is the difference between the two readings:
old = Old Bounties paid in the last 90 days >> Total 90 days bounty paid
new = New Bounties paid in the last 90 days >> Everytime the 90 days bounty changes
undisclosed amount = old - new
The report's formula is simply the difference between the two readings of the 90 day total. The report does not show any request, response or captured figure, so the exact page and the format of the number are not documented here.
Root cause
The design exposes an aggregate that changes by exactly the amount it is supposed to conceal. Hiding the per report bounty while publishing a total that is updated on every payment leaves the per report value recoverable by simple subtraction. The researcher frames this as a bypass of #148050 and asks for the same mitigation to be applied again.
Impact
A program that does not disclose bounty amounts can have those amounts determined by anyone who can see its bounty statistics. The report limits the impact to disclosure of the undisclosed bounty amount; it does not describe any way to change data or reach other programs' information. The platform rated the issue low severity with a CVSS score of 3.8, and a bounty of 500.00 USD was paid.
Fix
Its recommendation is to reuse the fix already applied to #148050 so that the 90 day statistic no longer reveals individual undisclosed amounts.
Variants to test
- Other rolling totals. Look for any statistic that is recomputed when a hidden event occurs (paid this month, average bounty, total spent) and check whether a before and after reading isolates the hidden value.
- Counters alongside amounts. A count of bounties paid, combined with a total, can reveal an individual amount when only one payment happened in the interval.
- Aging out of the window. A drop in the 90 day total with no new payment can reveal the size of a bounty that has just left the window, which is another way to recover an undisclosed amount.
- Per researcher or per team breakdowns. If the statistic can be filtered, the same subtraction may work on a narrower set where the delta is unambiguous.
A positive result is a statistic that changes by exactly the hidden amount after a single undisclosed payment, with no other payments in the interval to confuse the arithmetic.
Hunting notes
This kind of bug hides in aggregate dashboards and statistics pages that are built from the same data as the private records they summarise. During recon, note which programs hide bounty amounts but still publish spending statistics, and watch whether those statistics update in step with individual awards. The researcher made the case with a single subtraction and pointed at a prior report for the mitigation.
The report was disclosed on 2020-02-21.
What happened, in plain words
Bug bounty platforms like HackerOne host many different companies' programmes. Each programme is a company that pays researchers for finding security problems in its software. When a researcher reports a valid bug, the programme may pay a cash reward, called a bounty.
A programme has a setting that controls whether the amount of each individual bounty is shown publicly on the report page. If that setting is off, the amount stays hidden. A programme also has a separate setting for bounty statistics, which displays a figure labelled "Bounties paid in the last 90 days". That figure is a running total of all the money the programme has paid out in the last 90 days.
The researcher found that these two settings do not work together properly. Even when individual bounty amounts are hidden, the 90 day total is still visible. If you write down the total, wait for a new bounty to be paid, and then read the total again, the difference between the two numbers is exactly the amount of the new bounty. So the hidden amount can be worked out with simple subtraction.
The researcher described this as a bypass of an earlier, already disclosed report, Know undisclosed Bounty Amount when Bounty Statistics are enabled. The suggested fix is to apply the same fix that was used for that earlier report.
Background concepts
Before walking through the steps, here are the ideas you need.
- Programme: a company's bug bounty page on HackerOne. It lists the company's software, the rules for testing it, and the rewards it pays.
- Bounty: the cash reward a programme pays a researcher for a valid security report.
- Disclosure setting: a programme can choose to show or hide the bounty amount on each individual report. Hiding it means visitors to the report page cannot see how much was paid.
- Bounty statistics: a separate feature that shows summary numbers about a programme's spending, including the total paid out over a period of time.
- Running total: a number that keeps adding up as new payments happen. If you pay 100 today and 50 tomorrow, the running total goes from 100 to 150.
- Oracle: in security, any feature that answers a question you are not supposed to be able to answer. Here, the 90 day total answers the question "how much was that hidden bounty?" if you ask it twice.
- Information disclosure: a vulnerability class where a system reveals data it was meant to keep private. Nothing is broken or changed; the problem is that something secret becomes visible.
The setup
No special accounts, roles, tools or software versions are needed. The only precondition is a programme that hides the bounty amount on individual reports but has bounty statistics turned on, so the "Bounties paid in the last 90 days" figure is visible to anyone who visits the programme page.
Finding it
The researcher noticed that the 90 day figure is a running total of everything paid in that window. That means it moves whenever a new bounty is paid. If you read the figure, then a single new bounty is awarded, then you read the figure again, the difference between the two readings is the amount of that new bounty. The individual report page may hide the amount, but the statistic gives it away through arithmetic.
Exploitation
Step 1: Record the current total
Visit the programme's page and find the "Bounties paid in the last 90 days" figure. Write it down. The report calls this value old.
Why this step: you need a starting point. Without a before reading, there is nothing to compare against later.
Step 2: Wait for a bounty to be paid
When a bounty is awarded, the 90 day total changes. Read the figure again and write down the new number. The report calls this value new.
Why this step: the change in the total is the signal. The statistic only moves when money is paid out, or when older payments drop out of the 90 day window.
Step 3: Subtract
The undisclosed amount is the difference between the two readings:
old = Old Bounties paid in the last 90 days >> Total 90 days bounty paid
new = New Bounties paid in the last 90 days >> Everytime the 90 days bounty changes
undisclosed amount = old - new
Line by line:
old = Old Bounties paid in the last 90 days >> Total 90 days bounty paidrecords the first reading. The>>is just a comment marker meaning "which is". Sooldis the total you saw before the new bounty.new = New Bounties paid in the last 90 days >> Everytime the 90 days bounty changesrecords the second reading, taken after the total changed.undisclosed amount = old - newsubtracts the second reading from the first. The result is the size of the new bounty.
The report's formula is the difference between the two readings of the 90 day total. The report does not show any request, response or captured figure, so the exact page layout and the format of the number are not documented.
Root cause
The design exposes a summary number that changes by exactly the amount it is supposed to hide. Hiding the per report bounty while publishing a total that updates on every payment leaves the per report value recoverable by simple subtraction. The researcher frames this as a bypass of #148050 and asks for the same mitigation to be applied again.
Impact
A programme that does not disclose bounty amounts can have those amounts worked out by anyone who can see its bounty statistics. The report limits the impact to disclosure of the undisclosed bounty amount. It does not describe any way to change data or reach other programmes' information. The platform rated the issue low severity with a CVSS score of 3.8, and a bounty of 500.00 USD was paid.
Fix
Its recommendation is to reuse the fix already applied to #148050 so that the 90 day statistic no longer reveals individual undisclosed amounts.
Variants to test
- Other rolling totals. Look for any statistic that is recomputed when a hidden event occurs (paid this month, average bounty, total spent) and check whether a before and after reading isolates the hidden value.
- Counters alongside amounts. A count of bounties paid, combined with a total, can reveal an individual amount when only one payment happened in the interval.
- Aging out of the window. A drop in the 90 day total with no new payment can reveal the size of a bounty that has just left the window, which is another way to recover an undisclosed amount.
- Per researcher or per team breakdowns. If the statistic can be filtered, the same subtraction may work on a narrower set where the difference is unambiguous.
A positive result is a statistic that changes by exactly the hidden amount after a single undisclosed payment, with no other payments in the interval to confuse the arithmetic.
Hunting notes
This kind of bug hides in aggregate dashboards and statistics pages that are built from the same data as the private records they summarise. During recon, note which programmes hide bounty amounts but still publish spending statistics, and watch whether those statistics update in step with individual awards. The researcher made the case with a single subtraction and pointed at a prior report for the mitigation.
The report was disclosed on 2020-02-21.
Glossary
- Programme: a company's bug bounty page on HackerOne, listing its software, rules and rewards.
- Disclosure setting: a programme option that controls whether the bounty amount on an individual report is shown publicly.
- Bounty statistics: a feature that shows summary numbers about a programme's spending, such as totals paid over a period.
- Oracle: any feature that answers a question you are not supposed to be able to answer.
- Bypass: getting around a protection that was put in place to stop something.
- Mitigation: a change that removes or reduces a security problem.
- CVSS score: a standard number from 0 to 10 that rates how severe a security issue is.
- Severity: a label (low, medium, high, critical) describing how serious an issue is.
- Triager: the person who reviews a submitted report and decides whether it is valid.
- Recon: the research phase where you look around a target to find things worth testing.
- Aggregate: a summary figure built from many individual records, such as a total or an average.
- Delta: the difference between two readings of the same number.