A guided beginner lesson: the L3m0n Puppet Theatre stage page hides its flag
in three pieces across three completely public files. Nothing is
authenticated, nothing is encrypted - the whole solve is four curls and a
jigsaw puzzle.
1/4Step 1: Read the page source
The lesson's "Launch the challenge" button opens
/lab/web/curtain. View-source has an HTML comment that was clearly meant to
be deleted before opening night:
<!-- Stage crew notes (DELETE BEFORE OPENING NIGHT!!)
- flag piece #1: L3m0n{654233b0b8a
- the other pieces are hidden in the costume department and in the vault
-->
Piece #1: L3m0n{654233b0b8a, plus two more hints about where to look next.
2/4Step 2: Follow the stylesheet
The "costume department" is just the linked CSS file - and CSS comments are just as readable as HTML ones:
/* Costume department notes:
* flag piece #2: 740dec49e0f
* (piece #3 is locked in a place robots aren't allowed to visit)
*/
Piece #2: 740dec49e0f.
3/4Step 3: Visit the vault robots are told to skip
robots.txt disallows /secret-cartoon-vault/ - which is a request, not a
lock:
User-agent: *
Disallow: /secret-cartoon-vault/
Disallow: /old-episodes/
Disallow: /tmp/
<p>Flag piece #3: <code>0eb3275ebe}</code></p>
4/4Step 4: Stitch and verify
654233b0b8a + 740dec49e0f + 0eb3275ebe}
= L3m0n{654233b0b8a740dec49e0f0eb3275ebe}
Pitfall
The lesson's own checker (POST /api/flag) answers 403 to the default
Python-urllib user agent. If your submission comes back rejected on the
first try, check your headers before you doubt your flag - send any
explicit User-Agent and it goes through fine.
Note
robots.txt is advice for crawlers, never an access control. Any "robots
aren't allowed here" disallow entry is worth fetching directly - this
lesson makes that lesson literal.