Skip to content

Comment on Psychic Signatures in Java

Comments

The fix for OpenJDK (authored on Jan. 4th 22):

https://github.com/openjdk/jdk/blob/e2f8ce9c3ff4518e070960ba...

with commit message “Improve ECDSA signature support” :D

I'm guessing the commit message is obscured to give people more time to update before it's exploited in the wild.

Why are there no tests?

I spot no test or comment in the code on why this assertion is important.

It's literally what the whole bug is about. From OP's article:

This is why the very first check in the ECDSA verification algorithm is to ensure that r and s are both >= 1. Guess which check Java forgot?

Yes I just think it’s insane they fixed it without adding a test or comment.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.