GHSL-2021-1004: Copy-paste XSS in Threema Web text editor
The Threema Web text editor is vulnerable to copy-paste cross-site scripting (XSS). An attacker could trick a victim into pasting a malicious payload into the editor, leading to script execution.
Originally disclosed on GitHub Security Lab
The Threema Web text editor is vulnerable to copy-paste cross-site scripting (XSS). For this particular type of XSS, the victim needs to be fooled into copying a malicious payload into the text editor.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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
Impact
This issue may lead to XSS with user interaction.
What the attacker needed
Victim pastes malicious content
The fix
The issue was fixed in a commit.
How it was found
- Clone the project repository.
- Open the troubleshoot/log.html file in a web browser.
- Focus the page.
- Paste the provided JSON payload into the page.
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.
Cross-site scripting (XSS) is a type of security flaw where an attacker can inject malicious code into a web page that other people view. In this case, the attack requires the victim to copy some text and paste it into a specific editor, which then runs the hidden code.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.