Skip to content
CSRF Disclosed report Beginner

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.

jaypatel Follow

Originally disclosed on HackerOne

  • 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

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

More by jaypatel

View all

4 more disclosed reports, best first.

More from Weblate

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.