Skip to content
CSRF Disclosed report Beginner

CSRF bypass ( Delate Source Translation From dictionaries ) in demo.weblate.org

A dictionary entry deletion endpoint on the Weblate demo site accepted a GET request without a CSRF token, so a page on another site could trigger deletion. An attacker could make a logged-in user delete a dictionary entry by getting them to load a crafted page.

sup3r-b0y Follow

Originally disclosed on HackerOne

Medium 4.3 View original
  • Fixed in 11 hours
  • Disclosed after 11 days

Hello

I've Found CSRF in https://demo.weblate.org Sending a POST request dictionaries will delate successfully

steps to reproduce:

  1. go https://demo.weblate.org/ and login into your account
  2. now go https://demo.weblate.org/dictionaries/hello/sl/
  3. add new word, now delate it by CSRF

i made two exploit for attack

POC:

POC:

<!DOCTYPE html> <html> <body> <iframe src="https://demo.weblate.org/delete-dictionaries/hello/sl/5545/" style="display:none;"> </iframe> </body> </html>

Just replace the delate id, and try to delate

if you need more info please let me know!

be safe

Thanks

Attachments

Screenshot_489.png
Screenshot_489.png From the original on HackerOne
Screenshot_490.png
Screenshot_490.png

The original report as published on HackerOne, by sup3r-b0y. 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 delete-dictionaries endpoint performed the deletion on a GET request without validating a CSRF token.

What the attacker needed

Victim has an account and is logged in; victim visits attacker's page; attacker knows the entry id

How it was found

  1. Log in to the demo site.
  2. Open the dictionary page for a language.
  3. Add a new word.
  4. Load a page containing a hidden iframe pointing at the delete URL with the entry id.
  5. The entry is deleted.

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 use a secret token in forms to make sure a request really came from their own pages. Here that check was missing on a delete action, so another website could quietly send the delete request using the victim's logged-in session. 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 sup3r-b0y

View all

1 more disclosed report, 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.