Severity: MEDIUM
Description: The B Testimonial – testimonial plugin for WP plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'b_testimonial' shortcode in all versions up to, and including, 1.2.2 due to insufficient input sanitization and output escaping on user supplied 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 Score: 6.4
B
No data available.
No data available.
1. Risk Assessment
The B Testimonial plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability. This means an authenticated attacker, possessing contributor-level access or higher, can inject malicious JavaScript code into the testimonial content. This code will then execute in the browsers of users who view the affected page. The vulnerability stems from insufficient sanitization of user-supplied attributes within the 'b_testimonial' shortcode. The CVSS score of 6.4 (Medium) indicates a moderate risk. The likelihood of exploitation is moderate as it requires an authenticated user with at least contributor permissions. Exploitation is relatively easy given the shortcode interface. The vulnerability primarily impacts confidentiality and integrity, as attackers can steal cookies, redirect users, or modify the displayed content. Availability is less impacted, though a poorly crafted script could potentially cause resource exhaustion. The EPSS score of 0.002330000 suggests a relatively low but present real-world exploitation probability.
2. Potential Attack Scenarios
An attacker with contributor-level access to a WordPress site using the B Testimonial plugin could create a new testimonial or edit an existing one. Within the testimonial content, they could inject a malicious JavaScript payload using the 'b_testimonial' shortcode. For example, the attacker could insert a script to steal the user's WordPress session cookie and send it to an attacker-controlled server. When a user views the page containing the testimonial, the script executes, the cookie is stolen, and the attacker can potentially hijack the user’s WordPress session, gaining access commensurate with the stolen user's permissions. The attacker could also inject a script to redirect users to a phishing page disguised as the legitimate WordPress site, stealing their credentials. Another scenario involves defacing the testimonial or the page it’s on with attacker-controlled content.
3. Mitigation Recommendations
The primary mitigation is to upgrade the B Testimonial plugin to version 1.2.3 or higher, which includes the fix for this vulnerability. This can be done through the WordPress admin interface under Plugins. As an immediate action, limit contributor access to the testimonial creation/editing process if possible, reducing the attack surface. Ensure all WordPress core, theme, and plugin installations are kept up to date to address other potential vulnerabilities. Implement a Web Application Firewall (WAF) with XSS protection capabilities to catch malicious scripts before they reach the browser. Regularly scan the WordPress installation for vulnerabilities using tools like Wordfence. Additional resources include: the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/ea251110-02fa-4f4e-a578-855d3331b200?source=cve, and the changesets on the WordPress Trac site: https://plugins.trac.wordpress.org/changeset/3200155/b-testimonial/trunk/inc/theme/one.php
4. Executive Summary
The B Testimonial plugin for WordPress is vulnerable to a cross-site scripting attack, allowing authenticated users with contributor access or higher to inject malicious code into testimonials. This code can execute in the browsers of visitors viewing the affected pages, potentially leading to stolen cookies, redirection to phishing sites, or defacement of the testimonial content. While the risk is currently assessed as medium, it’s important to address this vulnerability promptly. We recommend upgrading the B Testimonial plugin to the latest version (1.2.3 or higher) as a first step. This will minimize the risk of a successful attack and protect our users and website data. Keeping the plugin updated is crucial for maintaining a secure WordPress environment. This vulnerability could potentially impact user trust and brand reputation if exploited, making timely mitigation essential.