Yapig View.PHP跨站脚本攻击漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1109133 漏洞类型 跨站脚本
发布时间 2005-10-13 更新时间 2006-05-18
CVE编号 CVE-2005-4799 CNNVD-ID CNNVD-200512-789
漏洞平台 PHP CVSS评分 5.1
|漏洞来源
https://www.exploit-db.com/exploits/26345
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200512-789
|漏洞详情
YetAnotherPHPImageGallery(YaPIG)0.95b及更早版本中存在多个跨站脚本攻击漏洞,远程攻击者可以通过(1)在"图片相关评论"中的主页字段(又称网站字段)和(2)在view.php中的img_size字段来注入任意Web脚本或HTML。
|漏洞EXP
source: http://www.securityfocus.com/bid/15092/info

Yapig is prone to a cross-site scripting vulnerability. This issue is due to a failure in the application to properly sanitize user-supplied input.

An attacker may leverage this issue to have arbitrary script code executed in the browser of an unsuspecting user in the context of the affected site. This may facilitate the theft of cookie-based authentication credentials as well as other attacks.

YaPig versions 0.95b and earlier are affected. 

http://www.example.com/path-to-yapig/view.php?gid=1&phid=1&img_size=><script>alert('hi')</script>
|参考资料

来源:XF
名称:yapig-viewphp-xss(22752)
链接:http://xforce.iss.net/xforce/xfdb/22752
来源:XF
名称:yapig-website-xss(22750)
链接:http://xforce.iss.net/xforce/xfdb/22750
来源:BID
名称:15095
链接:http://www.securityfocus.com/bid/15095
来源:BID
名称:15092
链接:http://www.securityfocus.com/bid/15092
来源:MISC
链接:http://www.seclab.tuwien.ac.at/advisories/TUVSA-0510-001.txt
来源:OSVDB
名称:19959
链接:http://www.osvdb.org/19959
来源:OSVDB
名称:19958
链接:http://www.osvdb.org/19958
来源:SECUNIA
名称:17041
链接:http://secunia.com/advisories/17041
来源:BUGTRAQ
名称:20051013Yapig:XSS/CodeInjectionVulnerability
链接:http://archives.neohapsis.com/archives/bugtraq/2005-10/0161.html