HTML/Javascript possible in "Discussion" section of reviews
The discussion section of a review accepted HTML and JavaScript without filtering, so a user could enter a message containing markup or script. When another user opened the link shown there, the HTML was not filtered and the JavaScript could execute.
- Fixed in 6 hours
- Disclosed after 40 hours
It's possible to enter HTML code and/or execute javascript code in the "Discussion" section for review.
To reproduce:
- Enter a new phrase in a project.
- Login as a different user and provide a new translation for the phrase.
- Switch back to the user that created the project and check the review phrase.
- In the discussion section, enter a new message containing HTML/Javascript.
- Open the link the is shown there and observe that HTML is not filtered and that javascript can be executed.
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 discussion message was rendered as HTML without sanitising or escaping user input.
Impact
An attacker could run JavaScript in another user's browser when that user opened the discussion link.
What the attacker needed
A user account; ability to create or translate a phrase; victim opens the discussion link
How it was found
- Enter a new phrase in a project.
- Log in as a different user and provide a new translation for the phrase.
- Switch back to the user that created the project and check the review phrase.
- In the discussion section, enter a new message containing HTML/Javascript.
- Open the link shown there and observe that HTML is not filtered and JavaScript executes.
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 should treat anything a user types as plain text, not as code. Here, a message box in a review discussion let someone type HTML (the language used to build web pages) and JavaScript (code that runs in the browser). When another person viewed that message, their browser ran the code, which is called cross-site scripting.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.