Bug 1584880 (CVE-2015-9235)

Summary: CVE-2015-9235 nodejs-jsonwebtoken: verification step bypass with an altered token
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: dffrench, drusso, jmadigan, jshepherd, lgriffin, ngough, pwright, rrajasek, trepel
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nodejs-jsonwebtoken 4.2.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:27:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1584881    

Description Laura Pardo 2018-05-31 20:53:31 UTC
A flaw was found in jsonwebtoken node module before 4.2.2, it is possible for an attacker to bypass verification when a token digitally signed with an asymetric key (RS/ES family) of algorithms but instead the attacker send a token digitally signed with a symmetric algorithm (HS* family)


References:
https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/ 	
https://nodesecurity.io/advisories/17 	
https://www.timmclean.net/2015/02/25/jwt-alg-none.html

Patch:
https://github.com/auth0/node-jsonwebtoken/commit/1bb584bc382295eeb7ee8c4452a673a77a68b687

Comment 1 Jason Shepherd 2018-06-03 23:21:08 UTC
The fh-supercore component of Red Hat Mobile Application Platform uses nodejs-jsonwebtoken version 7.2.1 which is not affected by this vulnerablity, see:

https://github.com/auth0/node-jsonwebtoken/blob/8da893ae31e0266cb9277c4b931f79375841e545/verify.js#L62