Feb 23, 2026Attack TypesAdvancedLanguage: English
Buffer Overflow(N/A)
AdvancedPersian version
A vulnerability that occurs when data is written beyond buffer capacity and overwrites adjacent memory.
memoryinjectionlow-levelc
What is Buffer Overflow?
In one sentence: When you write more data than the space allocated for it and it spills over to other data!
Imagine you have a form that only fits 10 characters. You write 20 characters. The extra 10 spills onto adjacent data! If that adjacent data is important (like function return address), hacker can take control of the program!
How does it work?
You have a C program:
c
1char buffer[10];2gets(buffer); // User gives 50 characters!
40 extra characters spill onto Stack. If hacker calculates precisely, can change Return Address and execute their own code!
Why is it important for security?
Because Buffer Overflow can lead to Remote Code Execution. Hacker takes full control of the program. Many old bugs were this.