T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/start-win11-browser-cdp-for-openclaw.ps1:117- Finding
Unauthenticated CDP Relay Binds to All Windows Network Interfaces
- Content
View full analysis
127.0.0.1:$CdpPort" netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=$RelayPort 2>$null | Out-Null netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=$RelayPort connectaddress=127.0.0.1 connectport=$CdpPort | Out-Null if (!(Test-HttpOk "http://127.0.0.1:$RelayPort/json/version")) { throw "Local portproxy test failed on 127.0.0.1:$RelayPort" } Write-Log "Portproxy responding locally on 127.0.0.1:$RelayPort" } function Ensure-Firewall([string]$RemoteCidr) { if (-not $RemoteCidr -or $RemoteCidr -eq '0.0.0.0/0') { throw 'Refusing to create broad firewall rule for browser CDP relay.' } Write-Log "Ensuring firewall rule '$FirewallRuleName' for remote $RemoteCidr -> TCP $RelayPort" Get-NetFirewallRule -DisplayName $OldFirewallRuleName -ErrorAction SilentlyContinue | ...[truncated 3183 chars]- Remediation
View remediation
