Skip to main content
Challenges Git history: deleted production token
Misc Easy Git commit history, loose objects (zlib+SHA-1), and branch/reflog decoys Solves: 3

Git history: deleted production token

Author: CyberSamSU
Points
20

During an internal web server audit, a backed-up repository archive — repo_backup.tar — along with the .git directory was found. In the current working tree, config.py appears clean (it reads from os.environ["PROD_API_TOKEN"]).

However, the developer previously hardcoded and committed the real production PROD_API_TOKEN value directly into the config.py file on the main branch, and removed it in the next commit. The repository also contains other test branches (dev-sandbox, legacy-archive) as well as a discarded experimental commit in reflog — they contain only test (decoy) tokens.

Recover the deleted real production token specifically from the commit history of the main branch (by reading loose objects along the parent chain from git log -p main, git log -S PROD_API_TOKEN -p main, or .git/refs/heads/main). Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).

Attached files
repo_backup.tar Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −2 pts Log in
Hint 2 −4 pts Log in
Hint 3 −6 pts Log in
To submit a flag, log in.

First solvers

1. Odam 25.11.2026
2. Mirjaxon Qaxxarov 25.11.2026
3. Doston Allayarov 28.11.2026