Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-11815 Overview
CVE-2024-11815 is a reflected Cross-Site Scripting (XSS) vulnerability in the Pósturinn's Shipping with WooCommerce plugin for WordPress. The flaw affects all versions up to and including 1.3.1. It stems from insufficient input sanitization and output escaping on the printed_marked and nonprinted_marked parameters. Unauthenticated attackers can inject arbitrary web scripts that execute in a victim's browser when the victim clicks a crafted link. The issue is tracked as CWE-79.
Critical Impact
Successful exploitation allows unauthenticated attackers to execute arbitrary JavaScript in an authenticated administrator's browser, enabling session hijacking, credential theft, or unauthorized administrative actions on the target WordPress site.
Affected Products
- Pósturinn's Shipping with WooCommerce plugin for WordPress
- All versions up to and including 1.3.1
- WordPress sites running WooCommerce with the vulnerable plugin installed
Discovery Timeline
- 2025-01-09 - CVE-2024-11815 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-11815
Vulnerability Analysis
The vulnerability resides in the plugin's admin handling logic, specifically in inc/admin.class.php. The plugin accepts values from the printed_marked and nonprinted_marked request parameters and reflects them into rendered HTML without adequate sanitization or output escaping. Because the input is reflected back to the browser without contextual encoding, attacker-supplied script payloads execute in the DOM of any user who follows a crafted URL.
Exploitation requires user interaction, typically an administrator clicking a crafted link while authenticated to WordPress. The attack scope crosses a security boundary, since injected script executes within the trusted WordPress admin origin. See the Wordfence Vulnerability Analysis for additional context.
Root Cause
The root cause is missing input sanitization and missing output escaping when the plugin renders values submitted via the printed_marked and nonprinted_marked parameters. WordPress provides helper functions such as sanitize_text_field() and esc_attr() or esc_html() for exactly this purpose, but neither pattern was applied to these parameters in vulnerable releases.
Attack Vector
The attack is delivered over the network and requires no privileges. An attacker crafts a URL containing a malicious payload in the printed_marked or nonprinted_marked parameter and delivers it through phishing, forum posts, or malicious advertising. When a logged-in WordPress user, particularly an administrator, opens the link, the payload executes in their browser session and can perform actions on their behalf.
No verified exploitation code is publicly available. Refer to the WordPress plugin changeset for the sanitization changes applied by the vendor.
Detection Methods for CVE-2024-11815
Indicators of Compromise
- Web server access logs containing requests to plugin admin endpoints with printed_marked or nonprinted_marked parameters that include HTML entities, <script> tags, or JavaScript event handlers such as onerror= or onload=
- Referrer headers pointing to untrusted external domains preceding administrative actions in WordPress
- Unexpected administrative user creation, plugin installation, or option changes shortly after an admin session accessed a suspicious URL
Detection Strategies
- Deploy a web application firewall (WAF) rule that inspects the printed_marked and nonprinted_marked query parameters for script tags, URL-encoded angle brackets, and JavaScript protocol handlers
- Alert on WordPress admin sessions where the HTTP referer originates from an external, non-corporate domain and the request path targets the Pósturinn plugin
- Correlate browser or endpoint telemetry with WordPress audit logs to identify script execution following clicks on plugin-related URLs
Monitoring Recommendations
- Enable and centralize WordPress audit logging to capture administrative changes and correlate them with source IP and user agent
- Monitor outbound requests from administrator browsers to unexpected domains that could indicate exfiltration triggered by injected script
- Track installed WordPress plugin versions across all managed sites and flag any instance of the Pósturinn plugin at version 1.3.1 or earlier
How to Mitigate CVE-2024-11815
Immediate Actions Required
- Update the Pósturinn's Shipping with WooCommerce plugin to a version later than 1.3.1 that includes the vendor's sanitization fix
- Audit WordPress administrator accounts for unauthorized users, changed email addresses, or elevated capabilities added since installing the vulnerable plugin
- Rotate WordPress administrator passwords and invalidate active sessions if the plugin was exposed to untrusted traffic
Patch Information
The vendor addressed the vulnerability in the plugin source tree. The remediation is visible in the WordPress plugin changeset 3218788, which applies input sanitization and output escaping to the affected parameters. Administrators should install the latest release from the Posturinn plugin page.
Workarounds
- Deactivate and remove the Pósturinn plugin until the site can be updated to a patched version
- Add WAF signatures that block requests containing <script, javascript:, or common XSS event handlers in the printed_marked and nonprinted_marked parameters
- Enforce a strict Content Security Policy (CSP) on the WordPress admin origin to limit inline script execution and reduce the impact of reflected XSS
# Example ModSecurity rule to block XSS payloads in the affected parameters
SecRule ARGS:printed_marked|ARGS:nonprinted_marked "@rx (?i)(<script|javascript:|onerror=|onload=)" \
"id:1009111815,phase:2,deny,status:403,log,msg:'CVE-2024-11815 XSS attempt blocked'"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

