GHSA-c35v-qwqg-87jc json
express-basic-auth Timing Attack due to native string comparison instead of constant time string comparison
published 7y ago modified 4y ago
- cvss
- 3.1
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm express-basic-auth 1.1.7
- github.com/LionC/express-basic-auth@00bb29f commit
- github.com/LionC/express-basic-auth#20 pull request
- github.com/LionC/express-basic-auth#21 pull request
Is GHSA-c35v-qwqg-87jc in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 3.1 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | express-basic-auth | <1.1.7 |
1.1.7 |
Classification
- Weakness
-
- CWE-208 Observable Timing Discrepancy
References
-
github.com
/LionC/express-basic-auth/pull/20
web
-
github.com
/LionC/express-basic-auth/pull/21
web
-
github.com
/LionC/express-basic-auth/commit/00bb29fdd638f5cda8025d4398be97d528ce3f6f
web
-
github.com
/webpack-contrib/webpack-bundle-analyzer/issues/263
web
-
github.com
/LionC/express-basic-auth
package
-
snyk.io
/vuln/SNYK-JS-EXPRESSBASICAUTH-174345
web
-
npmjs.com
/advisories/827
web
Sources
- GitHub Advisory GHSA-c35v-qwqg-87jc
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.