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



Download 5,76 Mb.
Pdf ko'rish
bet765/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   761   762   763   764   765   766   767   768   ...   875
Bog'liq
3794 1008 4334

Overriding the Array Constructor

If the JSON data returned by the target application contains a serialized array,

the malicious web site can override the default constructor for arrays in order

to gain access to the JSON data when the array is constructed. This attack can

be performed as follows in the Firefox browser:



This proof-of-concept attack performs three key actions:

■■

It implements a function called 



capture

, which simply generates an

alert displaying any data passed to it.

■■

It overrides the 



Array

object and defines the setter for the first three ele-

ments in the array to be the 

capture


function.

■■

It includes the target JSON object within the page by setting the rele-



vant URL as the 

src


attribute of a 


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   761   762   763   764   765   766   767   768   ...   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