What Caused Psychic Signatures Vulnerability Cve 2022 21449
Java's ECDSA implementation failed to reject signatures where both r and s are zero, so any message could be accepted as validly signed. An attacker could forge signatures, undermining TLS and JWT integrity.
Published on infosecwriteups.com
Before we begin with this blog post, I’ll ask you one question.Is 0 equal to 0? You might judge me for asking this simple question but this is the basis of this vulnerability.
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
The ECDSA verification code did not check that the signature values r and s were at least 1, allowing a zero pair to satisfy the verification equation.
Impact
An attacker could forge signatures, potentially intercepting communications between browser and server, affecting TLS and JWT integrity.
What the attacker needed
Java 15, 16, 17, or 18; ECDSA used for signatures
The fix
The vulnerability was fixed by applying the April 2022 critical patch from Oracle.
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.
Digital signatures prove who sent a message. This bug meant a signature made of two zeros was always accepted as valid, so anyone could pretend to be someone else.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.