All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Stack smashing, integer overflow vulnerability?

Also known as: stack smashing · integer overflow vulnerability

Definition 29.2 University Computer Science — Year 3 · Chapter 29 — Software Security

Stack smashing is a buffer overflow in a stack frame that overwrites other data of the frame: another local variable, the saved frame pointer or the return address. An integer overflow vulnerability is an arithmetic overflow in a size or index computation, which makes a later check or allocation use a wrong, usually too small, value.

The frame of check in the two builds, from , with offsets from the frame pointer in bytes. In the plain build the 29th byte of a name lands in is_admin; with the protector the array sits just below the canary, and the flag is out of reach below it.
The frame of check in the two builds, from Output 29.1, with offsets from the frame pointer in bytes. In the plain build the 29th byte of a name lands in is_admin; with the protector the array sits just below the canary, and the flag is out of reach below it.
Read in context →