CVE-2024-42469: CometVisu Backend for openHAB affected by RCE through path traversal
CometVisu's file system endpoints don't require authentication and additionally the endpoint to update an existing file is susceptible to path traversal. This makes it possible for an attacker to overwrite existing files on the openHAB instance. If the overwritten file is a shell script that is executed at a later time this vulnerability can allow remote code execution by an attacker.
Published Aug 9, 2024 · Updated Aug 12, 2024
Affected packages
org.openhab.ui.bundles:org.openhab.ui.cometvisu
- Ecosystem
- Maven
- Affected
- <= 4.2.0
- Fixed in
- 4.2.1
- Check
mvn dependency:tree -Dincludes=org.openhab.ui.bundles:org.openhab.ui.cometvisu
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
CometVisu's file system endpoints don't require authentication and additionally the endpoint to update an existing file is susceptible to path traversal. This makes it possible for an attacker to overwrite existing files on the openHAB instance. If the overwritten file is a shell script that is executed at a later time this vulnerability can allow remote code execution by an attacker.
This vulnerability was discovered with the help of CodeQL's Uncontrolled data used in path expression query.
Impact
This issue may lead up to Remote Code Execution (RCE).
Credited to p-.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
