what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

WordPress Photo Gallery 1.3.34 / 1.3.42 Path Traversal

WordPress Photo Gallery 1.3.34 / 1.3.42 Path Traversal
Posted Jun 21, 2017
Authored by Tom Adams

WordPress Photo Gallery plugin versions 1.3.34 and 1.3.42 suffer from a path traversal vulnerability.

tags | exploit, file inclusion
SHA-256 | 2e48b2bcd6a9011319d2820c216c197e008cdd23983c64c58a88c29df02fc36b

WordPress Photo Gallery 1.3.34 / 1.3.42 Path Traversal

Change Mirror Download
Details
================
Software: Photo Gallery
Version: 1.3.34,1.3.42
Homepage: https://wordpress.org/plugins/photo-gallery/
Advisory report: https://security.dxw.com/advisories/path-traversal-in-photo-gallery-may-allow-admins-to-read-most-files-on-the-filesystem/
CVE: Awaiting assignment
CVSS: 4 (Medium; AV:N/AC:L/Au:S/C:P/I:N/A:N)

Description
================
Path traversal in Photo Gallery may allow admins to read most files on the filesystem

Vulnerability
================
The plugin contains a file manager component which allows broad access to the filesystem including deleting files, uploading files, and moving files. In this proof-of-concept weall be usingA pathA traversal to copy a configurationA file from /etc into a web-readable directory in order to allow the attacker to read secrets.

Proof of concept
================

Visit:A http://localhost/wp-admin/admin.php?page=galleries_bwg
Click Add new then Add Images
Right-click on the file manager overlay, click Inspect, and use the dev tools to get the URL of this iframe
RemoveA &extensions=jpg%2Cjpeg%2Cpng%2Cgif from the URL
Append &dir=/../../../../../../etc/ to the URL
Visit that URL
Select the passwd fileA by clicking on it once
Press the copy button in the toolbar
Press the up button repeatedly until you arrive back at wp-content/uploads/photo-gallery
Press the paste button
VisitA http://localhost/wp-content/uploads/photo-gallery/passwdA to read the list of users

The number of ../A you need to add to the URL will vary,A and the web serverA may be configured to only allowA reading files with certain extensions.

Mitigations
================
Upgrade to version 1.3.43 or later.

Disclosure policy
================
dxw believes in responsible disclosure. Your attention is drawn to our disclosure policy: https://security.dxw.com/disclosure/

Please contact us on security@dxw.com to acknowledge this report if you received it via a third party (for example, plugins@wordpress.org) as they generally cannot communicate with us on your behalf.

This vulnerability will be published if we do not receive a response to this report with 14 days.

Timeline
================

2017-03-29: Discovered
2017-05-26: Reported toA support@web-dorado.com
2017-05-29:A Received reply saying it would be fixedA in 1.3.43
2017-05-30: Version 1.3.43 was released
2017-06-16: Advisory published



Discovered by dxw:
================
Tom Adams
Please visit security.dxw.com for more information.




Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    0 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close