Short Comment Filter <= 2.2 - Authenticated (Administrator+) Stored Cross-Site Scripting via 'Minimum Count' Setting
- 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: no
- Technical impact: partial
Summary
The Short Comment Filter plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'Minimum Count' settings field in all versions up to and including 2.2. This is due to insufficient input sanitization (no sanitize callback on register_setting) and missing output escaping (no esc_attr() on the echoed value in the input's value attribute). The option value is stored via update_option() and rendered unescaped in an HTML attribute context. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary web scripts in the settings page that will execute whenever a user accesses that page. This is particularly impactful in WordPress multisite installations or when DISALLOW_UNFILTERED_HTML is set, where administrators are not granted the unfiltered_html capability.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- itsananderson Short Comment Filter
through 2.2
References 9
plugins.trac.wordpress.org
- browser/short-comment-filter/trunk/views/settings.php#L25
- browser/short-comment-filter/tags/2.2/views/settings.php#L25
- browser/short-comment-filter/trunk/classes/short-comment-filter-settings.php#L61
- browser/short-comment-filter/tags/2.2/classes/short-comment-filter-settings.php#L61
- browser/short-comment-filter/trunk/classes/short-comment-filter-settings.php#L54
- browser/short-comment-filter/tags/2.2/classes/short-comment-filter-settings.php#L54
- browser/short-comment-filter/trunk/classes/short-comment-filter-settings.php#L21
- browser/short-comment-filter/tags/2.2/classes/short-comment-filter-settings.php#L21