feat(red): challenge Red Team 3 VAULT-9 (reverse XOR + ret2win, flags… - #8
Merged
Merged
Conversation
… hors dépôt via challenge.env)
There was a problem hiding this comment.
Pull request overview
This PR adds a new intermediate “Red Team 3” binary challenge (VAULT-9) to the RootMeUp challenges suite, including Dockerized deployment, player/admin documentation, a report template, and a reference exploit/solution flow.
Changes:
- Introduces the VAULT-9 vulnerable binary source (
vault.c) plus container runtime (Dockerfile, entrypoint, compose). - Adds secret/flag generation at build time via
setup/gen_secret.pywith an examplechallenge.envfile. - Adds player/admin docs, a report template, and spoiler solution + automated exploit script.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| challenges/3-Red-Team-Binary-Vault/solution/SOLUTION.md | Spoiler write-up for reverse (XOR) + ret2win approach and expected output. |
| challenges/3-Red-Team-Binary-Vault/solution/exploit.py | Pwntools exploit automating license bypass + ret2win to vault(). |
| challenges/3-Red-Team-Binary-Vault/setup/gen_secret.py | Generates secret.h + flag*.txt from env / challenge.env / placeholders. |
| challenges/3-Red-Team-Binary-Vault/setup/challenge.env.example | Template for providing LICENSE/FLAG1/FLAG2/XOR_KEY outside git. |
| challenges/3-Red-Team-Binary-Vault/report/report_template.md | Player/team report template for write-up consistency. |
| challenges/3-Red-Team-Binary-Vault/README.md | High-level challenge overview, structure, and quick build instructions. |
| challenges/3-Red-Team-Binary-Vault/docs/USER_GUIDE.md | Player-facing guide (no spoilers) and suggested tooling. |
| challenges/3-Red-Team-Binary-Vault/docs/ADMIN_DEPLOYMENT.md | Admin deployment guide (CTFd container plugin), build/test/extraction notes. |
| challenges/3-Red-Team-Binary-Vault/Dockerfile | Debian-based build producing the vulnerable binary + flag files and running via socat. |
| challenges/3-Red-Team-Binary-Vault/docker-entrypoint.sh | Starts socat listener to spawn one vault per TCP connection. |
| challenges/3-Red-Team-Binary-Vault/docker-compose.yml | Local test deployment configuration with optional build-arg overrides. |
| challenges/3-Red-Team-Binary-Vault/challenge/vault.c | Challenge binary implementing XOR license check and intentional overflow for ret2win. |
| challenges/3-Red-Team-Binary-Vault/.gitignore | Ignores generated artifacts and local secret config. |
| challenges/3-Red-Team-Binary-Vault/.dockerignore | Excludes non-build artifacts (docs/solution/report) from Docker build context. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| ## Modifier les flags / la licence | ||
|
|
||
| Éditer `setup/gen_secret.py` (constantes `LICENSE`, `XOR_KEY`, `FLAG1`, `FLAG2`) puis rebuilder. Penser à régénérer/rejoindre le binaire et à mettre à jour les flags dans CTFd. |
Comment on lines
+5
to
+6
| - **Flag 1** : `RM{r3v3rs3_l3_x0r_c0mm3_un_pr0}` | ||
| - **Flag 2** : `RM{r3t2w1n_l4_v4ult_3st_0uv3rt3}` |
Comment on lines
+66
to
+68
| [+] vault() @ 0x401334 | ||
| [+] Flag 1 : RM{r3v3rs3_l3_x0r_c0mm3_un_pr0} | ||
| [+] Flag 2 : RM{r3t2w1n_l4_v4ult_3st_0uv3rt3} |
Comment on lines
+72
to
+74
| printf("Commande > "); | ||
| read(0, buf, 200); | ||
| printf("Commande '%s' non reconnue.\n", buf); |
Jacob-dot-bit
added a commit
that referenced
this pull request
Jul 20, 2026
feat(red): challenge Red Team 3 VAULT-9 (reverse XOR + ret2win, flags…
Jacob-dot-bit
added a commit
that referenced
this pull request
Jul 20, 2026
feat(red): challenge Red Team 3 VAULT-9 (reverse XOR + ret2win, flags…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… hors dépôt via challenge.env)