#Vulnerability: Stored XSS Vulnerability in Yoast SEO Plugin #Impact: High #Authors: Hammad Shamsi #Company: RHAinfoSEC #Website: http://rafayhackingarticles.net & http://blog.sh3ifu.com/ *Introduction* Yoast SEO (formerly known as WordPress SEO by Yoast) is the most complete WordPress SEO plugin that exists today for WordPress.org users. It incorporates everything from a snippet editor and real time page analysis functionality that helps you optimize your pages content, images titles, meta descriptions and more to XML sitemaps, and loads of optimization options in between. *Proof Of Concept* A stored XSS scripting vulnerability was discovered in Yoast SEO plugin for wordpress. The plugin had built-in blacklist filters which were blacklisting Parathesis as well as several functions such as alert. The following POC bypassed: *Impact* The impact of this vulnerability is moderate as in order to trigger this vulnerability, the attacker must have guest author priviledges. This is dangerous especially in case of news related blogs where anyone is allowed to create a guest account and post articles for review. *Remediation* All user supplied input must be sanitized before it is reflected inside the application response. Blacklist must be avoided, instead focus should be made on secure coding. This issue is fixed on 3.4.1 Version on Yoast SEO Plugin https://wordpress.org/plugins/wordpress-seo/changelog/