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


Preventing Reflected and Stored XSS



Download 5,76 Mb.
Pdf ko'rish
bet727/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   723   724   725   726   727   728   729   730   ...   875
Bog'liq
3794 1008 4334

Preventing Reflected and Stored XSS

The root cause of both reflected and stored XSS is that user-controllable data is

copied into application responses without adequate validation and sanitiza-

tion. Because the data is being inserted into the raw source code of an HTML

page, malicious data can interfere with that page, modifying not only its con-

tent but also its structure — breaking out of quoted strings, opening and clos-

ing tags, injecting scripts, and so on. 

To eliminate reflected and stored XSS vulnerabilities, the first step is to 

identify every instance within the application where user-controllable data is

being copied into responses. This includes data that is copied from the imme-

diate request and also any stored data that originated from any user at any

prior time, including via out-of-band channels. To ensure that every instance 

is identified, there is no real substitute for a close review of all application

source code.




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   723   724   725   726   727   728   729   730   ...   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