CSRF to delete a pet on ██████
The pet deletion endpoint accepted both GET and POST requests without CSRF protection, so an attacker could make a logged-in victim's browser send a request that deletes a pet from their account.
- Triaged in 29 hours
- Fixed in 12 days
- Disclosed after 2 months
Summary by the program
The /pets/delete endpoint on ████ is susceptible to Cross-Site Request Forgery (CSRF) attacks. This vulnerability enables an attacker to delete a pet from the targeted user's account. The issue arises from a CSRF problem in both GET and POST requests at the endpoint ████, allowing unauthorized deletion of pets.
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 performed state-changing actions on GET requests and lacked any CSRF token or origin check on POST requests.
Impact
An attacker could delete a pet from a targeted user's account without their consent.
What the attacker needed
Victim is logged in; victim visits attacker 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.
Cross-Site Request Forgery (CSRF) is when a malicious website tricks your browser into sending a request to another site where you are already logged in. Because the request carries your session cookie automatically, the other site thinks it is really you. Here, that meant an attacker could quietly delete one of your pets.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.