Challenges
CRT-RSA fault attack
Cryptography
Easy
Fault attack (Bellcore)
Solves: 5
CRT-RSA fault attack
Author: CyberSamSU
Points
25
For speed, an RSA signature is often calculated with CRT: separately s_p = m^d mod p and s_q = m^d mod q, then combined with CRT. If a fault enters the device during calculation — for example, the part modulo q is corrupted — the result s' will be correct mod p, and incorrect mod q.
This is a classic Bellcore attack: s'^e ≡ m (mod p) but ≢ m (mod q). Hence p = gcd(s'^e − m, n). The modulus is factored — now the flag can be decrypted.
The signed message (an integer) is m = 1654461531753458265583766954650072120810878014685499634230, e = 65537.
n =
8780148177720626751573245740268890257540171559430127627747244467
0876503678300917041996534662293574032198530253552267871823998158
69076684685189701558533547
s' (faulty signature) =
4976373475130461419697202384938652797595002286661421272974346129
8275861598434184441236175237745901658648284054017442965516703724
19587969715011887092763900
c (encrypted flag) =
4287763214232021938998574897561253047957546329086323312166525074
9932969992553096239746299548232828289528754581702048605287778549
69874441345329378097075681
To submit a flag, log in.