HAKATEMIA
05Modules

JWT Key Confusion Attacks when the Public Key is Unknown

Hard30MIN

Public Key Inference

When JWT is signed with an asymmetric algorithm, the pair of private keys used for the signature, i.e. the public key, can sometimes be deduced mathematically. The calculation is based on this StackExchange discussion: https://crypto.stackexchange.com/questions/30289/is-it-possible-to-recover-an-rsa-modulus-from-its-signatures/30301#30301

The formula does not need to be understood, a tool has already been found on GitHub with which the calculation has been implemented.

1 / 5
Hakatemia Pro

Learn to hack — start here

Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.