CSRF : Reset API
The API key reset endpoint accepted a GET request without a CSRF token, so an attacker could make a victim's browser reset their API key. The attacker could force the victim to reset their API key.
- Triaged in under an hour
- Fixed in 2 hours
- Disclosed after 23 days
Description : Attacker can force to victim for reset his API.
That HTTP Request :
GET /accounts/reset-api-key/ HTTP/1.1
Host: hosted.weblate.org
Connection: close
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Referer: https://hosted.weblate.org/
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: en-US,en;q=0.8
Cookie: cookie_here
Fix : Make that Request POST , and add a CSRF token there.
Best Regards', Jay Patel
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 reset endpoint used a GET request and had no CSRF token, so it could be triggered cross-site.
What the attacker needed
Victim is logged in; victim visits attacker page or link
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 sends your session cookie with every request to that site. If a sensitive action like resetting an API key can be triggered by simply loading a link, another site can make your browser do it without you noticing. 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.