CVE-2024-52010 Zoraxy has an authenticated command injection in the Web SSH feature
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
Zoraxy is a general purpose HTTP reverse proxy and forwarding tool. A command injection vulnerability in the Web SSH feature allows an authenticated attacker to execute arbitrary commands as root on the host. Zoraxy has a Web SSH terminal feature that allows authenticated users to connect to SSH servers from their browsers. In HandleCreateProxySession the request to create an SSH session is handled. An attacker can exploit the username variable to escape from the bash command and inject arbitrary commands into sshCommand. This is possible, because, unlike hostname and port, the username is not validated or sanitized.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| tobychui github.com/tobychui/zoraxy(Go) | < 3.1.3+incompatible; >= 2.6.1, < 3.1.3 | 3.1.3, 3.1.3+incompatible | Fixed |
| tobychui github.com/tobychui/zoraxy | = >= 2.6.1, < 3.1.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| tobychui github.com/tobychui/zoraxy(Go) | >= 2.6.1, < 3.1.3 | 3.1.3 |
| tobychui github.com/tobychui/zoraxy(Go) | < 3.1.3+incompatible | 3.1.3+incompatible |
| tobychui github.com/tobychui/zoraxy | = >= 2.6.1, < 3.1.3 | No fix listed |
References
- https://github.com/tobychui/zoraxy/security/advisories/GHSA-7hpf-g48v-hw3j vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/tobychui/zoraxy/commit/2e9bc77a5d832bff1093058d42ce7a61382e4bc6 patch
- https://github.com/tobychui/zoraxy/commit/c07d5f85dfc37bd32819358ed7d4bc32c604e8f0 patch
- github.com product
- pkg.go.dev
- github.com