ER Swiffy Insert Stored Cross-Site Scripting Vulnerability
Vulnerability
A stored cross-site scripting vulnerability has been identified in the ER Swiffy Insert plugin for WordPress, affecting all versions up to and including 1.0.0. The issue arises from inadequate input sanitization and output escaping of user-supplied shortcode attributes ('n', 'w', 'h'). These attributes are extracted and directly inserted into the HTML output without proper escaping, such as using esc_attr(). This vulnerability allows authenticated attackers with Contributor-level access or higher to inject arbitrary web scripts into pages, which are executed when users access the injected pages.
Impact
Exploitation of this vulnerability allows for stored cross-site scripting, where injected scripts are executed in the context of the user viewing the page.
Reproduction
To reproduce this vulnerability, an authenticated user with Contributor-level access or higher can use the [swiffy] shortcode and include malicious scripts in the 'n', 'w', or 'h' attributes. The injected scripts will be executed when the page is viewed.
Remediation
No known patch is available. It is recommended to uninstall the affected plugin and find a replacement.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
