A stack buffer-overflow lab, and the protections that make it fail today
Academic project · 2026
A lab (TP) in an ESILV course, on an isolated, deliberately vulnerable Windows target: the exploit at a high level, and why memory protections stop it.
In short
- What it is
- A lab exercise that works through the classic stack buffer-overflow workflow against a known-vulnerable training application, inside an isolated virtual network, and ties each step back to the protection that defeats it.
- Why
- To understand a memory-safety bug from both sides, how it is exploited and why defences like DEP, ASLR and bounds-checked copies exist.
- My role
- Coursework at ESILV. Educational exercise against a training target, never a real system.
- Domains and tech
- Offensive security. Windows debugging (WinDbg), standard exploit tooling, an isolated VirtualBox lab (Kali and Windows).
- Status
- Academic project: isolated lab, a deliberately vulnerable training target, educational only. Completed. The target had no memory protections, so the input field could be used to take control of the program; the report ties each step to the defence that would have stopped it.
- Period
- 2026
Context and problem
This was a university lab on a classic memory-safety bug. The target was SyncBreeze Enterprise v10.0.28, a Windows application kept for training because it has a publicly documented 2017 vulnerability. All of the work was done inside an isolated VirtualBox lab, a Kali attacker and a Windows target on private host-only networks, so nothing outside the lab was ever involved.
The point wasn’t to attack software. It was to understand one bug class from both sides: how a stack buffer overflow turns bad input into control of a program, and why the defences that are standard today prevent it.
Lab report (ESILV coursework). Educational exercise against a deliberately vulnerable training target.How a stack overflow works here
The vulnerability is the textbook one: an input field is copied into a fixed-size buffer on the stack without checking its length. Send more than the buffer holds, and the extra bytes overwrite what sits next to it, including the saved address the program returns to. Control that address and you control where the program goes next.
I worked through the standard exploit-development steps at a high level: confirm the crash, find how far into the input the return address sits, check which byte values the application mangles, see which memory protections the target has, redirect execution through a processor register, and hand over an encoded payload with standard tooling. The point of each step is covered; this write-up gives no offsets, addresses or payloads.

Result
On this target, with no memory protections in place, the input field could be used to take full control of the program and run code of my choosing on the Windows VM. The root cause was the single unchecked copy of an input field into a stack buffer.
What makes it fail today
The exercise is really a tour of what modern systems do that this 2017 target doesn’t:
- DEP / NX marks the stack non-executable, so a payload sitting there won’t run.
- Stack canaries put a guard value before the return address and check it, so an overflow is caught before the function returns.
- ASLR randomises where modules load, so the fixed addresses an exploit depends on are no longer fixed.
- SafeSEH and CFI validate the targets of exception handlers and indirect calls.
- Bounds-checked copies and length validation at the input itself stop the overflow from ever happening.
Any one of these breaks the chain above; together they are why this class of bug is far harder to exploit on current software.
Scope and limits
This is a teaching exercise, not a finding about a real system. The target is deliberately vulnerable training software, run in an isolated lab; no production or third-party system was involved, and this write-up deliberately leaves out the exploit’s offsets, gadget addresses and payload so it describes the lesson, not a recipe.