GHSL-2021-1001: Copy-paste XSS in textAngular text editor - CVE-2021-32854
The textAngular text editor is vulnerable to copy-paste cross-site scripting (XSS). An attacker could trick a victim into copying a malicious payload into the editor, leading to script execution.
Originally disclosed on GitHub Security Lab
The textAngular 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 copies malicious HTML; victim pastes into textAngular editor
How it was found
- Open the proof-of-concept page.
- Paste the provided HTML code into the 'HTML Input' field.
- Click 'Copy as HTML'.
- Open the textAngular website.
- Paste into the text editor.
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 security flaw where an attacker can inject malicious code into a web page viewed by others. In this case, the textAngular editor fails to properly clean up content that is pasted into it, so if a victim copies a specially crafted piece of HTML and pastes it into the editor, the embedded script runs. The attacker must first trick the victim into copying the malicious content.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.