CometVisu Backend for openHAB affected by RCE through path traversal
Critical severity
GitHub Reviewed
Published
Aug 9, 2024
in
openhab/openhab-webui
•
Updated Aug 12, 2024
Package
Affected versions
<= 4.2.0
Patched versions
4.2.1
Description
Published to the GitHub Advisory Database
Aug 9, 2024
Reviewed
Aug 9, 2024
Published by the National Vulnerability Database
Aug 12, 2024
Last updated
Aug 12, 2024
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).
References