Repeated mediation requests and multiple emails possible on a report.
The frontend disabled the 'Confirm' button for requesting mediation on reports that were too old, but the backend still accepted a forged request. An attacker could therefore request mediation on ineligible reports and send repeated requests, causing automated emails to be sent.
Originally disclosed on HackerOne
- Fixed in 12 days
- Paid in 12 days
- Disclosed after 2.7 years
Summary by the program
This was essentially the same issue as what was disclosed in #159512. We however failed to recognize it and merge the two reports as duplicates, which is why we decided to reconsider the reward here.
The original report only described a way to repeat requests and send multiple emails. We do not consider this to be a security issue. However, later on @haxta4ok00 identifies it is possible to request mediation on reports that were too old to mediate, which is the same as what was reported in #159512. This has a very minor security implication, which prompted us to reconsider our response here.
We originally posted in #159512:
@troubleshooter identified a discrepancy between our frontend and backend validation. While our frontend did not allow hackers to request mediation on reports that were too old to mediate, a forged request would still be accepted by our backend due to different validation rules. While this has minor security implications, we decided to make the validations consistent and award our minimum bounty of $500 here.
The report
Hi,
- We can by pass used buttom Confirm on Request Mediation from HackerOne where is disable him
POC: Edit html and delete disabled="" <input type="submit" data-reactid=".8.0.1.0.6.1" disabled="" class="button button--success button--modal pull-right" value="Confirm">
<input type="submit" data-reactid=".8.0.1.0.6.1" class="button button--success button--modal pull-right" value="Confirm">And buttom in active.
- Next catch request
https://hackerone.com/reports/nubmerreport/hacker_help POST: message=&mediation_type=resolution
If parametr message null , we can send multiple requests. And spamming support But if message is no null we have 404
PS Yes you page is write Spamming other users with automated HackerOne emails or notifications (e.g. abusing the forgot password form). But this problem is multiple requests.
thx,, sorry bad eng.
Context
HackerOne's report pages include a mediation feature: when a hacker and a program disagree about a report, the hacker can ask HackerOne staff to mediate. The feature is exposed through a Request Mediation dialog with a Confirm button, and the request behind it goes to a per-report endpoint under hacker_help.
This write-up covers a report by @haxta4ok00 about that dialog and endpoint. The program's summary notes that the issue was essentially the same as the one disclosed in #159512, that the two reports were not merged as duplicates at the time, and that the reward was reconsidered as a result. The program also states that the original report only described a way to repeat requests and send multiple emails, which on its own was not considered a security issue; the security relevance came later, when the researcher showed that mediation could be requested on reports that were too old to mediate.
Setup
No special accounts, roles, tools or versions are described. The researcher worked against hackerone.com in a browser, using the page's own HTML and the mediation request it sends. The precondition is a report page where the mediation option is shown but disabled, that is, a report that is too old to mediate.
Finding it
The researcher noticed that the Confirm button in the Request Mediation dialog is disabled in the page markup. Because the disabling is done in the HTML sent to the browser, editing that HTML in the browser makes the button active again. The researcher then captured the request the button sends and replayed it directly.
Exploitation
Step 1: Re-enable the disabled Confirm button
The button is rendered with a disabled attribute:
<input type="submit" data-reactid=".8.0.1.0.6.1" disabled="" class="button button--success button--modal pull-right" value="Confirm">
Editing the page's HTML and removing disabled="" leaves:
<input type="submit" data-reactid=".8.0.1.0.6.1" class="button button--success button--modal pull-right" value="Confirm">
With the attribute gone, the button is active and can be clicked. This only changes what the browser displays; the server-side rules are untouched, which is the point of the next step.
Step 2: Capture and replay the mediation request
The button sends a POST to the report's hacker_help endpoint, with the report number in the path:
https://hackerone.com/reports/nubmerreport/hacker_help
POST:
message=&mediation_type=resolution
The body carries two parameters: message, which is empty in this request, and mediation_type, set to resolution.
Step 3: Repeat the request
The researcher reports that when message is null (empty), the request can be sent multiple times, which results in spamming support. When message is not null, the request returns a 404.
The researcher also quotes HackerOne's own policy text on abuse:
Spamming other users with automated HackerOne emails or notifications (e.g. abusing the forgot password form).
and argues that the problem here is the multiple requests.
Root cause
The program's summary describes the underlying mistake as a discrepancy between frontend and backend validation. The frontend did not allow hackers to request mediation on reports that were too old to mediate, but a forged request was still accepted by the backend because the two sides used different validation rules. The disabled attribute on the button is a client-side control only, so removing it in the browser and replaying the request reaches a backend that does not apply the same age check.
Why the empty message parameter allows repeated submissions while a non-empty one returns a 404 is not explained in the report.
Impact
Two effects are described. First, the request can be repeated with an empty message, producing multiple mediation requests and spamming support. Second, and this is what the program treated as the security issue, mediation can be requested on reports that are too old to mediate, the same behaviour reported in #159512. The program characterises the security implication as very minor and awarded its minimum bounty of $500.
Fix
The program states that it decided to make the validations consistent, so that the backend applies the same rules as the frontend. That is the change described: aligning backend validation with the frontend rather than relying on the disabled button.
Variants to test
- Look for action buttons rendered with
disabledin HTML (mediation, escalation, refund, delete, transfer) and remove the attribute, then submit. A positive result is a server response that performs the action instead of rejecting it. - Replay state-changing POSTs captured from such dialogs directly, bypassing the UI entirely. A positive result is a success response where the UI would have blocked the action.
- Vary optional body parameters between empty and populated values on the same endpoint and compare status codes. A positive result is one variant being accepted repeatedly while another is rejected, which points to inconsistent validation.
- Test age or eligibility limits (old reports, closed items, expired windows) by sending the request for an item the UI marks as ineligible. A positive result is the backend accepting it.
Hunting notes
This kind of bug hides where eligibility rules are enforced only in the interface: disabled buttons, hidden menu items and greyed-out actions. During recon, note which actions the UI presents as unavailable and why, then check whether the corresponding endpoint enforces the same condition. The researcher showed impact by moving from a cosmetic bypass (an active button) to a backend behaviour the program cared about, requesting mediation on reports too old to mediate, which matched a previously disclosed report and led the program to reconsider its response and pay its minimum bounty.
What happened, in plain words
HackerOne is a website where security researchers (called hackers) report bugs to companies (called programs). Sometimes a hacker and a program disagree about a report, and HackerOne staff step in to help settle it. That process is called mediation, and the website has a Request Mediation dialog with a Confirm button for it.
On some reports, the mediation option is shown but the button is greyed out and cannot be clicked. The website does this by adding a small marker to the button in the page's HTML, the code that describes what the page looks like. A researcher called @haxta4ok00 noticed that this marker only exists in the copy of the page sent to the browser. If you edit that copy in your browser and delete the marker, the button becomes clickable again.
That alone would be a cosmetic trick, not a security problem. The interesting part is what happens next: the researcher captured the request the button sends and replayed it directly. The server, the computer that stores the data and decides what is allowed, used different validation rules from the frontend, so it accepted a forged request.
The program that runs HackerOne later explained that this was essentially the same issue as one already disclosed in report #159512, and that the two reports had not been merged as duplicates at the time. Because of that, the program reconsidered its response and paid its minimum bounty of $500.
Background you need
A few ideas come up again and again below, so here they are from zero.
- Frontend and backend. The frontend is everything that runs in your browser: the page you see, the buttons, the menus. The backend is the server behind it, which stores data and performs actions. A useful comparison is a restaurant: the menu and the waiter are the frontend, the kitchen is the backend. If the waiter says a dish is unavailable but the kitchen will still cook it when asked directly, the rule only exists at the front.
- HTML. The language that describes a web page. When you open a page, your browser receives HTML and draws it. You can view and edit that HTML in your browser's developer tools, but your edits only affect your own copy, not the server.
- A disabled button. HTML can mark a button as disabled, which makes it greyed out and unclickable. This is a convenience for the user, not a security control, because the user's browser can always remove the marker.
- A request. When you click a button, your browser sends a message to the server asking it to do something. That message is called a request. A POST request is one that carries data, usually used when something should change on the server, such as submitting a form.
- An endpoint. The specific address on the server that handles a particular action. Think of it as a particular counter in a building: the address tells you which counter to go to, and the request tells the clerk what you want.
- Parameters. The pieces of data sent with a request, usually as name and value pairs. In this report there are two:
messageandmediation_type. - A 404 response. The status code a server sends when it cannot find what was asked for. Here it means the request was rejected.
- Client-side validation. A check performed in the browser. It is easy to bypass because the browser belongs to the user. Server-side validation is the same check performed on the server, which the user cannot edit. Security rules belong on the server.
- A forged request. A request that was not produced by the normal page flow, for example one captured and then sent again by hand. It looks the same to the server as a legitimate one unless the server checks the rules itself.
The setup
No special accounts, roles, tools or versions are described. The researcher worked against hackerone.com in an ordinary browser, using the page's own HTML and the mediation request the page sends.
The only precondition is a report page where the mediation option is shown but disabled, meaning a report that is too old to mediate.
Finding it
The researcher noticed that the Confirm button in the Request Mediation dialog is disabled in the page markup. Because the disabling is done in the HTML sent to the browser, editing that HTML in the browser makes the button active again. The researcher then captured the request the button sends and found that the backend accepted it even when the frontend had disabled the control.
Exploitation
Step 1: Re-enable the disabled Confirm button
The button arrives in the page with a disabled attribute, a marker that tells the browser to grey it out:
<input type="submit" data-reactid=".8.0.1.0.6.1" disabled="" class="button button--success button--modal pull-right" value="Confirm">
Line by line:
<input type="submit" ...>is a form control that submits something when clicked.type="submit"says it is a submit button.data-reactid=".8.0.1.0.6.1"is an internal identifier used by the page's JavaScript framework to keep track of this element. It has no security meaning.disabled=""is the marker that makes the button unclickable. Its presence is what matters, not its value.class="button button--success button--modal pull-right"lists style names that decide how the button looks and where it sits.value="Confirm"is the text shown on the button.
Editing the page's HTML and removing disabled="" leaves:
<input type="submit" data-reactid=".8.0.1.0.6.1" class="button button--success button--modal pull-right" value="Confirm">
This is the same element with the disabled="" marker gone, which is why there are now two spaces where it used to be. With the marker removed, the button is active and can be clicked. This step was taken to prove that the greyed-out state is only a display choice: it changes what the browser shows, but the server-side rules are untouched, which is exactly what the next step tests.
Step 2: Capture and replay the mediation request
The button sends a POST to the report's hacker_help endpoint, with the report number in the path:
https://hackerone.com/reports/nubmerreport/hacker_help
POST:
message=&mediation_type=resolution
Line by line:
https://hackerone.com/reports/nubmerreport/hacker_helpis the address.reports/is followed by the report number, written here asnubmerreport(a placeholder for the real number), andhacker_helpis the part of the address that handles mediation requests.POST:says the request is a POST, the kind that carries data and asks the server to change something.message=&mediation_type=resolutionis the body of the request, the data sent along with it. It holds two parameters separated by&.messageis empty, because there is nothing between the=and the&.mediation_typeis set toresolution, which tells the server what kind of help is being asked for.
Capturing the request was necessary because the button's click is only a shortcut for sending this message. Once you know the message, you can send it yourself, with or without the button.
Step 3: Repeat the request
The researcher reports that when message is null (empty), the request can be sent multiple times, which results in spamming support. When message is not null, the request returns a 404.
In other words, the same endpoint behaves differently depending on whether one parameter is empty or filled in. An empty message is accepted again and again, so the support team receives many mediation requests. A filled-in message is rejected with a 404, the status code for not found.
The researcher also quotes HackerOne's own policy text on abuse:
Spamming other users with automated HackerOne emails or notifications (e.g. abusing the forgot password form).
and argues that the problem here is the multiple requests. The comparison is to the forgot password form: a feature that legitimately sends an email can be misused to send many emails if nothing limits how often it can be used.
Why it worked
The program's summary describes the underlying mistake as a discrepancy between frontend and backend validation. The frontend did not allow hackers to request mediation on reports that were too old to mediate, but a forged request was still accepted by the backend because the two sides used different validation rules.
The disabled attribute on the button is a client-side control only. Removing it in the browser and replaying the request reaches a backend that does not apply the same age check. Going back to the restaurant comparison: the waiter refuses to take the order, but the kitchen will still cook it if you walk in and ask.
Why the empty message parameter allows repeated submissions while a non-empty one returns a 404 is not explained in the report.
What the impact was
Two effects are described. First, the request can be repeated with an empty message, producing multiple mediation requests and spamming support. Second, and this is what the program treated as the security issue, mediation can be requested on reports that are too old to mediate, the same behaviour reported in #159512.
The program characterises the security implication as very minor and awarded its minimum bounty of $500. Its summary also notes that the original report only described a way to repeat requests and send multiple emails, which on its own was not considered a security issue; the security relevance came later, when the researcher showed that mediation could be requested on reports that were too old to mediate.
The fix
The program states that it decided to make the validations consistent, so that the backend applies the same rules as the frontend. That is the change described: aligning backend validation with the frontend rather than relying on the disabled button.
Other places to look for the same pattern
- Look for action buttons rendered with
disabledin HTML (mediation, escalation, refund, delete, transfer) and remove the attribute, then submit. A positive result is a server response that performs the action instead of rejecting it. - Replay state-changing POSTs captured from such dialogs directly, bypassing the interface entirely. A positive result is a success response where the interface would have blocked the action.
- Vary optional body parameters between empty and populated values on the same endpoint and compare status codes. A positive result is one variant being accepted repeatedly while another is rejected, which points to inconsistent validation.
- Test age or eligibility limits (old reports, closed items, expired windows) by sending the request for an item the interface marks as ineligible. A positive result is the backend accepting it.
Where this kind of bug hides
This kind of bug hides where eligibility rules are enforced only in the interface: disabled buttons, hidden menu items and greyed-out actions. While exploring a site, note which actions the interface presents as unavailable and why, then check whether the corresponding endpoint enforces the same condition. The researcher showed impact by moving from a cosmetic bypass (an active button) to a backend behaviour the program cared about, requesting mediation on reports too old to mediate, which matched a previously disclosed report and led the program to reconsider its response and pay its minimum bounty.
Glossary
- Backend: the server side of a website, which stores data and performs actions; the user cannot edit it.
- Bounty: a payment a program gives a researcher for a valid security report.
- Client-side validation: a check performed in the user's browser, which the user can bypass by editing the page or sending requests by hand.
- Disabled attribute: an HTML marker on a button or form control that makes it unclickable in the browser.
- Disclosure: making a security report public, usually after it has been fixed.
- Duplicate: a report describing the same issue as one already submitted.
- Endpoint: the specific address on a server that handles a particular action.
- Forged request: a request not produced by the normal page flow, for example one captured and resent by hand.
- Frontend: everything that runs in the user's browser, such as the page, buttons and menus.
- HTML: the language that describes the structure and content of a web page.
- Mediation: HackerOne's process where staff help a hacker and a program settle a disagreement about a report.
- Parameter: a named piece of data sent with a request, such as
messageormediation_type. - POST: a type of request that carries data and usually asks the server to change something.
- Request: a message a browser sends to a server asking it to do something.
- Server-side validation: a check performed on the server, which the user cannot edit; the correct place for security rules.
- Status code: a number a server returns to say how a request went, such as 404 for not found.
- 404: the status code meaning the server could not find what was requested; here it means the request was rejected.