Elegance of chrome xss filter

Source: Internet
Author: User

= A small pitfall was buried in the previous article. I did not expect sogili to discover it so soon.

The elegance of chrome xss filter I mentioned is that chrome uses Firefox's CSP policy.

For more information about CSP policies, see wiki.mozilla.org/Security/CSP/Specification.

CSP policy is one of the browser security policies recommended and developed by various WEB security experts in foreign countries. It was often praised by the black box.

The improvement space is that the CSP policy used by chrome xss filter is not in-depth. What if the same source resource file is an image?

 

For the sake of science popularization, let's look at the figure.

 

Therefore, we can see that XSS is not as simple as other people think. It should combine different web vulnerabilities and consider various special client security policies.

 

PS:

Some people still do not understand this. These are just one of the CSP policy rules.

 

The first figure shows Cross-Site Scripting of a.com loading http: // 127.0.0.1/1.js

SRC was corrected to about: blank.

 

 

The second figure shows Cross-Site Scripting for a.com loading http://www.a.com/1.jpg

Scripts with the same source and non-JS suffixes run

 


From: RAyh4c Black Box

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.