Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-15748 — Unauthenticated RCE in WordPress Forminator Forms <= 1.56.1 (CVSS 9.8) | Kitploit
Tools/GitHubGitHub/0x4cr/cve-2026-15748
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingPayload DevelopmentRemote Access TrojanLabs & Practice
GitHub0x4cr/cve-2026-15748

CVE-2026-15748

Unauthenticated RCE in WordPress Forminator Forms <= 1.56.1 (CVSS 9.8)

1 month agoNot yet reviewed
View Repository
Share

CVE-2026-15748 — Forminator Forms Unauthenticated RCE

Unauthenticated Arbitrary File Upload via Forged Upload Field Configuration

FieldDetail
CVE IDCVE-2026-15748
CVSS9.8 (Critical)
CWECWE-434 — Unrestricted Upload of File with Dangerous Type
AffectedForminator Forms <= 1.56.1
Fixed in1.56.2
Auth requiredNone
Discovered bydaroo

Summary

Forminator Forms for WordPress (600,000+ active installations) contains an unauthenticated arbitrary file upload vulnerability that leads to Remote Code Execution (RCE).

The vulnerability chains two flaws:

  1. return key injection (front-action.php): The set_field_data() function checks if $field_data['return'] is truthy before unsetting it. An attacker sends nested POST data for a Select field with return=1, field_type=upload, and a crafted field_array. The entry is added directly to field_data_array without validation, and process_uploads() processes it as a legitimate upload field.

  2. Blocklist bypass (upload.php + helper-fields.php): The additional-type field property accepts ph(p)|text/x-php. get_additional_file_mime_types() splits on | to produce ['ph(p)' => 'text/x-php']. The extension blocklist uses in_array('ph(p)', $filters, true) which doesn't match 'php'. WordPress's wp_check_filetype() uses ph(p) as a regex pattern that does match .php. The MIME type text/x-php is injected into WordPress's upload_mimes filter, satisfying wp_check_filetype_and_ext().

Patches in 1.56.2:

  • front-action.php: Adds unset($field_data['return']) before the truthy check
  • helper-fields.php: Normalizes blocklist keys with preg_replace('/[^a-z0-9]/', '', $alternative) so ph(p) becomes php and gets blocked

Exploitation Chain

1. POST nested array data for Select field with return=1
                          |
2. set_field_data() skips validation via early-return path
                          |
3. Forged entry injected into field_data_array with field_type=upload
                          |
4. process_uploads() processes it as a legitimate upload field
                          |
5. additional-type=ph(p)|text/x-php bypasses blocklist + MIME check
                          |
6. move_uploaded_file() saves .php to uploads directory
                          |
7. Attacker accesses uploaded file --> RCE

Preconditions

  • The target form must have both a File Upload field and a Select field
  • The uploads directory must not block PHP execution — this is the case on:
    • nginx servers (.htaccess is ignored entirely)
    • Apache with AllowOverride None (.htaccess is ignored)
    • Any server where the Forminator .htaccess was removed or overwritten

Proof of Concept

Step 1 — Lab Environment

Start the Docker lab:

git clone https://github.com/str1ke2pwn/CVE-2026-15748.git
cd CVE-2026-15748
docker-compose up -d

Docker containers running

Step 2 — WordPress Installation

Open http://localhost:8080 and complete the WordPress setup.

WordPress installation

Step 3 — Install Forminator Plugin

Go to Plugins > Add New > Upload Plugin and install Forminator v1.56.0.

Note: If you get an error like "The link you followed has expired" when uploading the plugin, the PHP upload limit is too low. Fix it with:

docker-compose exec wordpress bash -c 'echo "upload_max_filesize=64M
post_max_size=64M" > /usr/local/etc/php/conf.d/uploads.ini'
docker-compose restart wordpress

Then try uploading the plugin again.

Forminator plugin active

Step 4 — Create Vulnerable Form

Go to Forminator > Forms > Create and add:

  • A File Upload field
  • A Select field (with at least one option)

Save the form, then create a new Page with the shortcode [forminator_form id="XX"] and publish it.

Form editor with both fields

Form published on frontend

Step 5 — Configure Apache to Simulate nginx

Forminator places a .htaccess in its uploads directory that blocks PHP execution. On nginx servers (which ignore .htaccess), this protection does not exist. To simulate this in our Apache-based lab:

docker-compose exec wordpress bash -c 'cat > /etc/apache2/conf-enabled/forminator-lab.conf << "CONF"
<Directory /var/www/html/wp-content/uploads/forminator>
    AllowOverride None
    Options +Indexes
    DirectoryIndex disabled
</Directory>
CONF
apache2ctl graceful'

Apache configuration

Step 6 — Run the Exploit

pip install -r requirements.txt
python poc.py --url http://localhost:8080 --page-url http://localhost:8080/?page_id=YOUR_PAGE_ID

PoC execution — RCE confirmed

Step 7 — Verify Code Execution

Open the URL from the PoC output in a browser. The page shows CVE-2026-15748-PoC-Verified followed by phpinfo() output, confirming PHP code execution on the server.

phpinfo() output in browser

Step 8 — Demonstrate Impact (Webshell)

To demonstrate full RCE impact, modify SAFE_PAYLOAD in poc.py to include command execution, re-run, and access the URL with ?cmd=whoami:

whoami showing www-data

id showing uid/gid

Step 9 — Evidence on Disk

The uploaded PHP file can be found on the server's filesystem:

docker-compose exec wordpress find /var/www/html/wp-content/uploads -name '*.php' | grep poc-test

File on disk


Usage

pip install requests
# Auto-detect forms and exploit
python poc.py --url http://localhost:8080

# Specify form page directly
python poc.py --url http://localhost:8080 --page-url http://localhost:8080/contact/

# Specify form ID
python poc.py --url http://localhost:8080 --form-id 1234

# Verify only (check if file already uploaded)
python poc.py --url http://localhost:8080 --verify-only

# Cleanup after test
python poc.py --url http://localhost:8080 --cleanup

Remediation

  • Update Forminator to version 1.56.2 or later
  • Block PHP execution in upload directories (for Apache):
    <FilesMatch "\.php$">
        Deny from all
    </FilesMatch>
    
  • For nginx, add to the server block:
    location ~* /wp-content/uploads/.*\.php$ {
        deny all;
    }
    
  • Audit wp-content/uploads/forminator/ for unexpected .php files

Teardown

To stop and remove the lab environment:

docker-compose down -v

References

  • The Hacker News — Forminator WordPress Flaw
  • SOC Prime — CVE-2026-15748 Analysis
  • SecurityOnline — CVE-2026-15748
  • Rapid7 VulnDB

Disclaimer

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    772
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    505
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    420
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    345
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    260
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    251

Explore all tools

Browse our collection of tools

View all tools →