The Blackhole for Bad Bots plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the User-Agent HTTP header in all versions up to and including 3.8. This is due to insufficient input sanitization and output escaping. The plugin uses sanitize_text_field() when capturing bot data (which strips HTML tags but does not escape HTML entities like double quotes), then stores the data via update_option(). When an administrator views the Bad Bots log page, the stored data is output directly into HTML input value attributes (lines 75-83) without esc_attr() and into HTML span content without esc_html(). This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute when an administrator views the Blackhole Bad Bots admin page.
The Blackhole for Bad Bots WordPress plugin versions up to 3.8 contain a stored XSS vulnerability in the User-Agent HTTP header processing due to insufficient input sanitization and output escaping. Unauthenticated attackers can inject malicious scripts that execute when administrators view the Bad Bots log page.
يحتوي مكون Blackhole for Bad Bots للووردبريس على ثغرة حقن برامج نصية مخزنة في معالجة رأس User-Agent. يمكن للمهاجمين غير المصرحين حقن برامج نصية ضارة تُنفذ عند عرض صفحة سجل Bad Bots من قبل المسؤولين. تنشأ المشكلة من عدم كفاية تنظيف المدخلات والهروب من المخرجات في الكود.
The Blackhole for Bad Bots WordPress plugin versions up to 3.8 contain a stored XSS vulnerability in the User-Agent HTTP header processing due to insufficient input sanitization and output escaping. Unauthenticated attackers can inject malicious scripts that execute when administrators view the Bad Bots log page.
Update the Blackhole for Bad Bots plugin to version 3.9 or later immediately. Ensure proper input sanitization using sanitize_text_field() combined with output escaping using esc_attr() for HTML attributes and esc_html() for HTML content. Implement Content Security Policy headers to mitigate XSS impact.
قم بتحديث مكون Blackhole for Bad Bots إلى الإصدار 3.9 أو أحدث على الفور. تأكد من تطبيق تنظيف المدخلات الصحيح باستخدام sanitize_text_field() مع تطبيق الهروب من المخرجات باستخدام esc_attr() للسمات وesc_html() للمحتوى. قم بتنفيذ رؤوس سياسة أمان المحتوى للتخفيف من تأثير XSS.