Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWMzNXYtcXdxZy04N2pj
express-basic-auth Timing Attack due to native string comparison instead of constant time string comparison
Versions of express-basic-auth
prior to 1.1.7 are vulnerable to Timing Attacks. The package uses native string comparison instead of a constant time string comparison, which may lead to Timing Attacks. Timing Attacks can be used to increase the efficiency of brute-force attacks by removing the exponential increase in entropy gained from longer secrets.
Recommendation
Upgrade to version 1.1.7 or later.
Permalink: https://github.com/advisories/GHSA-c35v-qwqg-87jcJSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWMzNXYtcXdxZy04N2pj
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Low
Classification: General
Published: over 5 years ago
Updated: almost 2 years ago
CVSS Score: 3.1
CVSS vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Identifiers: GHSA-c35v-qwqg-87jc
References:
- https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/263
- https://github.com/LionC/express-basic-auth/pull/20
- https://github.com/LionC/express-basic-auth/pull/21
- https://github.com/LionC/express-basic-auth/commit/00bb29fdd638f5cda8025d4398be97d528ce3f6f
- https://snyk.io/vuln/SNYK-JS-EXPRESSBASICAUTH-174345
- https://www.npmjs.com/advisories/827
- https://github.com/advisories/GHSA-c35v-qwqg-87jc
Blast Radius: 11.2
Affected Packages
npm:express-basic-auth
Dependent packages: 301Dependent repositories: 4,089
Downloads: 2,028,018 last month
Affected Version Ranges: < 1.1.7
Fixed in: 1.1.7
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.3.1, 0.3.2, 0.3.3, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6
All unaffected versions: 1.1.7, 1.2.0, 1.2.1