Skip to content
SQL injection Write-up Intermediate

Formidable Forms vulnerabilities

The Formidable Forms WordPress plugin had an unauthenticated preview function that evaluated shortcodes, leading to SQL injection, unauthorised form entry retrieval, and XSS. An attacker could extract database contents, view sensitive form submissions, and execute JavaScript in an administrator's browser.

klikki Follow

Published on klikki.fi

Formidable Forms is a WordPress plugin with over 200,000 active installs. It is used for creating contact forms, polls, surveys, and other kinds of forms.

klikki, on klikki.fi

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the unauthenticated preview endpoint evaluated shortcodes and passed user input into SQL and HTML without proper sanitisation.

Impact

An unauthenticated attacker could retrieve all database contents, view sensitive form entries, and execute JavaScript in an administrator's browser, potentially leading to server-side code execution.

What the attacker needed

Formidable Forms plugin installed; No authentication required; For stored XSS, admin views form entry

The fix

The vulnerabilities were fixed in versions 2.05.02 and 2.05.03.

How it was found

  1. Send a request to the admin-ajax.php endpoint with the frm_forms_preview action and a shortcode in the after_html parameter.
  2. For SQL injection, include the display-frm-data shortcode with a crafted order attribute.
  3. Use a tool like sqlmap with custom tamper and eval options to extract database contents.
  4. For form entry retrieval, use the formresults shortcode with a form ID.
  5. For reflected XSS, submit a POST form with malicious HTML in before_html or after_html.
  6. For stored XSS, inject HTML into a form entry that triggers JavaScript when an admin views it.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A WordPress plugin let anyone trigger a form preview without logging in. That preview processed special shortcode tags, which could be abused to run database queries or insert malicious scripts. This meant private data could be stolen and an admin's browser could be taken over.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by klikki

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.