Skip to content
CSRF Disclosed report Beginner

CSRF in Delete Pet Function

The pet deletion endpoint lacked CSRF protection, so an attacker could make an authenticated user delete a pet by having them visit a crafted page. The report claims the attacker can force deletion without the user's knowledge or consent.

mosalah1102 Follow

Originally disclosed on HackerOne

Medium 4.4 View original
  • Triaged in 3 days
  • Fixed in 22 days
  • Disclosed after 8 months

Summary by the program

A Cross-Site Request Forgery (CSRF) vulnerability is identified in the Delete Pet functionality on the ████████ platform. The vulnerability is discovered in the pet deletion endpoint which can be exploited by manipulating the pet ID parameter. When exploited, an attacker can force authenticated users to delete their pets without their knowledge or consent by simply having them visit a maliciously crafted webpage containing the CSRF payload.

The original report as published on HackerOne, by mosalah1102. 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 delete-pet endpoint accepted state-changing requests without a CSRF token or other origin check.

Impact

An authenticated user who visits a malicious page could have a pet deleted without their knowledge or 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.

When you are logged in to a website, your browser automatically sends your session cookie with every request to that site. A cross-site request forgery (CSRF) attack tricks your browser into sending a request the site trusts, from a page the attacker controls. Here, the delete-pet request had no extra check that the user really meant to send it, so a malicious page could trigger the deletion.

What is CSRF?

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

More by mosalah1102

View all

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