A few clarifications about CVE-2022-21449
A flaw in Java 15 and later allowed invalid ECDSA signatures to be accepted, enabling attackers to forge signatures and potentially bypass authentication. The bug was initially misreported as affecting older Java versions, but only Java 15+ is impacted.
neilmadden.blog
Published on neilmadden.blog
Just a few quick notes/updates to correct some potentially inaccurate statements that are floating around on Reddit/Twitter etc:
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the ECDSA signature verification in Java 15+ failed to properly validate the signature values, allowing invalid signatures to be accepted.
Impact
Attackers could forge signatures, potentially bypassing authentication in systems using Java 15+ with ECDSA, though some JWT libraries may be unaffected due to encoding quirks.
What the attacker needed
Java 15 or later; Use of ECDSA signatures
The fix
The bug was fixed by updating the JVM or JWT library, and ideally both.
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 write-up has not been written yet. The Original tab links to the source.
This is about a mistake in Java's code for checking digital signatures. Digital signatures are like tamper-proof seals that prove a message is genuine. Because of the mistake, Java would accept some fake seals as real, so an attacker could pretend to be someone else.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.