Critical vulnerability in JSON Web Encryption (JWE) - RFC 7516 Invalid Curve attack
The JWE specification does not warn implementers about the Invalid Curve attack, and several libraries (node-jose, jose2go, Nimbus JOSE+JWT, jose4j) were found vulnerable.
Originally disclosed on HackerOne
- Fixed in 5 months
- Paid in 5 months
- Disclosed after 2.7 years
We found an issue in the JWE specification where it fails to warn the implementers about Invalid Curve attack. We found several libraries to be vulnerable : node-jose, jose2go, Nimbus JOSE+JWT and jose4j and in the process of filing an errata for the RFC. We report the vulnerabilities to the maintainers that promptly fixed the issue. We also wrote a blog post about it in order to reach the highest number of people potentially vulnerable. You can find the write up in [0,1,2].
[0] http://blog.intothesymmetry.com/2017/03/critical-vulnerability-in-json-web.html [1] http://blogs.adobe.com/security/2017/03/critical-vulnerability-uncovered-in-json-encryption.html [2] https://auth0.com/blog/critical-vulnerability-in-json-web-encryption/
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the JWE specification omitted guidance on validating elliptic curve points, allowing invalid curve attacks in implementations.
Impact
Affected libraries were vulnerable to an Invalid Curve attack.
What the attacker needed
Use of vulnerable JWE library
The fix
The maintainers promptly fixed the issue, and an errata for the RFC is being filed.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
JSON Web Encryption (JWE) is a standard for encrypting data. This report says the standard did not warn developers about an 'Invalid Curve attack', so some libraries were vulnerable.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.