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



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

Email Header Manipulation

Consider the form shown in Figure 9-7, which allows users to send feedback

about the application.

Figure 9-7: A typical site feedback form

Here, users can specify a From address and the contents of the message. The

application passes this input to the PHP 

mail()


command, which constructs

the email and performs the necessary SMTP conversation with its configured

mail server. The mail generated is as follows:

To: admin@wahh-app.com

From: marcus@wahh-mail.com

Subject: Site problem

Confirm Order page doesn’t load

The PHP 


mail()

command uses an 

additional_headers

parameter to set

the From address for the message. This parameter is also used to specify other

headers, including Cc and Bcc, by separating each required header with a

newline character. Hence, an attacker can cause the message to be sent to arbi-

trary recipients by injecting one of these headers into the From field, as illus-

trated in Figure 9-8.


Download 5,76 Mb.

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