CVE-2024-11935
Published
CVSS v3
6.4
MEDIUM
CVSS v2
N/A
Affected
1
PROJECT
Description
The Email Address Obfuscation plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘class’ parameter in all versions up to, and including, 1.0.1 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>A lightweight plugin that protects email addresses from email-harvesting bots, by converting email addresses characters to HTML entities. Hide email from Spam Bots using a shortcode <code>[obfuscate_email]</code> and built-in WordPress function <a href="https://developer.wordpress.org/reference/functions/antispambot/" title="antispambot" rel="nofollow ugc">antispambot()</a>.</p>
<h4>Features</h4>
<ul>
<li>Obfuscate plain email address</li>
<li>Obfuscate href mailto link in HTML anchor element</li>
<li>Support for custom CSS class</li>
<li>Support for email subject</li>
</ul>
<h4>Usage</h4>
<p><strong>Obfuscate plain email address</strong></p>
<pre><code>[obfuscate_email email="[email protected]"]
</code></pre>
<p><strong>Create clickable email address</strong></p>
<pre><code>[obfuscate_email email="[email protected]" link=true]
</code></pre>
<p><strong>Add CSS class to the HTML anchor element</strong></p>
<pre><code>[obfuscate_email email="[email protected]" link=true class="my-class another-class"]
</code></pre>
<p><strong>Obfuscate email address with email subject</strong></p>
<pre><code>[obfuscate_email email='[email protected]?subject=My custom email subject']
</code></pre>
<h4>Shortcode parameter</h4>
<ul>
<li><code>email</code> required – Email address.</li>
<li><code>link</code> optional – Set true if you want to create clickable email address.</li>
<li><code>class</code> optional – Add space separated list of classes.</li>
</ul>