Description
WordPress Plugin WP Ajax Recent Posts is prone to a cross-site scripting vulnerability because it fails to properly sanitize user-supplied input. An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks. WordPress Plugin WP Ajax Recent Posts version 1.0.1 is vulnerable; other versions may also be affected.
Remediation
Edit the source code to ensure that input is properly sanitised or disable the plugin until a fix is available
References
https://www.htbridge.com/advisory/HTB22951
http://packetstormsecurity.com/files/100848/WP-Ajax-Recent-Posts-1.0.1-Cross-Site-Scripting.html
Related Vulnerabilities
Contao Deserialization of Untrusted Data Vulnerability (CVE-2014-1860)
Oracle JRE CVE-2013-2457 Vulnerability (CVE-2013-2457)
TYPO3 Exposure of Sensitive Information to an Unauthorized Actor Vulnerability (CVE-2009-0815)
OpenSSL Other Vulnerability (CVE-2003-0544)
TYPO3 Improper Control of Generation of Code ('Code Injection') Vulnerability (CVE-2022-23503)