CSRF To change Email Notification Settings
The email notification settings endpoint lacked CSRF protection, allowing an attacker to disable a victim's email notifications by tricking them into submitting a form.
Originally disclosed on HackerOne
- Fixed in 3 days
- Paid in 3 days
- Disclosed after 37 days
Summary by the researcher
Thanks @Instacart For The Bounty And Thanks to @anf and @hitomikt For Fixing this
The report
Hi i found CSRF To change Email Notification Settings
The Code Of the HTML Page ::
<html> <body> <form action="https://www.instacart.com/api/v2/email_settings/76/disable?resource_token="> <input type="submit" value="Submit form" /> </form> </body> </html>For Fixing you Must add CSEF Token to the Request
i attached Video Showing the Bug
Thanks
Attachments
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
Root cause
Likely the endpoint did not require a CSRF token or other anti-CSRF protection, so a forged request from another site was accepted.
What the attacker needed
Victim is logged in; victim visits attacker's page
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 makes a logged-in user's browser send a request to another site without the user's knowledge. Here, the attacker could make a victim's browser turn off email notifications by submitting a hidden form. The fix is to add a secret token that the attacker cannot guess.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.