CVE-2019-13970 AntSword RCE and XSS via code injection
Self-XSS in antSword database configuration allows attackers to execute arbitrary code via malicious input in database settings.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2019-13970?
CVE-2019-13970 is a medium-severity cross-site scripting vulnerability in n/a, published on 19 Jul 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
In antSword before 2.1.0, self-XSS in the database configuration leads to code execution via modules/database/asp/index.js, modules/database/custom/index.js, modules/database/index.js, or modules/database/php/index.js.
Weakness: CWE-79
Which versions are affected by CVE-2019-13970?
2 open source packages ship an affected version, including antsword. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
antsword npm | All versions | 2.1.0 |
antsword npm | All versions | 2.1.0 |
Products include Antsword Project Antsword.
How do I fix CVE-2019-13970?
Upgrade antsword to 2.1.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2019-13970 being exploited?
There is no known exploitation of CVE-2019-13970 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-hq75-ggc3-8h3q.