DefenseCode ThunderScan SAST Advisory WordPress All In One Schema.org Rich Snippets Plugin Security Vulnerability Advisory ID: DC-2017-01-002 Advisory Title: WordPress All In One Schema.org Rich Snippets Plugin Security Vulnerability Advisory URL: http://www.defensecode.com/advisories.php Software: WordPress All In One Schema.org Rich Snippets Plugin Language: PHP Version: 1.4.1 and below Vendor Status: Vendor contacted, update released Release Date: 2017/05/24 Risk: Medium 1. General Overview =================== During the security audit of All In One Schema.org Rich Snippets plugin for WordPress CMS, security vulnerability was discovered using DefenseCode ThunderScan application source code security analysis platform. More information about ThunderScan is available at URL: http://www.defensecode.com 2. Software Overview ==================== According to the developers, All In One Schema.org Rich Snippets is a WordPress plugin that is made to boost CTR, improve SEO and rankings, and support most of the content type. The authors claim it works perfectly with Google, Bing, Yahoo & Facebook. According to wordpress.org, it has more than 50,000 active installs. Homepage: https://wordpress.org/plugins/all-in-one-schemaorg-rich-snippets/ https://www.brainstormforce.com/ 3. Vulnerability Description ================================== During the security analysis, ThunderScan discovered Cross-Site Scripting vulnerability in All In One Schema.org Rich Snippets WordPress plugin. The Cross-Site Scripting vulnerability can enable the attacker to construct the URL that contains malicious JavaScript code. If the administrator of the site makes a request to such an URL, the attacker's code will be executed, with unrestricted access to the WordPress site in question. The attacker can entice the administrator to visit the URL in various ways, including sending the URL by email, posting it as a part of the comment on the vulnerable site or another forum. 3.1 Cross-Site Scripting Vulnerable Function: echo() Vulnerable Variable: $_GET['bsf_send_label'] Vulnerable URL: http://vulnerablesite.com/wp-admin/admin.php?page=rich_snippet_dashboard&bsf_force_send=true&bsf_send_label=<%2Fscript>