XSS vulnerability of NextGEN Gallery plug-in

Source: Internet
Author: User
Tags wordpress blog

The NextGEN Gallery plug-in of the WordPress blog program has the XSS vulnerability...

1. Advisory Information

Title: XSS Vulnerability in NextGEN Gallery Wordpress Plugin

Advisory Id: CORE-2010-0323

Advisory URL: http://www.coresecurity.com/content/nextgen-gallery-xss-vulnerability

Date published: 2010-04-06

Date of last update: 2010-03-25

Vendors contacted: Alex Rabe

Release mode: Coordinated release


2. Vulnerability Information

Class: Cross site scripting [CWE-79]

Impact: Code execution

Remotely Exploitable: Yes

Locally Exploitable: No

Bugtraq ID: N/

CVE Name: CVE-2010-1186


3. Vulnerability Description

An XSS [1] vulneravility has been discovered in NextGEN Gallery [2], a very popular and commonly used plugin for the Wordpress content management system commonly found as a blogging platform. this vulnerability results from reflected unsanitized imput that can be crafted into an attack by a malicous user by manipulating the mode parameter of the xml/media-rss.php script.

4. Vulnerable packages


* NextGEN Gallery 1.5.0

* NextGEN Gallery 1.5.1

* Older versions are probably affected too, but they were not checked.

5. Non-vulnerable packages


* NextGEN Gallery 1.5.2

 

6. Solutions and Workarounds

On the server side, you can upgrade to a non-vulnerable version. onthe client you can use a browser that obeys the Content-Type header specified by the server, such as Mozilla Firefox, Google Chrome, Apple Safari or Opera. internet Explorer 8 with the XSS Filter wont execute the malicious scripts.

7. Credits

These vulnerabilities were discovered and researched by Alejandro Rodriguez, from Core Security Technologies, during Core Bugweek 2009 as a member of the "Los Herederos de Don Pablo (HDP)" team.

8. Technical Description/Proof of Concept Code

This vulerablity is triggered because the mode parameter on the media-rss.php script is not correctly escaped to avoid HTML code injection.

$ Mode = $ _ GET ["mode"];

This parameter is reflected back to the user if no correct mode is selected:

} Else {header (content-type: text/plain; charset = UTF-8); echo sprintf (_ ("Invalid MediaRSS command (% s ). "," nggallery "), $ mode); exit ;}

Its worth to note that the Content-Type is chosen safely by the plugin, but this is note enough to avoid code injection because some browsers (most notably Microsoft Internet Explorer) choose the content type by parsing the content the web-server returns instead of obeying the proper headers.

This vulnerability can be triggered on any Wordpress instalation with the NextGEN Gallery extension installed by visiting the following URL on a browser with this issue. If using IE 8 the XSS Filter must be turned off.

Http: // localhost/wordpress/wp-content/plugins/nextgen-gallery/xml/media-rss.php? Mode = % 3 Cscript % 3 Ealert (1) % 3C/script % 3E

9. Report Timeline

* 2010-03-25: Core Security Technologies notifies Alex Rabe of the vulnerability, offering a draft for this advisory in plaintext or encrypted form (if proper keys are sent ). limit l 5th, 2010, is proposed as a release date.

* 2010-03-25: Alex Rabe acknowledges Core Security authentication IESS e-mail, and asks for the advisory draft in plain text.

* 2010-03-25: Core Security Technologies sends the advisory draft to Alex Rabe.

* 2010-03-25: Alex Rabe acknowledges the vulneravility, confirms it for NextGEN Gallery 1.5.0 and 1.5.1, and informs than 1.5.2 (due to be released on March 26th) will contain in a fix.

* 2010-03-26: NextGEN Gallery 1.5.2 is released.

* 2010-04-06: Advisory CORE-2010-0323 is published.

10. References

[1] asp.org/index.php/Cross-site_Scripting_ (XSS "> http://www.owasp.org/index.php/Cross-site_Scripting_ (XSS)

[2] http://wordpress.org/extend/plugins/nextgen-gallery/

11. About CoreLabs

CoreLabs, the research center of Core Security Technologies, is charged with anticipating the future needs and requirements for information security technologies. we conduct our research in several important areas of computer security including system vulnerabilities, cyber attack planning and simulation, source code auditing, and cryptography. our results include problem formalization, identification of vulnerabilities, novel solutions and prototypes for new technologies. coreLabs regularly publishes security advisories, technical papers, project information and shared software tools for public use at: http://www.coresecurity.com/corelabs.

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.