CVE-2022-42974 Cross-site scripting in n/a
Stored XSS in Kostal PIKO solar panel HMI allows attackers to inject scripts via filename parameter, potentially compromising user sessions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-42974?
CVE-2022-42974 is a medium-severity cross-site scripting vulnerability in n/a, published on 21 Jun 2024. 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
In Kostal PIKO 1.5-1 MP plus HMI OEM p 1.0.1, the web application for the Solar Panel is vulnerable to a Stored Cross-Site Scripting (XSS) attack on /file.bootloader.upload.html. The application fails to sanitize the parameter filename, in a POST request to /file.bootloader.upload.html for a system update, thus allowing one to inject HTML and/or JavaScript on the page that will then be processed and stored by the application. Any subsequent requests to pages that retrieve the malicious content will automatically exploit the vulnerability on the victim's browser. This also happens because the tag is loaded in the function innerHTML in the page HTML.
Weakness: CWE-79
Which versions are affected by CVE-2022-42974?
How do I fix CVE-2022-42974?
No fix has been published for CVE-2022-42974 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-2022-42974 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-42974 exists.
Sources
Also known as GHSA-8gvf-f484-h344.