Junglewise Threat Intelligence

CVE-2023-46943: EverShop hard-coded HMAC secret in JWT authentication

CVE-2023-46943 · Severity: low · CVSS 3.1 · Published 2024-01-13

Technologies: EverShop, @evershop/evershop (npm). Vendors: EverShop, npm.

Executive brief

EverShop, an e-commerce platform, was found to use a hard-coded and easily guessable secret key for securing user sessions. This flaw allows an attacker to forge digital identity tokens, potentially gaining full administrative access to the online store. Such an exploit could lead to the theft of customer data, unauthorized modifications to the store, or complete account takeovers.

Technical details

A vulnerability exists in the @evershop/evershop NPM package where the HMAC secret used for signing JSON Web Tokens (JWT) is hard-coded as 'secret'. This falls under CWE-798 (Use of Hard-coded Credentials). Because the secret is predictable and publicly known, a remote, unauthenticated attacker can generate valid JWTs with arbitrary claims. This allows for complete authentication bypass and privilege escalation within the application. The issue was addressed in version 1.0.0-rc.8 by transitioning to a more secure session authentication mechanism.

Affected products

  • EverShop evershop < 1.0.0-rc.8

Timeline

  • 2024-01-12: advisory: NVD published CVE-2023-46943
  • 2024-01-13: disclosed: GHSA advisory published

References

Related threats