ed25519-unsafe-libs
Many Ed25519 signature libraries expose a signing API that accepts the public key as a separate input, allowing an attacker who can call the signing function with arbitrary public keys to obtain two signatures for the same message that share the same R value but differ in S, from which the private key can be extracted. The text lists 45 affected libraries and notes that most applications are probably safe because they do not expose the affected API.
Published on github.com
A list of potentially unsafe ed25519 signature libraries that allow a public api where secret and public key can be provided independently as signing function inputs. Misuse of these public apis can result to private key exposure.
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 signing function accepts the public key as an independent input and does not check that it matches the private key, so the deterministic nonce R is computed without binding to the actual key pair.
Impact
If an application exposes the affected signing API to untrusted users, an attacker could recover the private key; however, most applications are probably safe because they do not expose the API and couple the key pair before signing.
What the attacker needed
Application exposes signing API to attacker; attacker can supply arbitrary public key
The fix
Libraries should store the public key with the private key or re-derive it inside the signing function, and developers should enforce integrity protection for public keys.
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.
Ed25519 is a digital signature scheme: a secret key signs a message, and anyone with the matching public key can verify it. In many libraries the signing function also takes the public key as an argument, and if an attacker can supply a different public key for the same message, the two signatures leak enough information to recover the secret key. The report lists libraries that allow this and explains that applications are only at risk if they let untrusted users control that public-key input.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.