Quantum Secular Labs / Blog / Advisories

CVE-2017-7474: Keycloak Nodejs Auth Utils: Authentication bypass

CVE-2017-7474 is rated critical with a CVSS v3.0 base score of 9.8 and NVD lists Keycloak Nodejs Auth Utils as the affected product. Per its scoring, it can be exploited over the network, without authentication, without any user interaction. The scored impact on confidentiality, integrity and availability is the highest available.

Vulnerability 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.

Severity breakdown

CVSS v3.0 9.8: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

  • Attack vector: Network. Exploitable remotely over the network, with no need for local or physical access.
  • Attack complexity: Low. No special conditions; the attack can be repeated reliably.
  • Privileges required: None. No account or prior access is needed.
  • User interaction: None. No action from any user is needed.
  • Scope: Unchanged. Impact stays within the vulnerable component.
  • Confidentiality impact: High. Total loss of confidentiality; sensitive data can be fully disclosed.
  • Integrity impact: High. Total loss of integrity; data or system state can be fully modified.
  • Availability impact: High. Total loss of availability; the component can be shut down.

Underlying weakness

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.

Affected products

  • Keycloak Nodejs Auth Utils: 2.5.0; 2.5.0 cr1; 2.5.1; 2.5.2; 2.5.3; 2.5.4; 2.5.5; 2.5.6; 2.5.7; 3.0.0; 3.0.0 cr1

References