WordPress image plug-in Fancybox-For-WordPress vulnerability causes batch Trojans

Source: Internet
Author: User

WordPress image plug-in Fancybox-For-WordPress vulnerability causes batch Trojans

Fancybox For WordPress is a great WordPress image plug-in that can bring up a beautiful browsing interface For your WordPress image to show a wide variety of pop-up layer effects.

Last week, security researchers found that some Wordpress blogs suffered batch Trojans. All these blogs have installed the Fancybox plug-in. After analysis, the researchers found the vulnerability in this plug-in.

Vulnerability Analysis

This vulnerability exists in Plug-ins earlier than 3.0.2, and exploits a common attack path against the wp plug-in: unprotected admin_init hook.

Since the admin_init Hook can be called by anyone who accesses the/wp-admin/admin-post.php or/wp-admin/admin-ajax.php page, attackers can change the "mfbfw" option in the plug-in to anything.

What is this option?

We found that this option is used in many places. Note that the mfbfw_init () function displays the jQuery script and uses the parameters we set in the mfbfw_admin_options () function.

You can see that $ settings is output without processing.

Therefore, attackers can use unprotected admin_init hooks to inject malicious javascript attacks, such as malicious iframe, into all webpages of the attacked website.

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.