
Easy Media Replace <= 0.2.0 - Authenticated (Author+) Stored Cross-Site Scripting
Easy Media Replace <= 0.2.0 - Authenticated (Author+) Stored Cross-Site Scripting
The Easy Media Replace plugin is vulnerable to a Stored Cross-Site Scripting (XSS) via the media attachment title. When an Author renames a media file using an XSS payload and an Admin or Editor navigates to the media library in list view and hovers the "Replace" link, the payload executes. This occurs because the plugin outputs the media title without applying esc_attr(), breaking out of the HTML attribute context.
photo" onmouseover='alert(document.domain)'