1. CVE archive
  2. 2017
  3. CVE-2017-7474

CVE-2017-7474

9.8 Critical severity CVSS v3.0 · source NVD CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 9.8 – Critical

Description

It was found that the Keycloak Node.js adapter 2.5 - 3.0 did not handle invalid tokens correctly. An attacker could use this flaw to bypass authentication and gain access to restricted information, or to possibly conduct further attacks.

Affected products

VendorProductVersionPlatform
keycloak keycloak-nodejs-auth-utils 2.5.0 –
keycloak keycloak-nodejs-auth-utils 2.5.0 cr1 –
keycloak keycloak-nodejs-auth-utils 2.5.1 –
keycloak keycloak-nodejs-auth-utils 2.5.2 –
keycloak keycloak-nodejs-auth-utils 2.5.3 –
keycloak keycloak-nodejs-auth-utils 2.5.4 –
keycloak keycloak-nodejs-auth-utils 2.5.5 –
keycloak keycloak-nodejs-auth-utils 2.5.6 –
keycloak keycloak-nodejs-auth-utils 2.5.7 –
keycloak keycloak-nodejs-auth-utils 3.0.0 –
keycloak keycloak-nodejs-auth-utils 3.0.0 cr1 –

Vulnerability type

CWE-253 Incorrect Check of Function Return Value

The product incorrectly checks a return value from a function, which prevents it from detecting errors or exceptional conditions.

Impact on systems

ScopeImpact
Availability, Integrity Unexpected State, DoS: Crash, Exit, or Restart
An unexpected return value could place the system in a state that could lead to a crash or other unintended behaviors.

How to prevent it

Architecture and Design · Language Selection Use a language or compiler that uses exceptions and requires the catching of those exceptions.
Implementation Properly check all functions which return a value.
Implementation When designing any function make sure you return a value or throw an exception in case of an error.

All 17 CWE-253 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org