CVE-2024-9451

Published
View on NVD ↗
CVSS v3
6.4
MEDIUM
CVSS v2
N/A
Affected
1
PROJECT

Description

The Embed PDF Viewer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'height' and 'width' parameters in all versions up to, and including, 2.4.4 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.

<p>Embed a PDF from the Media Library or elsewhere via oEmbed or as a block into an <code>iframe</code> tag. The URL only has to be world reachable link. Chrome uses Google Doc Viewer as Chrome seems to automatically rendered embedded JS in PDFs automatically. Uses Google Doc Viewer with mobile.</p> <p>Inspired by <a href="https://wordpress.org/plugins/dirtysuds-embed-pdf/" rel="ugc">Embed PDF</a> and <a href="https://wordpress.org/plugins/rv-embed-pdf/" rel="ugc">RV Embed PDF</a>.</p> <p>Many thanks to <a href="https://github.com/akirk" rel="nofollow ugc">Alex Kirk</a> for making Embed PDF Viewer compatible with the new block editor.</p> <p>Development on <a href="https://github.com/afragen/embed-pdf-viewer" rel="nofollow ugc">GitHub</a>. Pull requests are welcome against the <code>develop</code> branch.</p> <h3>Known Issues</h3> <p>Occasionally Google Doc Viewer will not correctly load the PDF. Reloading the page should correct the issue, though this may need to be done several times.</p>
WordPress Plugin DirectoryWordPress Plugin Directory
318K