Aller au contenu

StegoRSA

Writeup de Arnold-26, repris avec son autorisation. Source : cylab-academy-writeups — challenge #719, résolu le 2026-11-23. Flags tronqués.

Catégorie : Cryptography · Challenge : #719 · Résolu le : 2026-11-23

Énoncé

A message has been encrypted using RSA. The public key is gone… but someone might have been careless with the private key. Can you recover it and decrypt the message? Download the flag and image.

Résolution

Méthode : clé privee cachee dans l'EXIF.

image.jpg porte la clé privee RSA dans son champ EXIF Comment, encodee en hexadécimal. On decode le hex, on écrit le PEM, puis openssl pkeyutl -decrypt -inkey priv.pem -in flag.enc.

Flag

academy{...}