MISSION WRITEUP ID: cylab-mini-rsaPublished: 2026-08-10 by AUKA
Mini RSA: Small Public Exponent Attack (e=3)
Attacking RSA with small exponent e=3 where m^e is barely larger than n by calculating integer roots over padded intervals.
Target Mission Dossier
CryptoMedium
Target Host / IP
Offline Challenge File
Operating System
N/A
Architecture
N/A
Primary Vulnerability
Low Public Exponent RSA (Coppersmith / Root Attack)
Exposed Services:Mathematical Analysis
Attack Kill Chain Progress1 / 3 Steps
01
Phase 1: Analyzing Public Exponent e=3
When encrypting with RSA where public exponent `e=3` and the message `m` is small, `m^e` may only exceed `N` by a few multiples, meaning `c = m^3 (mod N)` does not wrap around `N` many times.
studio@pwnbox:~/cylab-mini-rsa$
02
Phase 2: Unwrapping Modulus Wraparounds (k * N + c)
Since `m^3 = k * N + c` for a relatively small integer `k`, we can iterate through values of `k` starting from `0` and check if `k * N + c` is an exact perfect cube.
studio@pwnbox:~/cylab-mini-rsa$
03
Phase 3: Flag Recovery
Once the root is resolved, converting the resulting integer into ASCII bytes reveals the flag.
studio@pwnbox:~/cylab-mini-rsa$
Final Target Proof of Compromise
Target Root Capture Flag
STUDIO{pwn3d_fl4g_h1dd3n_h3x_00000}