$575 CSRF: Triggering Payment Receipt Emails Without User Consent
The payment receipt email endpoint lacked CSRF protection, relying only on session cookies. An attacker could make a logged-in user's browser send receipt emails to arbitrary recipients without consent.
medium.com
Published on medium.com
Hi Everyone! This write is about a Cross-Site Request Forgery (CSRF) vulnerability in the payment flow that allowed an attacker to trigger payment receipt emails without user consent which i found in SAAS
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The endpoint relied solely on cookie-based authentication and did not validate a CSRF token, so the server assumed every request was intentional.
Impact
An attacker could cause a logged-in user to send payment receipt emails to unintended recipients, leading to spam, confusion, and loss of trust, though no sensitive data is exposed or financial records modified.
What the attacker needed
Victim is logged in; victim visits attacker's page
The fix
The endpoint should be fixed by requiring a CSRF token for state-changing requests; the report states the fix was confirmed via retest.
How it was found
- Create an HTML page with a form that posts to the send_receipt endpoint.
- Include a hidden field specifying the recipient's ID.
- Add a script to automatically submit the form.
- Get a logged-in user to visit the page, which triggers the request and sends the receipt emails.
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 write-up has not been written yet. The Original tab links to the source.
When you log into a website, your browser stores a cookie that proves who you are. If a website accepts a request that changes something (like sending an email) based only on that cookie, another site can secretly make your browser send that request. This is called cross-site request forgery (CSRF), and it lets an attacker perform actions as you without you knowing.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.