2相关版本:
受影响的版本
. Windows Server 2003 SP0, SP1 and SP2.
. Windows Server 2003 x64 Edition SP2.
. Windows Server 2003 SP2 for Itanium-based Systems.
. Windows Server 2008 SP2.
. Windows Server 2008 x64 Edition SP2.
. Windows Server 2008 R2 for x64-based Systems.
. Other versions and platforms are probably affected too, but they
were no checked.
不受影响的版本:
. Windows XP SP3.
. Windows XP Professional x64 Edition SP2.
. Windows Vista SP2.
. Windows Vista x64 Edition SP2.
. Windows Server 2008 for Itanium-based Systems SP2.
. Windows 7.
. Windows 7 for x64-based Systems.
. Windows Server 2008 R2 for Itanium-based systems. 3漏洞调试环境的安装
C:\Python25>netstat -ban
Active Connections
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:42 0.0.0.0:0 LISTENING 1312
[wins.exe]
TCP 0.0.0.0:1027 0.0.0.0:0 LISTENING 1312
[wins.exe]
UDP 0.0.0.0:42 *:* 1312
[wins.exe]
UDP 127.0.0.1:1026 *:* 1312
[wins.exe]
如上,我们发现wins_tcp_dynamic_port为1027,wins_udp_dynamic_port为1026.
后面writeable_address的地址,先设为0x4b5f5f5f.
4漏洞调试
我们用windbg附加到wins.exe程序上后,按上述方式执行wins_poc.py
0:020> g
(4d0.6bc): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=00000064 ebx=42424242 ecx=7c823adb edx=42424242 esi=00001000 edi=424242a5
eip=7c823ab3 esp=0422f548 ebp=0422f574 iopl=0 nv up ei pl zr na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010246
kernel32!IsBadWritePtr+0x31:
7c823ab3 8a02 mov al,byte ptr [edx] ds:0023:42424242=??