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


N OT E For the purpose of attacking web applications, you should URL-encode



Download 5,76 Mb.
Pdf ko'rish
bet108/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   104   105   106   107   108   109   110   111   ...   875
Bog'liq
3794 1008 4334

N OT E

For the purpose of attacking web applications, you should URL-encode

any of the following characters when you are inserting them 

as data

into an

HTTP request:

space % ? & = ; + #



(Of course, you will often need to use these characters with their special

meaning when modifying a request — for example, to add an additional request

parameter to the query string. In this case, they should be used in their literal

form.)

56

Chapter 3 



Web Application Technologies

70779c03.qxd:WileyRed  9/14/07  3:12 PM  Page 56



Unicode Encoding

Unicode is a character encoding standard that is designed to support all of the

writing systems used in the world. It employs various encoding schemes, some

of which can be used to represent unusual characters in web applications.

16-bit Unicode encoding works in a similar way to URL-encoding. For

transmission over HTTP, the 16-bit Unicode-encoded form of a character is the

%u

prefix followed by the character’s Unicode code point expressed in hexa-



decimal. For example:

%u2215  /

%u00e9  é

UTF-8 is a variable-length encoding standard that employs one or more

bytes to express each character. For transmission over HTTP, the UTF-8

encoded form of a multi-byte character simply uses each byte expressed in

hexadecimal and preceded by the 

%

prefix. For example:



%c2%a9     ©

%e2%89%a0  

For the purpose of attacking web applications, Unicode encoding is primar-



ily of interest because it can sometimes be used to defeat input validation

mechanisms. If an input filter blocks certain malicious expressions, but the

component that subsequently processes the input understands Unicode

encoding, then it may be possible to bypass the filter using various standard

and malformed Unicode encodings.

HTML Encoding

HTML encoding is a scheme used to represent problematic characters so that

they can be safely incorporated into an HTML document. Various characters

have special meaning as meta-characters within HTML and are used to define

the structure of a document rather than its content. To use these characters

safely as part of the document’s content, it is necessary to HTML-encode them.

HTML encoding defines numerous HTML entities to represent specific lit-

eral characters, for example:

"  “

'  ‘

&   &

<    <

>    >


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   104   105   106   107   108   109   110   111   ...   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