Stack Buffer Overflow
Also called stack smashing.
Overflowing a stack buffer to overwrite the saved return address.
What it is
A buffer overflow that occurs in a buffer allocated on the call stack. Because saved return addresses and frame pointers live on the stack, an overflow can hijack control flow when the function returns.
Why it matters
Classic stack smashing turns a simple input-handling bug into reliable code execution, which is why stack canaries and non-executable stacks exist. In IR, stack-overflow crashes near return instructions are a strong exploitation signal.
In practice
A vulnerable parser overruns a local char array, replacing the return address with the start of attacker-supplied shellcode.
What to look for
- Stack canary failures in crash logs.
- Saved return addresses overwritten with input bytes.
- Fixed size stack buffers filled from input.
Common mistake
Disabling canaries for speed. They stop many stack overflows outright.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
- Risk Scoring
Score a vulnerability with CVSS v3.1, or an incident across five dimensions, and see the reasoning behind each number.
- Map and Score
Map real procedures to ATT&CK techniques, then pick the CVSS v3.1 metrics for real vulnerabilities.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
Nessus Commercial
A vulnerability scanner that checks hosts for known flaws and missing patches.
-
Qualys VMDR Commercial
A cloud platform that scans assets and ranks vulnerabilities for patching.
-
OpenVAS Open source
An open source vulnerability scanner with a large set of checks.
-
Nuclei Open source
Runs community templates that test for specific, newly published flaws.
Read next
- Buffer Overflow: Writing past the end of a buffer to corrupt adjacent memory.
- Stack Canary: A guard value checked on return to detect stack overflows.
- Return-Oriented Programming: Chaining existing code snippets ending in returns to run logic.