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



Download 5,76 Mb.
Pdf ko'rish
bet528/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   524   525   526   527   528   529   530   531   ...   875
Bog'liq
3794 1008 4334

302

Chapter 9 



Injecting Code

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



When used as intended, this script inserts the value of the user-supplied

FileName


parameter into a preset command, executes the command, and dis-

plays the results, as shown in Figure 9-5.



Figure 9-5: A function to display the contents of a log file

As with the vulnerable Perl script, an attacker can use shell metacharacters

to interfere with the preset command intended by the developer, and inject his

own command. The ampersand character (

&

) is used to batch multiple com-



mands together. Supplying a filename containing the ampersand character

and a second command causes this command to be executed and its results

displayed, as shown in Figure 9-6.

Figure 9-6: A successful command injection attack


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   524   525   526   527   528   529   530   531   ...   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