CVE-2025-13678
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-12-05

Last updated on: 2025-12-08

Assigner: Wordfence

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-05
Last Modified
2025-12-08
Generated
2026-05-07
AI Q&A
2025-12-05
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
wordpress thai_lottery_widget 2.5
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a Stored Cross-Site Scripting (XSS) issue in the Thai Lottery Widget plugin for WordPress. It occurs because the plugin does not properly sanitize or escape user input in the 'width' and 'height' attributes of the 'thailottery' shortcode. Authenticated users with Contributor-level access or higher can inject malicious scripts that will be stored and executed whenever any user views the affected page.


How can this vulnerability impact me? :

The vulnerability allows attackers with Contributor-level access to inject malicious scripts into pages, which will execute in the browsers of users who visit those pages. This can lead to theft of user credentials, session hijacking, defacement, or other malicious actions performed on behalf of the victim user without their consent.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

The provided resources and context do not contain information regarding the impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by inspecting WordPress posts or pages for the presence of the `[thailottery]` shortcode (and its variants) with unusual or suspicious `width` and `height` attribute values that may contain injected scripts. Additionally, monitoring HTTP requests and responses for injected scripts in pages containing the shortcode can help detect exploitation. Since the vulnerability involves stored cross-site scripting via shortcode attributes, searching the WordPress database for posts containing the shortcode with suspicious attribute values is recommended. Specific commands could include using WP-CLI to search posts, for example: `wp post list --post_type=page,post --field=ID | xargs -I % wp post get % --field=post_content | grep -i '\[thailottery.*width=.*height=.*\]'` to find shortcode usage. Network monitoring tools can also be used to detect unusual script execution in pages serving the shortcode. [1, 3]


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include: 1) Updating the Thai Lottery Widget plugin to a version that fixes the vulnerability (any version after 2.5 if available). 2) If no update is available, temporarily disabling or removing the plugin to prevent exploitation. 3) Restricting Contributor-level and above users from adding or editing posts with the vulnerable shortcode until patched. 4) Reviewing and sanitizing existing posts/pages containing the shortcode to remove any injected scripts or suspicious attribute values. 5) Implementing Web Application Firewall (WAF) rules to block malicious payloads targeting the shortcode attributes. 6) Monitoring site logs for suspicious activity related to shortcode usage. [1, 3]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart