lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date: Fri, 16 Jun 2017 19:42:41 +0000
From: dxw Security <>
Subject: [FD] Path traversal in Photo Gallery may allow admins to read most
	files on the filesystem (WordPress plugin)

Software: Photo Gallery
Version: 1.3.34,1.3.42
Advisory report:
CVE: Awaiting assignment
CVSS: 4 (Medium; AV:N/AC:L/Au:S/C:P/I:N/A:N)

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

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 we’ll be using path traversal to copy a configuration file from /etc into a web-readable directory in order to allow the attacker to read secrets.

Proof of concept

Visit: 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
Remove &extensions=jpg%2Cjpeg%2Cpng%2Cgif from the URL
Append &dir=/../../../../../../etc/ to the URL
Visit that URL
Select the passwd file 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
Visit http://localhost/wp-content/uploads/photo-gallery/passwd to read the list of users

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

Upgrade to version 1.3.43 or later.

Disclosure policy
dxw believes in responsible disclosure. Your attention is drawn to our disclosure policy:

Please contact us on to acknowledge this report if you received it via a third party (for example, 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.


2017-03-29: Discovered
2017-05-26: Reported to
2017-05-29: Received reply saying it would be fixed 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 for more information.

Sent through the Full Disclosure mailing list
Web Archives & RSS:

Powered by blists - more mailing lists