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


trary data by crafting test conditions to extract one byte of information at



Download 5,76 Mb.
Pdf ko'rish
bet563/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   559   560   561   562   563   564   565   566   ...   875
Bog'liq
3794 1008 4334

trary data by crafting test conditions to extract one byte of information at

a time. Use a series of conditions with the following form to determine

the name of the current node’s parent:

substring(name(parent::*[position()=1]),1,1)=’a’



Having extracted the name of the parent node, use a series of conditions

with the following form to extract all of the data within the XML tree:

substring(//parentnodename[position()=1]/child::node()

[position()=1]/text(),1,1)=’a’

Preventing XPath Injection

If it is felt necessary to insert user-supplied input into an XPath query, this

operation should only be performed on simple items of data which can be sub-

jected to strict input validation. The user input should be checked against a

white list of acceptable characters, which should ideally include only alphanu-

meric characters. Characters that may be used to interfere with the XPath

query should be blocked, including 

( ) = ‘ [ ] : , * /

and all whitespace.

Any input that does not match the white list should be rejected, not sanitized.




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   559   560   561   562   563   564   565   566   ...   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