Vulnerability · Published May 30, 2023 · Assigned by GitHub_M

CVE-2023-32691ginuerzh/gost vulnerable to Timing Attack

Medium 5.9

In plain English

A medium-severity security flaw in gost from ginuerzh. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities).

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

Official description

gost (GO Simple Tunnel) is a simple tunnel written in golang. Sensitive secrets such as passwords, token and API keys should be compared only using a constant-time comparison function. Untrusted input, sourced from a HTTP header, is compared directly with a secret. Since this comparison is not secure, an attacker can mount a side-channel timing attack to guess the password. As a workaround, this can be easily fixed using a constant time comparing function such as `crypto/subtle`'s `ConstantTimeCompare`.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/ginuerzh/gostno fix listedGHSA-qjrq-hm79-49ww

Affected products (as reported)

VendorProductVersions
ginuerzh gost <= 2.11.5

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

References