Blackhole for Bad Bots <= 3.8 - Unauthenticated Stored Cross-Site Scripting via User-Agent HTTP Header
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- specialk Blackhole for Bad Bots
through 3.8
References 12
plugins.trac.wordpress.org
- browser/blackhole-bad-bots/trunk/inc/badbots-register.php#L75
- browser/blackhole-bad-bots/trunk/inc/badbots-register.php#L85
- browser/blackhole-bad-bots/trunk/inc/badbots-register.php#L79
- browser/blackhole-bad-bots/tags/3.8/inc/badbots-register.php#L79
- browser/blackhole-bad-bots/tags/3.8/inc/badbots-register.php#L85
- browser/blackhole-bad-bots/tags/3.8/inc/badbots-register.php#L75
- browser/blackhole-bad-bots/trunk/inc/blackhole-helpers.php#L22
- browser/blackhole-bad-bots/tags/3.8/inc/blackhole-helpers.php#L22
- browser/blackhole-bad-bots/trunk/inc/blackhole-core.php#L180
- browser/blackhole-bad-bots/tags/3.8/inc/blackhole-core.php#L180
- changeset?sfp_email=&sfph_mail=&reponame=&old=3487350%40blackhole-bad-bots&new=3487350%40blackhole-bad-bots&sfp_email=&sfph_mail=