Buffer overflow is one of the causes of the most problematic for computer security both local and network. According to the CERT / CC, buffer overflow merupkan the cause of 50% of all reported security bugs and made advisory by CERT / CC. Research conducted by Crispin Cowan and his team consider the buffer overflow as Vulnerbility of Decade.
With the availability of programs of exploitation on the Internet, either in the form of source code or binary often becomes a tool to open a security hole that makes people interested in performing experiments that sporadic regardless of consequences that could bring. Many people who claim to be a cracker if it is successful exploit other people's computers, without understanding the actual workings of such exploitation.
Contoh buffer overflow dalam bahasa C
#include
void duplikasi(char *st) {
char buffer_overflow[3];
strcpy(buffer_overflow, st);
printf(“Anda telah memasukan data ke variabel buffer_overflow dengan :\n%s\n”, buffer_overflow);
return;
}
int main() {
char pesan[10];
printf(“Masukkan karakter, setelah itu tekan Enter : “);
gets(pesan);
duplikasi(pesan);
return 0;
}