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


Chapter 15  ■ Attacking Compiled Applications



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

Chapter 15 



Attacking Compiled Applications



523

70779c15.qxd:WileyRed  9/14/07  3:14 PM  Page 523




been overwritten is freed from memory, the heap manager needs to update the

linked list of heap blocks. To do this, it needs to update the back link pointer of

the following heap block, and update the forward link pointer of the preceding

heap block, so that these two items in the linked list point to each other. To do

this, it uses the values in the overwritten control structure. Specifically, in order

to update the following block’s back link pointer, the heap manager derefer-

ences the forward link pointer taken from the overwritten control structure and

writes into the structure at this address the value of the back link pointer taken

from the overwritten control structure. In other words, it writes a user-

 controllable value to a user-controllable address. If an attacker has crafted his

overflow data appropriately, he can overwrite any pointer in memory with a

value of his choosing, with the objective of seizing control of the path of execu-

tion and so executing arbitrary code. Typical targets for the arbitrary pointer

overwrite are the value of a function pointer that will later be called by the

application, or the address of an exception handler that will be invoked the next

time an exception occurs.



N OT E


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