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



Download 5,76 Mb.
Pdf ko'rish
bet661/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   657   658   659   660   661   662   663   664   ...   875
Bog'liq
3794 1008 4334

Storing XSS in Uploaded Files

One common, but frequently overlooked, source of stored XSS vulnerabilities

arises where an application allows users to upload files that can be down-

loaded and viewed by other users. If you can upload an HTML or text file con-

taining JavaScript, and a victim views the file, then your payload will

normally be executed.

Many applications disallow the uploading of HTML files to prevent this

kind of attack; however, in most cases they allow files containing JPEG images.

In Internet Explorer, if a user requests a JPEG file directly (not via an embed-

ded 


tag), then the browser will actually process its contents as HTML if

this is what the file contains. This behavior means that an attacker can upload

a file with the 

.jpg

extension containing an XSS payload. If the application



does not verify that the file actually contains a valid image, and allows other

users to download the file, then it is vulnerable. 




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   657   658   659   660   661   662   663   664   ...   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