Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 2 min read

I hid a terminal in a hackathon landing page and encrypted the answers with themselves

COMMIT//24 is a 24-hour hackathon for D-A-CH. The landing page looks normal to well designed. But maybe there is somet(h)ing [h7]ding in IT? The idea I wanted a page that rewards curiosity. There is a door, a

COMMIT//24 is a 24-hour hackathon for D-A-CH. The landing page looks normal to well designed. But maybe there is somet(h)ing [h7]ding in IT?

The idea

I wanted a page that rewards curiosity. There is a door, and behind it a terminal... try sudo su.... nice try bro. But you can type help and hint ... Too often and you see what happens.

The problem with puzzles in static pages

A static page ships everything to the browser. Anyone can read the source, and so can any language model. If the answer is in the code, the puzzle take_seconds. Gemini Neon Swarms are brutal.

The fix: answers as keys

Nothing behind a seal is stored in plain text. Every response of the terminal is an encrypted blob. The key is derived from what you type (PBKDF2, then AES-GCM). If you type the right thing, the blob opens. If not, nothing happens.

The source therefore contains about two hundred blobs and no hint which ones matter. Some are noise.

False trails

The obvious answers work too. They decrypt cleanly and lead you somewhere, just not forward. One of them ends in a loop that counts down from 10^15.

A detail for German speakers: at one point an umlaut is the difference between the real path and the forest.

No backend

Registration is a pull request. The page stores nothing about you. Solving the seals gives you a code bound to your GitHub name, and you put it into your registration file.

Honest limits

A static page cannot be made proof against a patient attacker. Brute force is slow here, but not impossible. The goal was never a vault. The goal was a puzzle that is more fun to solve than to break.

And I used an AI model myself to build the Irrlichter/traps for the other AIs otherwise it would not have been possible to keep them distracted but many ideas and the direction of the whole hackathon came from my side... An (((((A(h)I))))) would not have been that creative on her own I guess.

Look: https://wwwto-code.github.io/commit24/
The repo: https://github.com/wwwto-code/commit24

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.