CVE-2021-20112 Cross-site scripting in TCExam
An attacker can upload malicious JavaScript files that execute in other users' browsers, potentially leading to session hijacking or data theft.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-20112?
CVE-2021-20112 is a medium-severity cross-site scripting vulnerability in TCExam, published on 29 Jul 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
A stored cross-site scripting vulnerability exists in TCExam <= 14.8.1. Valid files uploaded via tce_select_mediafile.php with a filename beggining with a period will be rendered as text/html. An attacker with access to tce_select_mediafile.php could upload a malicious javascript payload which would be triggered when another user views the file.
Weakness: CWE-79
Which versions are affected by CVE-2021-20112?
It affects 1 product.
Products include Tecnick Tcexam.
How do I fix CVE-2021-20112?
No fix has been published for CVE-2021-20112 yet. Limit exposure of the affected software until one is available.
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-2021-20112 being exploited?
There is no known exploitation of CVE-2021-20112 in the wild and no public exploit code.
Other vulnerabilities in TCExam
Sources
Also known as GHSA-cffr-47qj-jmf7.