Stack Smashing Protection for Debian
Submitted by srlinuxx on Fri, 06/23/2006 - 15:33
Since we last covered the use of Stack Smashing Protection (SSP) the default compiler for Debian Sid has been upgraded to include it, with no need for custom patching. Read on for a brief demonstration of how it can be used to prevent attacks.
The default C compiler for Sid, which will be used in Etch too, is GCC v4.1. This releasecontains the SSP patch which previously needed to be applied manually (we demonstrated applying this patch for GCC v3.4 a long time ago).
Since the SSP patch is included in the compiler by default it is suddenly a lot easier to start working with it.
A vulnerable Program
Lets look at an example first of all, this is a common sample of a vulnerable C program:

Recent comments
7 hours 29 min ago
1 day 11 hours ago
4 days 4 hours ago
4 days 7 hours ago
5 days 4 hours ago