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



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

Figure 9-9: An LDAP-based directory search function

326

Chapter 9 



Injecting Code

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



When a user supplies the search term 

GUILL


, the application performs the

following LDAP query:



;(givenName=GUILL);cn,telephoneNumber,department

This query contains two key elements:

■■

The search filter:

givenName=GUILL

■■

The attributes to be returned:

cn,telephoneNumber,department

In this situation, it is possible for an attacker to supply a crafted search term

that interferes with one or both of these elements, to modify the information

returned by the query.

Injecting Query Attributes

To retrieve other attributes in the query’s results, you must first terminate the

brackets that encapsulate the search filter and then specify the additional

attributes that you desire. For example, supplying

GUILL);mail,cn;

results in the query



;(givenName=GUILL);mail,cn;);cn,telephoneNumber,

department

which returns an additional column containing the user’s email address, as

shown in Figure 9-10.



Figure 9-10: Injecting an additional query attribute


Download 5,76 Mb.

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