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



Download 5,76 Mb.
Pdf ko'rish
bet558/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   554   555   556   557   558   559   560   561   ...   875
Bog'liq
3794 1008 4334

Subverting Application Logic

Consider an application function that retrieves a user’s stored credit card

number based on a username and password. The following XPath query effec-

tively verifies the user-supplied credentials and retrieves the relevant user’s

credit card number:

//address[surname/text()=’Dawes’ and password/text()=’secret’]/ccard/

text()

Chapter 9 



Injecting Code



317

70779c09.qxd:WileyRed  9/14/07  3:13 PM  Page 317




In this case, an attacker may be able to subvert the application’s query in an

identical way to a SQL injection flaw. For example, supplying a password with

the value

‘ or ‘a’=’a

will result in the following XPath query, which will retrieve the credit card

details of all users:

//address[surname/text()=’Dawes’ and password/text()=’‘ or ‘a’=’a’]/

ccard/text()



N OT E

■■


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   554   555   556   557   558   559   560   561   ...   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