CVE-2023-39655

A host header injection vulnerability exists in the NPM package @perfood/couch-auth versions <= 0.20.0

Critical · published January 3, 2024

CVSS v3.1
9.6
EPSS
1%
Percentile
43.1
In the wild
Unconfirmed
What it is

🚨 A crafty host header injection vulnerability lurks in the @perfood/couch-auth package for versions <= 0.20.0! This means attackers can hijack your password reset process and redirect users to their own server! 🔥 Think of it like an imposter sneaking into a hotel, sending fake messages to guests about a room service special, and then swiping their keycards — it's smooth, sneaky, and dangerous! If exploited, an attacker could gain access to password reset tokens, allowing them to reset other users' passwords and take over their accounts. This could lead to unauthorized access to sensitive information and compromise user accounts on a large scale — absolutely devastating!

Put simply

Think of it like an imposter sneaking into a hotel, sending fake messages to guests about a room service special, and then swiping their keycards — it's smooth, sneaky, and dangerous! This vulnerability allows attackers to manipulate the host header in a password reset request, resulting in tokens being sent to an attacker-controlled server instead of the legitimate user’s email.

What to do

If exploited, an attacker could gain access to password reset tokens, allowing them to reset other users' passwords and take over their accounts. This could lead to unauthorized access to sensitive information and compromise user accounts on a large scale — absolutely devastating! Update @perfood/couch-auth to version 0.20.1 or later immediately to patch this vulnerability. Additionally, consider implementing strict validation of host headers to prevent similar exploits in the future. You've got this! With a quick update, you can safeguard your users and keep your application secure! 🛡️

The record
Technical detail
CVSS v3.1
9.6 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00521 · 43.1th percentile
Published
2024-01-03T00:00Z
EPSS history
Timeline
  • 03 JAN 00:00Z
    A host header injection vulnerability exists in the NPM package @perfood/couch-auth versions <= 0.20.0
    cvelistv5