CVE-2024-0618 — Fluent Forms <= 5.1.5 - Administrator+ Stored Cross-Site Scripting

The Contact Form Plugin – Fastest Contact Form Builder Plugin for WordPress by Fluent Forms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via imported form titles in all versions up to, and including, 5.1.5 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.

Proof of Concepts

  1. Go to plugin’s setting for Export. This will give you their JSON Formatted file.
  2. Insert XSS Payload in title "title":"XSS FROM Import<img src onerror=alert(/XSS/)>",
  3. Go to plugin’s setting for Import then upload your edited JSON file
  4. Go back to plugin’s Forms /wp-admin/admin.php?page=fluent_forms
  5. Put the shortcode of your imported form to a new post

Impact

This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.