Description
The Thai Lottery Widget plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `thailottery` shortcode in all versions up to, and including, 2.5. This is due to insufficient input sanitization and output escaping on the user supplied `width` and `height` shortcode attributes. 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.
Problem types
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
* (semver)
Timeline
| 2025-12-04: | Disclosed |
Credits
Peerapat Samatathanyakorn
References
www.wordfence.com/...-0c8f-43f1-8580-998ea78c9549?source=cve
plugins.trac.wordpress.org/...y-widget/trunk/thailottery.php
plugins.trac.wordpress.org/...idget/tags/2.5/thailottery.php