CVE-2023-46943

An issue was discovered in NPM's package @evershop/evershop before version 1.0.0-rc.8

Critical · published January 13, 2024

CVSS v3.1
9.1
EPSS
0%
Percentile
41.7
In the wild
Unconfirmed
What it is

🔥 The HMAC secret used in @evershop/evershop is hardcoded as 'secret'—and that's a critical oversight that opens the door wider than a barn! Think of it as a bakery using 'password' as the combination to their safe full of recipes. Anyone with a bit of curiosity can just waltz in and access the best-kept secrets! An attacker could exploit this weak HMAC secret to craft valid JSON Web Tokens (JWTs), allowing unauthorized access to sensitive information and actions within the application. This could lead to catastrophic data breaches, manipulation of the application, or even full account takeovers!

Put simply

Think of it as a bakery using 'password' as the combination to their safe full of recipes. Anyone with a bit of curiosity can just waltz in and access the best-kept secrets! This vulnerability stems from the hardcoded HMAC secret, making it predictable and easy for attackers to forge tokens. Without a strong, unique secret, the integrity of the JWTs is compromised, leading to potential unauthorized access.

What to do

An attacker could exploit this weak HMAC secret to craft valid JSON Web Tokens (JWTs), allowing unauthorized access to sensitive information and actions within the application. This could lead to catastrophic data breaches, manipulation of the application, or even full account takeovers! To protect your application, update to version 1.0.0-rc.8 or later immediately. Additionally, generate a strong, unique HMAC secret instead of using the default 'secret' value. Regularly review your security practices to ensure all keys and secrets are properly managed. You've got this! With these steps, you'll fortify your defenses and keep those sneaky attackers at bay! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00498 · 41.7th percentile
Published
2024-01-13T00:00Z
EPSS history
Timeline
  • 13 JAN 00:00Z
    An issue was discovered in NPM's package @evershop/evershop before version 1.0.0-rc.8
    cvelistv5