Click To Chat – Wa Widget
The plugin is subject to Stored Cross-Site Scripting. Authenticated attackers with Contributor-level access or higher can inject arbitrary web scripts into pages. This occurs because the `CCW Shortcode::shortcode()` function insufficiently escapes the `num` parameter within the `[chat]` shortcode. While `esc attr()` is applied, the resulting HTML entities are decoded by browsers when placed inside HTML event-handler attributes, such as the `onclick` attribute in style template files (e.g., 'sc-style-1.php'). This allows a payload to break out of the JavaScript `window.open()` string literal and execute arbitrary code when a user clicks the WhatsApp chat button.