Stored XSS in Social Warfare WordPress Plugin (<=4.4.3)
CVE-2023-4842 is a stored cross-site scripting (XSS) vulnerability in the Social Warfare plugin for WordPress, affecting versions up to and including 4.4.3. The vulnerability exists due to insufficient input sanitization and output escaping in the 'social_warfare' shortcode, allowing authenticated users with contributor-level or higher permissions to inject arbitrary JavaScript or HTML into pages. The injected scripts are executed in the context of users who visit the affected pages.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows authenticated attackers to execute arbitrary JavaScript in the context of other users' sessions, potentially leading to session hijacking, defacement, redirection, or further compromise of the WordPress site. The attack requires contributor-level or higher privileges, but can impact all users who view the compromised content.
If you can’t patch tonight, do this now.
Restrict contributor and higher-level access to trusted users only. Employ a web application firewall (WAF) with XSS filtering capabilities as an additional layer of defense. Regularly audit user-generated content for suspicious scripts until the plugin is updated.
Patch, then assume compromise.
Upgrade the Social Warfare plugin to a version later than 4.4.3 where the input sanitization and output escaping issues in the 'social_warfare' shortcode have been addressed.
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.