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



Download 5,76 Mb.
Pdf ko'rish
bet574/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   570   571   572   573   574   575   576   577   ...   875
Bog'liq
3794 1008 4334

Modifying the Search Filter

In some situations, the user-supplied input is not used directly as the entire

value of the search filter but is embedded in a more complex filter. For exam-

ple, if the user performing the search is only allowed to view the details of

employees based in France, the application might perform the following

query:


;(&(givenName=GUILL)(c=FR));cn,telephoneNumber,depart

ment,c


328

Chapter 9 



Injecting Code

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



This uses the 

&

operator to combine two conditions — the first controlled by



the user and the second preset by the application. Supplying the search term 

*

will return the details of all users based in France. However, supplying the



string

*));cn,cn;

causes the application to make the following query:

;(&(givenName=*));cn,cn;)(c=FR));cn,telephoneNumber,d

epartment,c

which subverts the application’s original logic, removing the 

(c=FR)


condition

from the search filter, thus returning the results of all users in all countries, as

shown in Figure 9-12.

Figure 9-12: A successful attack to subvert the intended search filter


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   570   571   572   573   574   575   576   577   ...   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