By Sebastian Maniak
Advent of CVE is a 24-day security campaign from openSUSE Hack Week, built by @e-minguez. Every door is a two-part puzzle: spot the vulnerable line in a realistic artifact, then pick the fix that actually closes the class of bug rather than just the one payload.
This page is my running log. I am solving every door, and I am doing it offline — no submitting to the site, no hints, no leaderboard games. It turns out the campaign is fully verifiable on your own machine, which is a nice property and worth understanding on its own.
Current status: 4/4 parts solved across the 2 released doors. Doors release one per day through December, so this post grows daily. This run covers doors 00–01, with 23 still locked.
Scoreboard
| Day | Title | Category | Difficulty | CVE | Part 1 | Part 2 |
|---|---|---|---|---|---|---|
| 00 | Warm-Up: The Exposed Model Proxy | AI Stack | Easy | — | ✅ | ✅ |
| 01 | Echoes of Shellshock | Linux | Easy | CVE-2014-6271 | ✅ | ✅ |
| 02 | locked | Triage | — | — | 🔒 | 🔒 |
| 03 | locked | Cloud-Native | — | — | 🔒 | 🔒 |
| 04 | locked | AI Stack | — | — | 🔒 | 🔒 |
| 05 | locked | Linux | — | — | 🔒 | 🔒 |
| 06 | locked | Triage | — | — | 🔒 | 🔒 |
| 07 | locked | Cloud-Native | — | — | 🔒 | 🔒 |
| 08 | locked | AI Stack | — | — | 🔒 | 🔒 |
| 09 | locked | Linux | — | — | 🔒 | 🔒 |
| 10 | locked | Triage | — | — | 🔒 | 🔒 |
| 11 | locked | Cloud-Native | — | — | 🔒 | 🔒 |
| 12 | locked | AI Stack | — | — | 🔒 | 🔒 |
| 13 | locked | Linux | — | — | 🔒 | 🔒 |
| 14 | locked | Triage | — | — | 🔒 | 🔒 |
| 15 | locked | Cloud-Native | — | — | 🔒 | 🔒 |
| 16 | locked | AI Stack | — | — | 🔒 | 🔒 |
| 17 | locked | Linux | — | — | 🔒 | 🔒 |
| 18 | locked | Triage | — | — | 🔒 | 🔒 |
| 19 | locked | Cloud-Native | — | — | 🔒 | 🔒 |
| 20 | locked | AI Stack | — | — | 🔒 | 🔒 |
| 21 | locked | Linux | — | — | 🔒 | 🔒 |
| 22 | locked | Triage | — | — | 🔒 | 🔒 |
| 23 | locked | Cloud-Native | — | — | 🔒 | 🔒 |
| 24 | locked | AI Stack | — | — | 🔒 | 🔒 |
How the puzzles verify themselves
The site is a static bundle. There is no answer API — every released door ships to the browser and correctness is checked locally. The whole scheme is three lines (from src/crypto.ts in the repo):
key = SHA-256(salt + ":" + normalize(answer))
verifyHash = SHA-256("verify:" + hex(key))
plaintext = AES-GCM-decrypt(ct, key, iv)
normalize() trims surrounding quotes and whitespace, lowercases, and collapses runs of spaces — so " CVE-2014-6271 " and cve-2014-6271 are the same answer.
Two consequences make this offline-verifiable, and both are load-bearing:
- The hash match is the answer. Reproduce
verifyHashand you have the answer; nothing else is consulted. - The answer is self-proving. The same digest is the AES-GCM key for the next stage. Guess wrong and the GCM auth tag rejects the blob — you cannot get a plausible-looking wrong answer. When the debrief decrypts and the site’s own “Correct” note prints, that is proof rather than a guess.
The part types encode their answer differently, which matters if you write your own checker: spot-the-line submits the 1-based line number as a string, not the line text; signal-or-noise and pick-the-fix submit option.id; forensics submits free text. Doors also carry altKeys — wrapped key slots for accepted alternate phrasings.
The cracker I use is ~150 lines of dependency-free Node:
const normalize = (s) => String(s)
.replace(/^[\s"'`]+|[\s"'`]+$/g, '')
.toLowerCase()
.replace(/\s+/g, ' ');
async function derive(salt, answer) {
const keyBytes = await crypto.subtle.digest(
'SHA-256', enc.encode(`${salt}:${normalize(answer)}`));
const verifyHash = hex(
await crypto.subtle.digest('SHA-256', enc.encode('verify:' + hex(keyBytes))));
return { keyBytes, verifyHash };
}
The doors
Day 00 — Warm-Up: The Exposed Model Proxy
AI Stack · Easy · CWE-918 · unscored warm-up
Briefing. Practice door (unscored in the 24-day campaign) to try the 2-part puzzle flow, hints, and scoring! A teammate added a quick /api/fetch-doc helper to an internal Open WebUI / Ollama gateway so users can attach web pages to their RAG prompt—without validating the destination host.
Part 1 — spot-the-line
Answer: line 5
resp = requests.get(url, timeout=5)
The site confirms it: Line 5 passes an unvalidated user URL straight to requests.get(), letting callers reach cloud metadata (169.254.169.254) or internal Kubernetes services.
Part 2 — pick-the-fix
Users legitimately need to fetch public HTTPS docs, but never loopback, RFC1918, link-local (169.254.169.254), or cluster-internal IPs. Which fix prevents SSRF (including DNS rebinding and redirects)?
resolve-and-pin— Resolve & validate public IP, pin connection, disable unvalidated redirects ← correcthttps-only— Enforce https:// prefix onlystring-blocklist— Block ‘169.254’ and ’localhost’ substrings
Answer: resolve-and-pin — Resolve & validate public IP, pin connection, disable unvalidated redirects
Why
Checking only the URL string (such as startswith("https://") or blocking "localhost") is easily bypassed with a custom DNS record pointing to 169.254.169.254, IPv6 ::1, or a 302 redirect to an internal Kubernetes service. Resolving and validating the destination IP, pinning the connection to prevent DNS rebinding, disabling unvalidated redirects, and enforcing Kubernetes NetworkPolicy or NeuVector egress rules provides true defense in depth. You’re all set for Door 01!
Validating resolved IPs against private/link-local ranges, pinning the connection, and disabling open redirects closes the SSRF vector.
References
Day 01 — Echoes of Shellshock
Linux · Easy · CVE-2014-6271 · CWE-78
Briefing. A legacy status endpoint on an internal Linux appliance still runs a Bash CGI script behind Apache. While reviewing access logs from a security audit, one seemingly ordinary HTTP request triggered unexpected command execution inside the CGI subprocess.
Part 1 — spot-the-line
Answer: line 4
User-Agent: () { :; }; echo; /usr/bin/id
The site confirms it: Line 4 injects a crafted function definition into HTTP_USER_AGENT. Vulnerable Bash imported the function and kept executing /usr/bin/id after the closing brace. The $(id) in the Referer on line 5 is a decoy: Bash stores imported values as plain strings and never expands them.
Part 2 — pick-the-fix
Which upstream Bash change finally closed the whole Shellshock class (CVE-2014-6271 plus parser follow-ups like CVE-2014-7169, -6277 and -6278), not just this payload?
bash-func-prefix— bash43-027: only import functions from variables named BASH_FUNC_%% ← correct waf-rule— Deploy a WAF rule that rejects any request header containing ‘() {’first-patch— bash43-025: parse the imported value as exactly one function definition, nothing after it
Answer: bash-func-prefix — bash43-027: only import functions from variables named BASH_FUNC_
Why
Shellshock (CVE-2014-6271) happened because GNU Bash treated any environment variable whose value started with () { as an exported function and kept executing commands appended after the function body. CGI, OpenSSH ForceCommand and DHCP clients all put attacker-controlled data into environment variables, so the blast radius was huge. The fix came in three steps: bash43-025 stopped trailing commands, bash43-026 fixed the CVE-2014-7169 parser bypass, and bash43-027 moved exported functions into a dedicated BASH_FUNC_<name>%% namespace so ordinary variables never reach the function parser. SUSE Linux Enterprise and openSUSE shipped all three as backports.
With bash43-027, only variables literally named BASH_FUNC_<name>%% are parsed as functions. An attacker who controls HTTP_USER_AGENT can’t reach the parser at all, which is why the later parser bugs (CVE-2014-6277/6278) stopped being remotely exploitable. bash43-025 alone was bypassed by CVE-2014-7169 within about a day. A header WAF rule misses the DHCP, SSH ForceCommand and mail-server vectors entirely.
References
Still locked
Doors 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 have not been released yet, and this is not a puzzle I can beat by being clever. The campaign authors one YAML door per day and the unreleased content is not in the public repo, not in the browser bundle, and not reachable from any endpoint — I checked /api/doors, /data/doors.json, robots.txt, sitemap.xml and the repo tree on the only branch. When a door unlocks its data arrives in the bundle, and the cracker picks it up the same day.
Reproduce it
git clone https://github.com/e-minguez/advent-of-cve
# fetch the live bundle, pull the embedded door data, crack every part
node fetch.mjs && node extract.mjs data/bundle.js && node solver.mjs
Refreshed daily through December 2026. Every answer is verified offline against the door’s own hash and AES-GCM auth tag — nothing was submitted to the site.