hiCTF 2026Cryptography
Tyco
RSA / polynomial GCD / related-message attack
- Competition
hiCTF 2026
- Category
- CryptographyMedium · estimated
- Analysis status
- Flag recovered
- Document
- Original PDF
01Challenge analysis
The problem
The challenge supplied RSA data with a relationship between two plaintext messages. The algebraic relation made it possible to recover the secret without factoring the modulus.
02Exploit or recovery path
How I solved it
- 01
I extracted the public RSA parameters and the two related encrypted expressions from the supplied challenge files.
- 02
I represented the two RSA ciphertext constraints as polynomials in the unknown message over Z_n.
- 03
I computed the polynomial greatest common divisor. The shared linear factor revealed the plaintext relation, recovering the target message.
- 04
I decoded the recovered integer into bytes and checked the expected hiCTF flag format.
Result
RECOVERED FLAG
hiCTF{your_ai_slop_bores_me}
Flag recovered
- Local Verification
- Prior conversation described the related-message recovery as verified; platform acceptance was not archived.
- Evidence Limitation
- Exact RSA modulus, exponent and ciphertext bytes were not retained in the retrieved summary; do not substitute made-up values.