Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Xss injection method and Verification method

Shulou Source: shulou.com Published: 2022-06-01 08:04:54 10月03日 Update

Note: this article describes the general xss injection method and verification method, and does not cover all xss cases.

Step 1: enter the following injected characters in any input box

> "'> alert (XSS)

> "'>

1234alert ("123456")

& {alert (123456)}

>% 22% 27 >

[rm] ">

[/ rm]

\ u003cimg src=1 onerror=alert (/ xss/)\ u003e

\ x20\ x27onclick\ x3dalert\ x281\ x29\ x3b\ x2f\ x2f\ x27

Step 2: after the submission is successful, view the page source code on the page where the parameters are read, and search for the injection just entered.

That is, if you submit it on [A page], you need to search for the source code on [B page] where you can view the content submitted on page A.

For example, enter > "'> alert (123456) in the input box of [A page]. After the submission is successful, search for" 123456 "on [B page].

Step 3: view the page source code

Case 1: see the source code of the page is

There is a xss problem

Parsing: the page does not put characters. "

Tags: Page character situation source code input vulnerability escape problem code step browser search browse method success validation valid element content parameter Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Huawei Docker Shulou Technology Redmi