Skip to content
Adam Omar Saleh

cruX CTF 2026 placeholder badge (unofficial)cruX CTF 2026Forensics / Document Analysis

PDF Prince

PDF incremental revisions / cross-reference history / XOR / glyph extraction

Competition
cruX CTF 2026 placeholder badge (unofficial)cruX CTF 2026
Category
Forensics / Document AnalysisMedium · estimated
Analysis status
Flag recovered from pdf
Document
Original PDF

01Challenge analysis

The problem

The PDF concealed evidence in an older incremental revision. The visible document included a tempting false flag, but deleted content and an intermediate key remained recoverable from the historical cross-reference structure.

02Exploit or recovery path

How I solved it

  1. 01

    I inspected the PDF structure and traced its incremental updates and cross-reference entries rather than trusting only the newest rendered pages.

  2. 02

    I recovered content from a previous revision of the document and located a hidden keyring layer.

  3. 03

    I used the recovered layer key to reverse the XOR-encoded data and then extracted characters from the resulting glyph data.

  4. 04

    I distinguished the recovered cruX flag from the visible decoy ctf{copy_paste_is_a_trap}.

Result

RECOVERED FLAG

cruX{xr3f_r3m3mb3rs_wh4t_y0u_d3l3t3d}

Flag recovered from pdf

Local Verification
Exact flag recovered during the October 23 investigation.
Evidence Limitation
No platform acceptance receipt retained; the PDF source bytes and complete glyph table are not available in the retrieved notes.

Original document

Original PDF

The writeup as I first documented it.