Skip to content
Crypto Disclosed report Advanced

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.

Antonio Sanso Follow

Originally disclosed on HackerOne

Bounty$1,000 High View original
  • 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/

The original report as published on HackerOne, by asanso. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by Antonio Sanso

View all

3 more disclosed reports, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.