ITERAS <= 1.8.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes
- 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 ITERAS plugin for WordPress is vulnerable to Stored Cross-Site Scripting via multiple shortcodes (iteras-ordering, iteras-signup, iteras-paywall-login, iteras-selfservice) in all versions up to and including 1.8.2. This is due to insufficient input sanitization and output escaping in the combine_attributes() function. The function directly concatenates shortcode attribute values into JavaScript code within <script> tags using double-quoted string interpolation (line 489: '"'.$key.'": "'.$value.'"') without any escaping. An attacker can break out of the JavaScript string context by including a double-quote character in a shortcode attribute value and inject arbitrary JavaScript. 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
- iteras ITERAS
through 1.8.2
References 14
plugins.trac.wordpress.org
- browser/iteras/trunk/public/iteras-public.php#L489
- browser/iteras/tags/1.8.2/public/iteras-public.php#L489
- browser/iteras/trunk/public/iteras-public.php#L519
- browser/iteras/tags/1.8.2/public/iteras-public.php#L519
- browser/iteras/trunk/public/iteras-public.php#L511
- browser/iteras/tags/1.8.2/public/iteras-public.php#L511
- browser/iteras/trunk/public/iteras-public.php#L527
- browser/iteras/tags/1.8.2/public/iteras-public.php#L527
- browser/iteras/trunk/public/iteras-public.php#L561
- browser/iteras/tags/1.8.2/public/iteras-public.php#L561
- browser/iteras/trunk/public/iteras-public.php#L551
- browser/iteras/tags/1.8.2/public/iteras-public.php#L551
- changeset?sfp_email=&sfph_mail=&reponame=&old=3507724%40iteras&new=3507724%40iteras&sfp_email=&sfph_mail=