ginuerzh/gost vulnerable to Timing Attack
Description
Gost (GO Simple Tunnel) uses non-constant-time password comparison, enabling attackers to guess secrets via side-channel timing attacks.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Gost (GO Simple Tunnel) uses non-constant-time password comparison, enabling attackers to guess secrets via side-channel timing attacks.
Vulnerability
Overview Gost (GO Simple Tunnel) is a Go-based tunneling tool that supports proxy authentication. The vulnerability lies in the Authenticate function in auth.go [3]. The password comparison is performed using a direct string equality check (password == v) rather than a constant-time comparison function. This allows an attacker to use timing side-channel techniques to differentiate between valid and invalid passwords [1][4].
Exploitation
Method An attacker can send HTTP requests with varying password values in the authorization header and measure the server's response time. Due to the non-constant-time comparison, the processing time may vary based on how many characters match, enabling the attacker to iteratively guess the correct password [4]. No authentication is required to perform the attack; the attacker only needs network access to the gost server.
Impact
Successful exploitation could allow an attacker to bypass authentication and gain unauthorized access to the tunnel proxy, potentially leading to data interception, credential theft, or further compromise of internal networks.
Mitigation
The issue is fixed by using crypto/subtle's ConstantTimeCompare function, as shown in the advisory [4]. Users should update to a patched version or apply the provided patch. The maintainer has addressed the vulnerability in the repository.
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/ginuerzh/gostGo | <= 2.11.5 | — |
Affected products
2Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-qjrq-hm79-49wwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-32691ghsaADVISORY
- github.com/ginuerzh/gost/blob/1c62376e0880e4094bd3731e06bd4f7842638f6a/auth.goghsax_refsource_MISCWEB
- github.com/ginuerzh/gost/security/advisories/GHSA-qjrq-hm79-49wwghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.