Elliptic Curve Key Disclosure Affecting org.bitbucket.b_c:jose4j Open this link in a new tab package, versions [,0.5.5)
Do your applications use this vulnerable package?
14 Mar 2017
13 Mar 2017
Antonio Sanso, Quan Nguyan
Introduced: 13 Mar 2017CWE-200 Open this link in a new tab
org.bitbucket.b_c:jose4j is a robust and easy to use open source implementation of JSON Web Token (JWT) and the JOSE specification suite (JWS, JWE, and JWK).
Affected versions of the package are vulnerable to Elliptic Curve Key Disclosure.
A JSON Web Token (JWT) defines a container that transports data between two parties. When a JWT is signed with a private key by one of the parties, it's known as a JSON Web Signature (JWS).
The "JWK" (JSON Web Key) is a JSON based open standard used for creating access tokens. JWK's
Header Parameter allows it to include the public key that corresponds to the key used to sign the JWS. If the Header Parameter includes this public key, an attacker could then use it to generate a private key / public key pair, send the public key together with the signature and the signature will be valid.
org.bitbucket.b_c:jose4j to version 0.5.5 or higher.