Mang Board <= 2.4.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'align' Shortcode Attribute
Impact
The Mang Board plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'align' parameter in all versions up to, and including, 2.4.5 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. Because the payload contains no angle brackets, wp_kses_post leaves the shortcode intact on save, allowing the malicious attribute value to survive post submission and fire in any viewer's…
Source excerpt · WordfenceAffected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
kitae-park · Mang Board
Other versions: unaffected
| Version / range | Source status |
|---|---|
| 0 through 2.4.5 (inclusive) | affected |
Original source description
The Mang Board plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'align' parameter in all versions up to, and including, 2.4.5 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. Because the payload contains no angle brackets, wp_kses_post leaves the shortcode intact on save, allowing the malicious attribute value to survive post submission and fire in any viewer's browser — including an administrator previewing a pending post.
References
- Security advisory www.wordfence.com/threat-intel/vulnerabilities/id/92c90d09-3673-4298-9c54-c3fe1edf6c09
- Source reference plugins.trac.wordpress.org/browser/mangboard/tags/2.4.5/includes/mb-actions.php
- Source reference plugins.trac.wordpress.org/browser/mangboard/tags/2.4.5/includes/functions/func.template.php
- Source reference plugins.trac.wordpress.org/browser/mangboard/tags/2.4.5/includes/mb-actions.php
- Source reference wordpress.org/plugins/mangboard/
- Source reference plugins.trac.wordpress.org/browser/mangboard/tags/2.4.6/includes/mb-actions.php