Skip to content

Absolute Path Traversal Vulnerability in hap-wi/roxy-wi

Moderate
Aidaho12 published GHSA-7qqj-xhvr-46fv Apr 15, 2023

Package

hap-wi/roxy-wi

Affected versions

<= 6.3.9.0

Patched versions

None

Description

Summary

Hi Roxy-WI Dev Team!

An Absolute 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. The vulnerability lies in an insufficient patch to CVE-2023-25802.

Successful exploitation of this vulnerability could allow an authenticated attacker to obtain the content of arbitrary files within the file server.

Details

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.

PoC

  1. Send an authenticated HTTP request to /app/options.py as shown below. The PoC retrieves the /etc/passwd, but any files allowed to be read by the user running the HTTPd service can be accessed.

image

Impact

The vulnerability impacts the confidentiality of the server, allowing attacker to access arbitrary files within the filesystem.

Severity

Moderate
6.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

CVE ID

CVE-2023-29004

Weaknesses

Credits