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



Download 5,76 Mb.
Pdf ko'rish
bet566/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   562   563   564   565   566   567   568   569   ...   875
Bog'liq
3794 1008 4334

322

Chapter 9 



Injecting Code

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



Figure 9-8: An email header injection attack

This causes the 

mail()

command to generate the following message:



To: admin@wahh-app.com

From: marcus@wahh-mail.com

Bcc: all@wahh-othercompany.com

Subject: Site problem

Confirm Order page doesn’t load

SMTP Command Injection

In other cases, the application may perform the SMTP conversation itself, or

may pass user-supplied input to a different component in order to do this. In

this situation, it may be possible to inject arbitrary SMTP commands directly

into this conversation, potentially taking full control of the messages being

generated by the application.

For example, consider an application that uses requests of the following

form to submit site feedback:

POST feedback.php HTTP/1.1

Host: wahh-app.com

Content-Length: 56

From=daf@wahh-mail.com&Subject=Site+feedback&Message=foo

This causes the web application to perform an SMTP conversation with the

following commands:

MAIL FROM: daf@wahh-mail.com

RCPT TO: feedback@wahh-app.com

DATA 

From: daf@wahh-mail.com



To: feedback@wahh-app.com

Subject: Site feedback

foo

.


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   562   563   564   565   566   567   568   569   ...   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