The latest Discuz fix is incomplete, so you can still store XSS for the Administrator

Source: Internet
Author: User
Tags bbcode

The latest Discuz fix is incomplete, so you can still store XSS for the Administrator

The new version fixes the insertion points provided in the http://wooyun.org/bugs/wooyun-2010-099979


However, due to the programmer's negligence, the repaired code still has available response code, which can cause XSS

Specific vulnerability analysis are mentioned in the http://wooyun.org/bugs/wooyun-2010-099979, the main reason is that/static/js/bbcode. when the bbcode2html () function in the js file performs regular replacement on the response code, the payload can be constructed to form XSS during editor rendering.

The bbcode. js file can be updated using two versions before and after diff:
 



Note that while the vendor filters out the payload mentioned in the http://wooyun.org/bugs/wooyun-2010-099979, the replacement of the signed code regular in the red part still causes XSS.

The new payload format is [email] 2 "onmouseover =" alert (2) [/email]

Use payload as the post content or comment. When the administrator or authorized person edits a post or comment containing payload, onmouseover is used to trigger JS execution.
 


 


 

 

Solution:

Filter

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.