CVE-2023-40985 Cross-site scripting in n/a
Attackers can inject malicious scripts into Webmin's File Manager, executing code in victims' browsers during file search or replace operations.
- 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-2023-40985?
CVE-2023-40985 is a medium-severity cross-site scripting vulnerability in Webmin Webmin, published on 15 Sep 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
An issue was discovered in Webmin 2.100. The File Manager functionality allows an attacker to exploit a Cross-Site Scripting (XSS) vulnerability. By providing a malicious payload, an attacker can inject arbitrary code, which is then executed within the context of the victim's browser when any file is searched/replaced.
Weakness: CWE-79
Which versions are affected by CVE-2023-40985?
It affects 1 product.
Products include Webmin Webmin.
How do I fix CVE-2023-40985?
No fix has been published for CVE-2023-40985 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-2023-40985 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-40985 exists.
Other vulnerabilities in Webmin Webmin
Sources
Also known as GHSA-m8xw-xh7f-gj9q.