Skip to content
CSRF Disclosed report Beginner

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.

dr34m14 Follow

Originally disclosed on HackerOne

  • 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.

The original report as published on HackerOne, by dr34m14. 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

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.

More by dr34m14

View all

5 more disclosed reports, best first.

More from Mars

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.