CVE-2019-17175

7.5 HIGH

📋 TL;DR

This vulnerability allows attackers to perform absolute path traversal via the manager/admin_pic.php endpoint in joyplus-cms 1.6.0. By manipulating the 'rootpath' parameter, attackers can access arbitrary files on the server. This affects all installations of joyplus-cms 1.6.0 that have the vulnerable endpoint accessible.

💻 Affected Systems

Products:
  • joyplus-cms
Versions: 1.6.0
Operating Systems: All operating systems running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default installation. Any system with the manager/admin_pic.php endpoint accessible is vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete server compromise through reading sensitive files like /etc/passwd, /etc/shadow, or application configuration files containing database credentials, potentially leading to full system takeover.

🟠

Likely Case

Information disclosure of sensitive files, potentially exposing credentials, configuration data, or source code that could enable further attacks.

🟢

If Mitigated

Limited impact if proper file permissions restrict access to sensitive files and the vulnerable endpoint is not internet-facing.

🌐 Internet-Facing: HIGH - The vulnerability is exploitable remotely via HTTP requests to a specific endpoint with no authentication required.
🏢 Internal Only: MEDIUM - Internal attackers could still exploit this to access sensitive files, though network segmentation reduces exposure.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires only a web browser or curl command to send crafted HTTP requests. The vulnerability is well-documented in public repositories.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Not available

Vendor Advisory: Not available

Restart Required: No

Instructions:

No official patch exists. Consider upgrading to a different CMS or implementing workarounds.

🔧 Temporary Workarounds

Restrict access to vulnerable endpoint

all

Block or restrict access to the manager/admin_pic.php file using web server configuration or firewall rules.

# Apache: Add to .htaccess
<Files "admin_pic.php">
    Order Deny,Allow
    Deny from all
</Files>
# Nginx: Add to server block
location ~ /manager/admin_pic\.php$ {
    deny all;
    return 403;
}

Input validation in PHP

all

Add input validation to sanitize the rootpath parameter before processing.

# In admin_pic.php, add validation:
$rootpath = $_GET['rootpath'];
if (strpos($rootpath, '..') !== false || strpos($rootpath, '/') === 0) {
    die('Invalid path');
}

🧯 If You Can't Patch

  • Implement strict file permissions to limit what files the web server user can read.
  • Deploy a web application firewall (WAF) with path traversal protection rules.

🔍 How to Verify

Check if Vulnerable:

Access http://[target]/manager/admin_pic.php?rootpath=/etc/passwd and check if server returns the contents of /etc/passwd.

Check Version:

Check the CMS version in configuration files or admin panel. Look for version 1.6.0 in source code or documentation.

Verify Fix Applied:

Attempt the same request after implementing fixes - should receive error or no file contents.

📡 Detection & Monitoring

Log Indicators:

  • HTTP requests to /manager/admin_pic.php with rootpath parameter containing absolute paths or directory traversal sequences
  • Unusual file access patterns from web server process

Network Indicators:

  • HTTP GET requests with rootpath parameter containing /etc/, /proc/, or other system paths
  • Abnormal response sizes from the vulnerable endpoint

SIEM Query:

source="web_logs" AND uri_path="/manager/admin_pic.php" AND query_string="*rootpath=*"

🔗 References

📤 Share & Export