
An isolated Vagrant testbed designed to simulate a complete attack chain: Initial access via the Nginx heap buffer overflow (CVE-2026-42533) followed by root privilege escalation using the Ghostlock kernel vulnerability (CVE-2026-43449).
This repository provides a Vagrant environment designed to demonstrate a complete two-stage exploitation chain. The testbed automatically provisions an isolated Ubuntu 22.04 LTS virtual machine that is intentionally configured to be vulnerable to the following CVEs:
The environment is intended for exploit development, automated penetration testing, security research, and educational use within an isolated lab.
| Component | Value |
|---|---|
| Operating System | Ubuntu 22.04 LTS (bento/ubuntu-22.04) |
| Hypervisor | VMware Desktop |
| vCPUs | 2 |
| Memory | 2048 MB |
| Network | Private network |
| Target IP | 192.168.56.10 |
| Hostname | testbed-target-CVE-2026-43449 |
The provisioning script configures the machine to support a complete attack chain consisting of remote code execution followed by local privilege escalation.
The provisioning process configures a vulnerable Nginx server in:
/etc/nginx/sites-available/default
The configuration intentionally triggers the vulnerable code path by forcing Nginx to evaluate a PCRE map directive during a VALUE pass. This corrupts the shared r->captures state, resulting in a heap buffer overflow that can be leveraged to obtain code execution as the www-data user.
To preserve the vulnerable kernel required for GhostLock, the provisioning process:
unattended-upgrades service.apt-mark hold.This ensures the VM remains in a reproducible vulnerable state for privilege escalation research.
After obtaining an initial foothold through the Nginx vulnerability, researchers can execute a GhostLock exploit to elevate privileges to root.
Start the environment with:
vagrant up
After provisioning completes, the target machine will be available at:
192.168.56.10
The intended evaluation workflow is:
This testbed is intended for:
Warning: This environment intentionally contains vulnerable software and disables automatic security updates. Deploy and use it only within isolated laboratory or virtualized environments.