Vulnerability · Published May 14, 2024 · Assigned by GitHub_M

CVE-2024-35175sshpiper's Enabling of Proxy Protocol without proper feature flagging allows faking source address

Medium 5.3

In plain English

A medium-severity insufficient verification of data authenticity in sshpiper from tg123. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 18% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.3%top 82.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

sshpiper is a reverse proxy for sshd. Starting in version 1.0.50 and prior to version 1.3.0, the way the proxy protocol listener is implemented in sshpiper can allow an attacker to forge their connecting address. Commit 2ddd69876a1e1119059debc59fe869cb4e754430 added the proxy protocol listener as the only listener in sshpiper, with no option to toggle this functionality off. This means that any connection that sshpiper is directly (or in some cases indirectly) exposed to can use proxy protocol to forge its source address. Any users of sshpiper who need logs from it for whitelisting/rate limiting/security investigations could have them become much less useful if an attacker is sending a spoofed source address. Version 1.3.0 contains a patch for the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/tg123/sshpiper1.3.0GHSA-4w53-6jvp-gg52
Gogithub.com/tg123/sshpiper1.3.0GO-2024-2853

Affected products (as reported)

VendorProductVersions
tg123 sshpiper >= 1.0.50, < 1.3.0

Weakness: CWE-345 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References