CSRF - Disabling orders at https://panel.stopthehacker.com/manage/disable-order/order/ID
The order management endpoint accepted state-changing POST requests without a CSRF token, so a page on another site could disable a user's order while they were logged in. An attacker could do this if they guessed the order ID, which the report says would require many requests.
Originally disclosed on HackerOne
- Triaged in 16 days
- Disclosed after 3 months
Hi there,
there's a CSRF which would allow an attacker to disable an order.
Host: https://panel.stopthehacker.com
#Steps to reproduce:
-
- Login to the panel.
-
- Subscribe/order a new scan
-
- Go to the Billing page and get the order ID
-
- Put the order id in the PoC below and submit it
-
- The order will be disabled now.
-
- Same procedure should work for enabling a service.
An attacker would need to guess the order ID by sending some (a lot of) requests.
#PoC:
<html>
<!-- CSRF PoC - generated by Burp Suite Professional -->
<body>
<form action="https://panel.stopthehacker.com/manage/disable-order/order/240720" method="POST">
<input type="hidden" name="reason" value="Other" />
<input type="hidden" name="otherReason" value="-" />
<input type="hidden" name="submit" value="" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
You may need to adjust your order ID in the url.
#How to fix? Add a CSRF token and validate it on the server.
Thanks, Sebastian
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the order disable endpoint performed a state-changing action on a POST request authenticated only by the session cookie, with no anti-CSRF token checked on the server.
Impact
An attacker could disable a victim's order, and the same approach should work for enabling a service, but only if the attacker can guess the order ID, which the report says needs many requests.
What the attacker needed
Victim is logged in; attacker guesses the order ID; victim visits attacker's page
How it was found
- Log in to the panel.
- Subscribe or order a new scan.
- Open the Billing page and note the order ID.
- Place the order ID in the proof-of-concept form and submit it.
- The order is then disabled.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you are logged in to a site, your browser automatically sends your session cookie with every request to that site. If the site accepts a request that changes something without also checking for a secret value that only its own pages know, another website can make your browser send that request for you. This is called cross-site request forgery, and here it let someone else switch off your order.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.