😭
Multiprime RSA,
WACON2023{75e7511bccf428abfb98da2226b5712ce709a9fc9b92ad1b0a3ccb5f2b1cd772}
Deploy dist directory as tarball. Offline challenge.
Idea extended from ImaginaryCTF 2023 - Sus.
- Create random elliptic curve with extension
$F_{p^2}$ having order$p^2 + 1$ - ECM to factor
$n$
- Sample Random Point
$G$ over$E_{n^2}$ - Evaluate
$Q = n G = p (p ^ 2 + 1) r G = p r (p ^ 2 + 1) G$ - Hope
$Q$ is reduced to 0 modulo a prime factor of$p^2 + 1$ of$n$ . - If it is,
$Q = (Q_{x}: Q_{y}: Q_{z})$ ,$p | \gcd(||Q_{z}||, n)$ - Field structure breaks down; addition and multiplication not well defined, when
$\gcd(||Q_{z}||, n) \neq 0$ - Inverse cannot exist while addition or multiplication.
Due to ring isomorphism,
Implementation: exploit/solve.sage.
Implement Factoring with Cyclotomic Polynomials.
Use degree 4 polynomial of order
-
https://soon.haari.me/2023-wacon-quals/
- Used degree 4 Polynomial of order
$p^4 - 1$
- Used degree 4 Polynomial of order
- General Division: 2 solves
- Global Division: 3 solves