Skip to content
KitploitKITPLOIT
OutilsExploitsBlog
Log in
Soumettre
OutilsExploitsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

FluxContactConfidentialité© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
Outils/GitHubGitHub/mrjhaxcore/cve-2026-104748
Privilege EscalationVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubmrjhaxcore/cve-2026-104748

CVE-2026-104748

Python PoC for CVE-2026-104748: unauthenticated privilege escalation in the SimpleForm WordPress plugin via wp_capabilities injection, with version recon, nonce harvesting, and admin verification.

Voir le dépôt
il y a 1 moisPas encore vérifié
Partager
Contenu non disponible dans la langue demandée. Affichage de la version anglaise.

CVE-2026-104748 — Unauthenticated Privilege Escalation in SimpleForm WordPress Plugin

Vulnerability Report

1. Summary

FieldValue
CVE IDCVE-2026-104748
Vulnerability TypeUnauthenticated Privilege Escalation (CWE-269)
Affected ComponentSimpleForm WordPress Plugin
Affected Versions<= 3.9.9
Attack VectorNetwork (AV:N)
Authentication RequiredNone (PR:N)
User InteractionNone (UI:N)
ImpactFull site takeover via rogue administrator account
Exploit MaturityProof-of-Concept available
SeverityCritical

2. Description

The SimpleForm WordPress plugin registers an unauthenticated AJAX handler: wp_ajax_nopriv_simpleform_wp_register. During registration, the plugin passes the entire $_POST superglobal through save_custom_fields_to_user_meta(). This function relies on an incomplete blocklist to filter which fields may be written as user meta. Because wp_capabilities is not blocked, an attacker can inject wp_capabilities[administrator]=1 directly into the registration request. The plugin then calls update_user_meta() with this attacker-controlled key, granting the newly created account full administrator privileges. Two additional weaknesses compound the issue: (1) get_form_settings() ignores its $form_id parameter and unconditionally enables meta writing — so any form ID works. (2) The shared nonce is publicly emitted into front_end_data on every front-end page, meaning an unauthenticated attacker can harvest a valid nonce without any prior access. The result is a fully unauthenticated remote privilege escalation — an attacker can self-register as an administrator and take over the WordPress installation.

3. Affected Code Path

AJAX action: wp_ajax_nopriv_simpleform_wp_register → save_custom_fields_to_user_meta() → iterates $_POST → incomplete blocklist (wp_capabilities NOT filtered) → update_user_meta( $user_id, 'wp_capabilities', [ 'administrator' => 1 ] ) → Privilege Escalation → Administrator

4. Proof of Concept (PoC)

The PoC script CVE-2026-104748.py performs a four-phase attack: (1) Recon — fetches /wp-content/plugins/simple-form/readme.txt and parses Stable tag: to confirm version <= 3.9.9. (2) Nonce Harvest — scrapes a front-end page (cache-busted) and extracts the shared nonce using multiple regex patterns. (3) Exploit — POSTs to admin-ajax.php with action=simpleform_wp_register and the injected wp_capabilities[administrator]=1 parameter, probing candidate nonce field names. (4) Verify — requests /wp-admin/ with the same session to confirm admin dashboard access.

Usage: python3 CVE-2026-104748.py -u https://target.example.com -pg / --debug

Key payload: POST /wp-admin/admin-ajax.php with Content-Type: application/x-www-form-urlencoded and body: action=simpleform_wp_register&nonce=<harvested_nonce>&form_id=1&username=audit_&[email protected]&password=&confirm_password=&wp_capabilities[administrator]=1

Expected success indicators: response contains "success":true; /wp-admin/ returns the dashboard (no redirect to wp-login.php); marker Dashboard present in response body.

5. Impact

A successful exploit allows an unauthenticated attacker to create a rogue administrator account on the target site, fully compromise the WordPress installation (themes, plugins, posts, users), achieve Remote Code Execution (RCE) via the theme/plugin editor or malicious plugin upload, pivot to the underlying web server and internal network, persist access, and exfiltrate sensitive data (PII, credentials, secrets). Given the low complexity and lack of prerequisites, this is a critical-severity issue.

6. CVSS v3.1 Score

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H — Base Score: 9.8 (Critical). Attack Vector Network (exploitable over HTTP/S), Attack Complexity Low (no special conditions), Privileges Required None (unauthenticated), User Interaction None (no victim action needed), Scope Unchanged (WordPress context), Confidentiality High (full site data access), Integrity High (full site modification), Availability High (full site control).

7. Remediation

Immediate actions for site owners: (1) Disable or remove the SimpleForm plugin until a patched version is available. (2) If the plugin is business-critical, apply a WAF rule blocking POST requests to admin-ajax.php where the body contains wp_capabilities. (3) Audit existing users for unauthorized administrator accounts (audit_* accounts created via this exploit). (4) Rotate all WordPress salts/keys and administrator credentials.

Recommended vendor fix: In save_custom_fields_to_user_meta(), replace the blocklist with a strict allowlist. Define $allowed_meta_keys = ['first_name','last_name','nickname','description', ...only explicitly permitted fields]; then foreach ( $_POST as $key => $value ) { if ( ! in_array( $key, $allowed_meta_keys, true ) ) { continue; } update_user_meta( $user_id, sanitize_key( $key ), sanitize_text_field( $value ) ); }

Additional hardening: never pass $POST directly to update_user_meta(); explicitly block all wp* and _capabilities/_roles keys; enforce capability checks on the registration handler; tie the nonce to a specific action/user context rather than emitting a shared nonce on every page.

8. Timeline

2026-XX-XX Vulnerability discovered / PoC developed; 2026-XX-XX Vendor notified; 2026-XX-XX CVE-2026-104748 assigned; 2026-XX-XX Public disclosure.

9. References

CWE-269: Improper Privilege Management; WordPress Codex: update_user_meta(); WordPress Codex: wp_ajax_nopriv_* hooks; SimpleForm plugin repository.

10. Disclaimer

This report and the accompanying PoC are provided for authorized security testing and educational purposes only. Do not use against systems you do not own or have explicit written permission to test. Unauthorized use may violate local, national, and international law. The author assumes no liability for misuse or damage caused by this material.

Télécharger l’outil

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 La boîte à outils OSINT ultime : graphe d'enquête, notation de confiance, familles d'alias, carte, chronologie et rapports. 49 modules, plus de 400 sites, aucune clé API requise.

    901
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Application d'exécution en un clic GhostLock (CVE-2026-43499)

    861
  • 3

    wifit3

    derv82/wifit3

    Wifite mais uniquement USB et multiplateforme.

    668
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer est une plateforme open-source de Gestion des Accès Privilégiés (PAM) qui offre aux équipes DevOps et IT un accès sécurisé et à la demande aux terminaux SSH, RDP, Kubernetes, bases de données et RemoteApp via un navigateur web.

    448
  • 5

    looking-glass

    anonghosty/looking-glass

    Plateforme CSIRT qui ingère les rapports Shadowserver dans MongoDB et les rejoue sous forme de cartes interactives, d'analyses, de constats, d'avis et de tableaux de bord exécutifs.

    414
  • 6

    SafeLine

    chaitin/safeline

    WAF auto-hébergé et proxy inverse qui filtre le trafic HTTP malveillant, bloque les injections SQL, les XSS et les attaques de robots, avec limitation de débit et chiffrement dynamique HTML/JS.

    401

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →