Skip to main content
Vulnerability Database/CVE-2016-20100

CVE-2016-20100: WordPress Memphis Documents Path Traversal

CVE-2016-20100 is a path traversal vulnerability in Memphis Documents Library plugin for WordPress that lets unauthenticated attackers read sensitive files like wp-config.php. This article covers technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2016-20100 Overview

CVE-2016-20100 is a path traversal vulnerability [CWE-22] in the Memphis Documents Library plugin for WordPress before version 3.1.6. The flaw resides in the mdocs_img_preview() function within mdocs-downloads.php. Unauthenticated attackers can send crafted GET requests containing directory traversal sequences through the mdocs-img-preview parameter to read arbitrary files from the WordPress host. A common exploitation target is wp-config.php, which contains database credentials and authentication secrets. The Shadowserver Foundation first observed exploitation evidence on 2023-10-22, and a public exploit was published to Exploit-DB as entry #39593.

Critical Impact

Unauthenticated remote attackers can read sensitive WordPress configuration files, including database credentials stored in wp-config.php, enabling full site compromise.

Affected Products

  • Memphis Documents Library plugin for WordPress, all versions before 3.1.6
  • WordPress installations with the plugin enabled and reachable over HTTP(S)
  • Hosts where wp-config.php is readable by the web server user

Discovery Timeline

  • 2023-10-22 - Exploitation evidence first observed by the Shadowserver Foundation
  • 2026-10-20 - CVE-2016-20100 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2016-20100

Vulnerability Analysis

The vulnerability is a classic unauthenticated path traversal in a WordPress plugin endpoint. The mdocs_img_preview() handler in mdocs-downloads.php consumes the mdocs-img-preview query parameter and uses it as part of a file path for a preview download. Because the parameter is not sanitized against traversal sequences such as ../, attackers can escape the intended documents directory and address arbitrary files on the filesystem. The handler then streams the file contents back in the HTTP response, turning the preview mechanism into an arbitrary file read primitive. The most impactful target is wp-config.php, which exposes database host, user, password, authentication keys, and salts. With those secrets, an attacker can authenticate directly to the backend database or forge WordPress session cookies.

Root Cause

The root cause is missing input validation and canonicalization of a user-controlled file path parameter. The plugin trusts the mdocs-img-preview value and concatenates it into a filesystem path without rejecting traversal sequences or enforcing a base directory via functions such as realpath().

Attack Vector

Exploitation is remote, network-based, and requires no authentication or user interaction. An attacker issues a single HTTP GET request to the vulnerable plugin endpoint with a traversal payload in the mdocs-img-preview parameter targeting a file such as wp-config.php. The server returns the file contents in the HTTP response. Public tooling, including the Nuclei template wp-memphis-documents-library-lfi.yaml and Exploit-DB entry #39593, automates discovery and exploitation at scale.

// No verified exploit code is reproduced here.
// See the WPScan report and VulnCheck advisory linked in References
// for parameter structure and request format.

Detection Methods for CVE-2016-20100

Indicators of Compromise

  • HTTP GET requests containing the mdocs-img-preview parameter with ../ or URL-encoded %2e%2e%2f traversal sequences
  • Access log entries referencing mdocs-downloads.php from unauthenticated clients
  • Response bodies containing strings such as DB_PASSWORD, AUTH_KEY, or table_prefix returned from preview URLs
  • Subsequent authenticated logins or XML-RPC activity from IPs that previously requested mdocs-img-preview with traversal payloads

Detection Strategies

  • Alert on any request to a URL containing mdocs-img-preview= where the value includes .., %2e%2e, or absolute path markers
  • Correlate wp-config.php string matches in HTTP response bodies with the originating client IP
  • Hunt web server access logs for repeated requests to the Memphis Documents Library endpoint from a single source within a short window

Monitoring Recommendations

  • Forward WordPress and web server access logs to a centralized analytics platform and apply traversal-pattern rules
  • Monitor for new administrative users or theme and plugin file modifications after suspected exploitation
  • Watch outbound database connections for logins originating from unexpected IP addresses using WordPress credentials

How to Mitigate CVE-2016-20100

Immediate Actions Required

  • Upgrade the Memphis Documents Library plugin to version 3.1.6 or later immediately
  • If an upgrade cannot be performed, deactivate and delete the plugin until it is patched
  • Rotate all secrets stored in wp-config.php, including database password and the AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, and NONCE_KEY values
  • Audit WordPress users, scheduled tasks, and plugin and theme files for unauthorized changes

Patch Information

The vendor fixed the issue in Memphis Documents Library version 3.1.6. Refer to the WordPress plugin page, the WPScan vulnerability report, and the VulnCheck advisory for upgrade guidance and version history.

Workarounds

  • Block requests containing the mdocs-img-preview parameter with traversal sequences at a web application firewall
  • Restrict filesystem permissions so the web server user cannot read wp-config.php directly, for example by moving it one directory above the webroot
  • Deny direct HTTP access to mdocs-downloads.php via web server configuration until the plugin is upgraded
bash
# Example ModSecurity rule to block traversal in the vulnerable parameter
SecRule ARGS:mdocs-img-preview "@rx (\.\./|%2e%2e%2f|%2e%2e/)" \
    "id:1002016,phase:2,deny,status:403,log,\
     msg:'CVE-2016-20100 Memphis Documents Library path traversal attempt'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.