[Translation] Cross-Site Scripting Attack and Defense

Source: Internet
Author: User







Author:Xylitol

Translator:Riusksk (Quan Ge:Http://riusksk.blogbus.com)


Abstract:

1.What is cross-site (XSS)?

2.Cross-site code

3. CookieHijacking

4. XSSDefense

  1. Destruction mode
  2. Bypass character filtering
  3. FlashAttack
  4. Upload filesXSS
  5. Cross-Site phishing
  6. What is cross-site (XSS)?

XSSAlso calledCSS (Cross Site Script)Cross-site scripting attacksCross Site ScriptIsCSS,CSSIn the field of web design, style sheets have been widely stacked.CrossChanged to the same pronunciation.XBut earlier files still useCSSTo indicate cross-site scripting ). It refers to malicious attackersWebMalicious insertion in the pageHtmlCode, which is embedded when the user browses this pageWebInsideHtmlThe code is executed to achieve the Special Purpose of malicious users. Attackers can exploit this vulnerability to gain higher permissions.ActiveXControl,Cheat victims to browse malicious sites to install malicious software on their computers (Such as spyware, remote control software, worms, etc.), can also steal confidential web content, sessionCookieAnd many other information.

  1. ExistXSSCode

Open notepad, copy and paste the following script code:

<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = iso-8859-1"/>

<Style type = "text/css">
<! --
Body, td, th {
Color: # FFFFFF;
}
Body {
Background-color: #000000;
}
-->
</Style> <title> Simple XSS vulnerability by Xylitol </title>
<Body>
<Form action = "XSS. php" method = "post">
<P align = "center"> <strong> Simple XSS vulnerability by Xylitol </strong> </p>
<Div align = "center">
<Table width = "270" border = "0">
<Tr>
<Td width = "106"> <strong> Search: </strong> </td>
<Td width = "154"> <input name = "Vulnerability" type = "text" id = "Vulnerability"/> </td>
</Tr>
</Table>
<Table width = "268" border = "0">
<Tr>
& Lt; td width = "262" & gt; <div align = "center" & gt;
<Input name = "submit" type = "submit" value = "Search it! "/>
</Div> </td>
</Tr>
</Table>
</Div>
</Form>
</Body>
</Html>

SaveIndex.html,1No image in the original article ):

& Nb

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.