Skip to content
XSS Advisory Intermediate

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.

Alvaro Muñoz Follow

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.

pwntester, on GitHub Security Lab

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

  1. Clone the project repository.
  2. Open the troubleshoot/log.html file in a web browser.
  3. Focus the page.
  4. 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.

More by Alvaro Muñoz

View all

132 more disclosed reports, best first.

More from GitHub Security Lab

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.