CVE-2021-40041 Cross-site scripting in WS318n-21
A local authenticated attacker can inject special characters into network settings to cause information disclosure via XSS.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-40041?
CVE-2021-40041 is a medium-severity cross-site scripting vulnerability in WS318n-21, published on 7 Jan 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
There is a Cross-Site Scripting(XSS) vulnerability in HUAWEI WS318n product when processing network settings. Due to insufficient validation of user input, a local authenticated attacker could exploit this vulnerability by injecting special characters. Successful exploit could cause certain information disclosure. Affected product versions include: WS318n-21 10.0.2.2, 10.0.2.5 and 10.0.2.6.
Weakness: CWE-79
Which versions are affected by CVE-2021-40041?
It affects 1 product.
Products include Huawei Ws318n-21 Firmware.
How do I fix CVE-2021-40041?
No fix has been published for CVE-2021-40041 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-40041 being exploited?
There is no known exploitation of CVE-2021-40041 in the wild and no public exploit code.
Sources
Also known as GHSA-4frh-rw8g-vq9h.