Simple Download Counter <= 2.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'text' Shortcode Attribute
- 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 Simple Download Counter plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'sdc_menu' shortcode in all versions up to, and including, 2.3. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes, specifically the 'text' and 'cat' attributes. The 'text' attribute is output directly into HTML content on line 159 without any escaping (e.g., esc_html()). The 'cat' attribute is used unescaped in HTML class attributes on lines 135 and 157 without esc_attr(). 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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- specialk Simple Download Counter
through 2.3
References 10
plugins.trac.wordpress.org
- browser/simple-download-counter/trunk/inc/functions-shortcode.php#L159
- browser/simple-download-counter/tags/2.3/inc/functions-shortcode.php#L159
- browser/simple-download-counter/trunk/inc/functions-shortcode.php#L135
- browser/simple-download-counter/tags/2.3/inc/functions-shortcode.php#L135
- browser/simple-download-counter/trunk/inc/functions-shortcode.php#L157
- browser/simple-download-counter/tags/2.3/inc/functions-shortcode.php#L157
- browser/simple-download-counter/trunk/inc/functions-shortcode.php#L92
- browser/simple-download-counter/tags/2.3/inc/functions-shortcode.php#L92
- changeset?sfp_email=&sfph_mail=&reponame=&old=3487364%40simple-download-counter&new=3487364%40simple-download-counter&sfp_email=&sfph_mail=