01.09.2015 Views

4.0

1NSchAb

1NSchAb

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

222<br />

encoding can be used.<br />

If the web server doesn’t specify which character encoding is in<br />

use, it can’t tell which characters are special. Web pages with unspecified<br />

character encoding work most of the time because most<br />

character sets assign the same characters to byte values below<br />

128. But which of the values above 128 are special? Some 16-bit<br />

character-encoding schemes have additional multi-byte representations<br />

for special characters such as “’ works as a closing bracket<br />

for a HTML tag. In order to actually display this character on the<br />

web page HTML character entities should be inserted in the page<br />

source. The injections mentioned above are one way of encoding.<br />

There are numerous other ways in which a string can be encoded<br />

(obfuscated) in order to bypass the above filter.<br />

For the above script to work, the browser has to interpret the web<br />

page as encoded in UTF-7.<br />

Multi-byte Encoding<br />

Variable-width encoding is another type of character encoding<br />

scheme that uses codes of varying lengths to encode characters.<br />

Multi-Byte Encoding is a type of variable-width encoding that<br />

uses varying number of bytes to represent a character. Multi-byte<br />

encoding is primarily used to encode characters that belong to a<br />

large character set e.g. Chinese, Japanese and Korean.<br />

Multibyte encoding has been used in the past to bypass standard<br />

input validation functions and carry out cross site scripting and<br />

SQL injection attacks.<br />

References<br />

• http: /en.wikipedia.org/wiki/Encode_(semiotics)<br />

• http: /ha.ckers.org/xss.html<br />

• http: /www.cert.org/tech_tips/malicious_code_mitigation.html<br />

• http: /www.w3schools.com/HTML/html_entities.asp<br />

• http: /www.iss.net/security_center/advice/Intrusions/2000639/default.htm<br />

• http: /searchsecurity.techtarget.com/expert/Knowledgebase-<br />

Answer/0,289625,sid14_gci1212217_tax299989,00.html<br />

• http: /www.joelonsoftware.com/articles/Unicode.html

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!