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


Exploiting Any Trust Relationships



Download 5,76 Mb.
Pdf ko'rish
bet676/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   672   673   674   675   676   677   678   679   ...   875
Bog'liq
3794 1008 4334

Exploiting Any Trust Relationships

You have already seen one important trust relationship which XSS may

exploit: browsers trust JavaScript received from a web site with the cookies

394

Chapter 12 



Attacking Other Users

70779c12.qxd:WileyRed  9/14/07  3:14 PM  Page 394



issued by that web site. There are several other trust relationships that can

sometimes be exploited in an XSS attack:

■■

If the application employs forms with autocomplete enabled, JavaScript



issued by the application can capture any previously entered data that

the user’s browser has stored in the autocomplete cache. By instantiat-

ing the relevant form, waiting for the browser to autocomplete its con-

tents, and then querying the form field values, the script can steal this

data and transmit it to the attacker’s server. The same technique can

also be performed against the Firefox password manager to steal the

user’s credentials for the application. This attack can be more powerful

than injecting Trojan functionality, because sensitive data can be cap-

tured without requiring any interaction by the user.

■■

Some web applications recommend or require that users add their



domain name to the “Trusted Sites” zone of their browser. This is

almost always undesirable and means that any XSS-type flaw can be

exploited to perform arbitrary code execution on the computer of a 

victim user. For example, if a site is running in the Trusted Sites zone of

Internet Explorer, then injecting the following code will cause the Win-

dows calculator program to launch on the user’s computer:



■■

Web applications often deploy ActiveX controls containing powerful



methods (see the “Attacking ActiveX Controls” section, later in this

chapter). Some applications seek to prevent misuse by a third party by

verifying within the control itself that the invoking web page was

issued from the correct web site. In this situation, the control can still be

misused via an XSS attack, because in that instance the invoking code

will satisfy the trust check implemented within the control.




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   672   673   674   675   676   677   678   679   ...   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