Skip to main content
Challenges RSA signature forgery
Cryptography Hard RSA signature Solves: 9

RSA signature forgery

Author: CyberSamSU
Points
105

RSA signature is the reverse of encryption. The signer calculates s = md mod n with the private key, while the verifier sees that se mod n == m with the public key.

An unpadded (textbook) signature is homomorphic with respect to multiplication: (m1·m2)d = m1d · m2d (mod n). That is, if we multiply the signatures of two documents, a valid signature for their product is produced — without knowing the private key.

The notary has signed 24 document numbers; the list and signatures are in the notarius.txt file (hujjat01…hujjat24 and the corresponding imzo01…imzo24). target in the file is a document number for which a signature was not provided to you. It is impossible to contact the notary again.

Among the documents in the list, there are two whose product is exactly equal to target. Find them (simple check: target % hujjat == 0), multiply their signatures modulo the modulus, and generate a forged signature.

The flag is the last 16 decimal digits of the forged signature: BAYROQ{RS4_soxta_imzo_<16_raqam>}. Verification: pow(soxta, e, n) == target.

Attached files
notarius.txt Log in to download
SHA-256 checksums
notarius.txt: 27882a3fc181ac862ba4cf1aeed721660c1a2365a56ce034756f85326fc02036
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −10 pts Log in
Hint 2 −21 pts Log in
Hint 3 −31 pts Log in
To submit a flag, log in.

First solvers

1. W.o.X 17.09.2026
2. Лазиз 01.10.2026
3. testrejim 09.10.2026
4. 11111tttt 09.10.2026
5. Mirjaxon Qaxxarov 26.10.2026
6. anonym 29.10.2026
7. Odam 04.11.2026
8. arcanum 11.11.2026
9. Doston Allayarov 28.11.2026