Detects Microsoft Windows systems with Ras RPC service vulnerable to MS06-025.
MS06-025 targets the
RasRpcSumbitRequest() RPC method which is a part of RASRPC interface that serves as a RPC service for configuring and getting information from the Remote Access and Routing service. RASRPC can be accessed using either "\ROUTER" SMB pipe or the "\SRVSVC" SMB pipe (usually on Windows XP machines). This is in RPC world known as "ncan_np" RPC transport.
RasRpcSumbitRequest() method is a generic method which provides different functionalities according to the
RequestBuffer structure and particularly the
RegType field within that structure.
RegType field is of
enum ReqTypes type. This enum type lists all the different available operation that can be performed using the
RasRpcSubmitRequest() RPC method. The one particular operation that this vuln targets is the
REQTYPE_GETDEVCONFIG request to get device information on the RRAS.
This script was previously part of smb-check-vulns.
Microsoft has released a set of patches for Windows. Download the latest patch.