CVE-2023-29004 Path Traversal Vulnerability in hap-wi/roxy-wi

Medium 6.5 Published Updated

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.

Sources

Also known as GHSA-7qqj-xhvr-46fv.

Is CVE-2023-29004 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free