Cross-site scripting attack principles of reflected XSS attacks

Source: Internet
Author: User

Cross-site scripting attack principles of reflected XSS attacks

XSS

Experiment Principle
XSS is also called Cross Site Scripting (CSS. A malicious attacker inserts malicious code into a Web page. When a user browses this page, the html code embedded in the Web page is executed, this achieves the Special Purpose of malicious attacks to users. In the XSS attack mode, you must cheat the user to click a link to trigger XSS.

Procedure

1. Open the site
1. Enter "hello" in the form and click "Submit". The output result is normal without any other impact.

2. Enter XSS code in the site
2.1 enter the XSS code '<script> alert ('hello') </script>' in the form and click Submit]


2.2 As you can see, when XSS code is submitted, a dialog box is displayed in the browser, showing the content we entered.


2.3 This is a simple XSS reflective demonstration.

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.