
CodeIgniter 4 starter application packaged as a CTF lab environment for reproducing and practicing exploitation of CVE-2026-63223.
This is a file upload validation bypass vulnerability (CVE-2026-63223) in CodeIgniter 4.7.3. Because upload validation only checks the PNG magic bytes and does not inspect the file extension, a file containing PHP code can be uploaded, potentially leading to remote code execution (RCE).
| Item | Value |
|---|---|
| Base image | php:8.2-apache |
| Framework | CodeIgniter 4.7.3 (downloaded at build time) |
| External port | 10002 (internal port 80) |
| Vulnerable endpoint | POST /upload/avatar (field name: avatar) |
| Upload path | /uploads/shell.php |
| Flag location | /flag (inside the container) |
docker compose up -d --build
The flag is injected via the environment variable FLAG. The default is a placeholder (WINS{placeholder}); the real flag is not committed and is specified at run time.
FLAG='WINS{real_flag}' docker compose up -d --build
You can check the container status with the following.
docker compose ps
curl -I http://localhost:10002/
256m0.5http://localhost:80/ every 30 secondspython3 exploit/exploit.py http://localhost:10002
On success, the uploaded shell.php executes cat /flag and outputs the result.
This challenge does not depend on binaries specific to a particular architecture. However, building and operation must be verified on the architectures supported by the php:8.2-apache image (x86_64, ARM64).
privileged, mounting docker.sock, mounting host paths) are not used.WRITEUP.mdexploit/exploit.py