Contact List <= 3.0.18 - Authenticated (Contributor+) Stored Cross-Site Scripting via '_cl_map_iframe' Parameter
- 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? →
- 1 proof of concept on GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
The Contact List plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the '_cl_map_iframe' parameter in all versions up to, and including, 3.0.18. This is due to insufficient input sanitization and output escaping when handling the Google Maps iframe custom field. The saveCustomFields() function in class-contact-list-custom-fields.php uses a regex to extract <iframe> tags from user input but does not validate or sanitize the iframe's attributes, allowing event handlers like 'onload' to be included. The extracted iframe HTML is stored via update_post_meta() and later rendered on the front-end in class-cl-public-card.php without any escaping or wp_kses filtering. 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
- anssilaitila Contact List – Online Staff Directory & Address Book
through 3.0.18
References 9
plugins.trac.wordpress.org
- browser/contact-list/trunk/public/class-cl-public-card.php#L466
- browser/contact-list/tags/3.0.17/public/class-cl-public-card.php#L466
- browser/contact-list/trunk/includes/class-contact-list-custom-fields.php#L697
- browser/contact-list/tags/3.0.17/includes/class-contact-list-custom-fields.php#L697
- browser/contact-list/trunk/includes/class-contact-list-custom-fields.php#L675
- browser/contact-list/tags/3.0.17/includes/class-contact-list-custom-fields.php#L675
- changeset/3486445