CVE-2023-29004 Path Traversal Vulnerability in hap-wi/roxy-wi
An attacker with user privileges can read arbitrary files on the server via path traversal in the config_file_name parameter.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-29004?
CVE-2023-29004 is a medium-severity path traversal vulnerability in hap-wi roxy-wi, published on 17 Apr 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
hap-wi/roxy-wi is a web interface for managing Haproxy, Nginx, Apache and Keepalived servers. A Path Traversal vulnerability was found in the current version of Roxy-WI (6.3.9.0 at the moment of writing this report). The vulnerability can be exploited via an HTTP request to /app/options.py and the config_file_name parameter. Successful exploitation of this vulnerability could allow an attacker with user level privileges to obtain the content of arbitrary files on the file server within the scope of what the server process has access to. The root-cause of the vulnerability lies in the get_config function of the /app/modules/config/config.py file, which only checks for relative path traversal, but still allows to read files from absolute locations passed via the config_file_name parameter.
Weakness: CWE-22
Which versions are affected by CVE-2023-29004?
It affects 1 product.
Products include Roxy-Wi Roxy-Wi.
How do I fix CVE-2023-29004?
No fix has been published for CVE-2023-29004 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-29004 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-29004 exists.
Other vulnerabilities in hap-wi roxy-wi
- CVE-2022-31161 Roxy-WI Vulnerable to Unauthenticated Remote Code Execution via ssl_cert Upload
- CVE-2022-31137 Unauthenticated Remote Code Execution in Roxy-WI
- CVE-2022-31125 Authentication Bypass in Roxy-wi
- CVE-2022-31126 Unauthenticated Remote Code Execution in Roxy-wi
- CVE-2021-38167 SQL injection in n/a
Sources
Also known as GHSA-7qqj-xhvr-46fv.