EWWW Image Optimizer <= 8.7.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'data-script' Lazy Load Attribute in Post Content
- 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 EWWW Image Optimizer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'data-script' Lazy Load Attribute in Post Content in all versions up to, and including, 8.7.3 due to insufficient input sanitization and output escaping. 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. The exploit is achieved by embedding a crafted img element with class='lazyload' and a data-script attribute pointing to an attacker-controlled URL in post content, which the plugin's bundled lazysizes ls.unveilhooks addon then uses to dynamically create and insert a script element into the DOM at page view time.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- nosilver4u EWWW Image Optimizer
through 8.7.3
References 10
plugins.trac.wordpress.org
- browser/ewww-image-optimizer/tags/8.7.3/includes/ls.unveilhooks.js#L116
- browser/ewww-image-optimizer/tags/8.7.3/includes/ls.unveilhooks.js#L178
- browser/ewww-image-optimizer/tags/8.7.3/classes/class-lazy-load.php#L1679
- browser/ewww-image-optimizer/tags/8.7.3/classes/class-lazy-load.php#L496
- browser/ewww-image-optimizer/tags/8.6.0/includes/ls.unveilhooks.js#L116
- browser/ewww-image-optimizer/tags/8.6.0/includes/ls.unveilhooks.js#L178
- browser/ewww-image-optimizer/tags/8.6.0/classes/class-lazy-load.php#L1679
- browser/ewww-image-optimizer/tags/8.6.0/classes/class-lazy-load.php#L496