Skip to content

CouchAuth host header injection vulnerability leaks the password reset token

High severity GitHub Reviewed Published Jan 3, 2024 to the GitHub Advisory Database • Updated Jan 9, 2024

Package

npm @perfood/couch-auth (npm)

Affected versions

<= 0.20.0

Patched versions

None

Description

A host header injection vulnerability exists in the NPM package @perfood/couch-auth versions <= 0.20.0. By sending a specially crafted host header in the forgot password request, it is possible to send password reset links to users which, once clicked, lead to an attacker-controlled server and thus leak the password reset token. This may allow an attacker to reset other users' passwords and take over their accounts.

References

Published by the National Vulnerability Database Jan 3, 2024
Published to the GitHub Advisory Database Jan 3, 2024
Reviewed Jan 3, 2024
Last updated Jan 9, 2024

Severity

High
8.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Weaknesses

CVE ID

CVE-2023-39655

GHSA ID

GHSA-fqh6-6h6c-366m

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.