Heartbleed (CVE-2014-0160) reproduction and analysis —CSP Application Security project

Sandbox open-source d'analyse automatisée de malwares qui exécute des fichiers et des URL suspects dans des machines virtuelles isolées et génère des rapports comportementaux détaillés.

Plateforme de renseignement sur les menaces évolutive qui enrichit les observables et les fichiers à l'aide de plus de 200 analyseurs, avec une interface graphique intégrée, une API REST et des workflows automatisés pour les analystes SOC et les équipes DFIR.

A reproducible lab for the course CSP – Solving Current Challenges in Application Security (Hochschule Bonn-Rhein-Sieg). We reproduce the Heartbleed vulnerability in an isolated Docker environment, analyze its root cause, and explore automated detection.
How does the Heartbleed vulnerability arise from insufficient bounds checking in OpenSSL's TLS heartbeat implementation, how can it be reproduced in an isolated and repeatable environment, and to what extent can modern memory-safety testing techniques detect this class of vulnerability?
heartbleed-csp/
├── README.md # this file
├── docker-compose.yml # wires the lab containers on one Docker network
├── vulnerable/ # OpenSSL 1.0.1f + minimal TLS server (the bug is here)
│ └── Dockerfile
├── patched/ # OpenSSL 1.0.1g + minimal TLS server (fixed)
│ └── Dockerfile
├── attacker/ # Heartbleed test client (standard public PoC)
│ └── README.md
├── webapp/ # Secure Corp login portal (the CTF objective)
├── ctf.sh # CTF game controller (list levels, briefs, grade flags)
├── levels/ # one self-contained folder per CTF level
│ ├── README.md # progression map (4 attack + several defense levels)
│ ├── _template/ # copy this to add a level
│ └── attack-01-credentials/
├── detection/ # (planned) defense levels: AddressSanitizer + fuzzing
├── results/ # captured outputs, logs, screenshots
└── report-notes/ # notes for the written report
Clone and start — one command. Your unique per-player flags are generated
automatically on first run (by the secrets-init service), so there's no
manual setup step:
docker compose up --build -d
The first build compiles OpenSSL 1.0.1f from source and takes a few minutes;
later runs use the cache. Then open the portal at http://localhost:8090 and
play (see below). To rotate your flags later: scripts/gen-secrets.sh --force.
The lab is structured as a capture-the-flag game. Each challenge lives in its own
folder under levels/ and is driven by the ctf.sh controller. Run it with no
arguments for a quick-start guide:
./ctf.sh # welcome + first-time setup steps
./ctf.sh levels # list all levels, status, and your score
./ctf.sh brief attack-01 # read a level's objective + hints
./ctf.sh submit attack-01 'CTF_FLAG{...}' # grade your flag (+points)
./ctf.sh progress # your score and what to play next
Solved levels are remembered locally (in the gitignored .ctf_progress), so
levels and progress track your running score out of 1000.
Level 1 (attack-01): leak the portal's login credentials from the vulnerable
TLS server with Heartbleed, then sign in at http://localhost:8090/portal to reveal the
flag. See levels/README.md for the full progression and how
to add new levels.
Then run the tests (to be documented) and compare the vulnerable vs patched behaviour.
The lab runs on a Docker bridge network and deliberately publishes only the CTF portal on http://localhost:8090, so a player can sign in with the leaked credentials; the TLS servers are reachable only inside the lab network. We never target real systems or real data: every secret is fake and unique per player — lab-only credentials, a throwaway TLS key regenerated each boot, and marker flags — planted in the server's memory only to demonstrate the over-read.
OpenSSL security advisory, CVE-2014-0160 (NVD), and the OpenSSL 1.0.1f → 1.0.1g source diff. Full citations are kept in the report.
Une collection de scripts d'installation de logiciels pour systèmes Windows qui vous permet de configurer et de maintenir facilement un environnement de rétro-ingénierie sur une machine virtuelle.