Bug 1702953 (CVE-2019-10157) - CVE-2019-10157 keycloak: Node.js adapter internal NBF can be manipulated leading to DoS.
Summary: CVE-2019-10157 keycloak: Node.js adapter internal NBF can be manipulated lead...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-10157
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1702955
TreeView+ depends on / blocked
 
Reported: 2019-04-25 09:08 UTC by Marian Rehak
Modified: 2020-12-15 15:45 UTC (History)
30 users (show)

Fixed In Version: keycloak-nodejs-connect 4.8.3
Doc Type: If docs needed, set a value
Doc Text:
It was found that Keycloak's Node.js adapter did not properly verify the web token received from the server in its backchannel logout. An attacker with local access could use this to construct a malicious web token setting an NBF parameter that could prevent user access indefinitely.
Clone Of:
Environment:
Last Closed: 2019-07-12 13:07:06 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:1456 0 None None None 2019-06-11 15:32:38 UTC

Description Marian Rehak 2019-04-25 09:08:49 UTC
The admin backchannel logout route (/k_logout) doesn't verify the signature of the JWT it receives from Keycloak. This causes to the adapter to update the grant manager with a NBF in the future. This effectively logs users out of the app and prevents them from logging in again. Since the tokens received from the code exchange will appear to be in the future, this could be used maliciously against applications using the adapter.

Upstream patch:

https://github.com/keycloak/keycloak-nodejs-connect/commit/55e54b55d05ba636bc125a8f3d39f0052d13f8f6

Comment 4 errata-xmlrpc 2019-06-11 15:32:36 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On 7.3.2 zip

Via RHSA-2019:1456 https://access.redhat.com/errata/RHSA-2019:1456

Comment 5 Product Security DevOps Team 2019-07-12 13:07:06 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-10157

Comment 6 Jason Shepherd 2019-08-08 07:24:22 UTC
This vulnerability is out of security support scope for the following product:

 * Red Hat Mobile Application Platform

 Please refer to https://access.redhat.com/support/policy/updates/rhmap for more details


Note You need to log in before you can comment on or make changes to this bug.