The Web Application Hacker’s Handbook Discovering and Exploiting Security Flaws


Modern compilers and operating systems have implemented various



Download 5,76 Mb.
Pdf ko'rish
bet873/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   867   868   869   870   871   872   873   874   875
Bog'liq
3794 1008 4334

Modern compilers and operating systems have implemented various

defenses to protect software against programming errors that lead to buffer

overflows. These defenses mean that real-world overflows today are in general

more difficult to exploit than the examples described here. For further

information about these defenses and ways to circumvent them, see 

The

Shellcoder’s Handbook

.

“Off-by-One” Vulnerabilities

A specific kind of overflow vulnerability arises where a programming error

enables an attacker to write a single byte (or a small number of bytes) beyond

the end of an allocated buffer. 

Consider the following code, which allocates a buffer on the stack, performs

a counted buffer copy operation, and then null-terminates the destination

string:

bool CheckLogin(char* username, char* password)

{

char _username[32];



int i;

for (i = 0; username[i] && i < 32; i++)

_username[i] = username[i];

_username[i] = 0;

...


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   867   868   869   870   871   872   873   874   875




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish