Skip to content
XSS Disclosed report Beginner

[demo.weblate.org] Stored Self-XSS via Editor Link in Profile

The Editor Link field in user preferences accepted a javascript: URL without validation, so a stored script could run when a source string location was clicked on a translation page. An attacker could store such a link and have it execute in the Weblate instance context when a victim clicked the source string.

ysx Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 6 hours
  • Disclosed after 23 days

Hi,

Input validation and/or sanitisation is not currently applied to the "Editor Link" in the user's Preferences. Consequently, it is possible to store a JavaScript payload which is stored and executes in the Weblate instance context.

WeblateXSS.png
WeblateXSS.png From the original on HackerOne

Steps to reproduce

  1. Visit the above Preferences page and identify the Editor Link field
  2. Populate the field with: javascript:confirm(document.domain)
  3. Visit a translation page and select a Source String Location
  4. The XSS will trigger upon clicking on a Source String (e.g. main.c)
EditorLink.png
EditorLink.png From the original on HackerOne

Please let me know if you require any additional information regarding this issue.

Thanks!

The original report as published on HackerOne, by ysx. 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 Editor Link preference was rendered as a clickable link without validating or sanitising the URL scheme, allowing a javascript: URI to be stored and executed.

Impact

A stored script could execute in the Weblate instance context when a user clicked a source string.

What the attacker needed

A Weblate account; victim clicks a source string

How it was found

  1. Open the Preferences page and find the Editor Link field.
  2. Enter a javascript: URL in that field.
  3. Go to a translation page and select a Source String Location.
  4. Click a source string such as main.c to trigger the script.

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.

A website field that is meant to hold a normal web address accepted a special link that starts with 'javascript:' instead. When someone clicks that link, the browser runs the code inside it as if it were part of the site. Because the link was saved in the user's profile, it stayed there and ran for anyone who clicked the source string.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by ysx

View all

25 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 scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.