hdweGUEST多个HTML注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1194044 漏洞类型 跨站脚本
发布时间 2006-07-21 更新时间 2006-08-07
CVE编号 CVE-2006-3765 CNNVD-ID CNNVD-200607-373
漏洞平台 N/A CVSS评分 4.3
|漏洞来源
https://cxsecurity.com/issue/WLB-2006070095
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200607-373
|漏洞详情
HuttenlocherWebdesignhwdeGUEST2.1.1及之前版本存在多个跨站脚本攻击(XSS)漏洞。远程攻击者可以借助未明向量注入任意Web脚本或HTML,比如new_entry.php中的"nameinput"字段。
|漏洞EXP
-----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1

Advisory: hdweGUEST <= 2.1.1 Cross Site Scripting Vulnerabilities

Release Date: 2006/07/18

Last Modified: 2006/07/18

Author: Tamriel [tamriel at gmx dot net]

Application: hdweGUEST 2.1.1

Risk: Low

Vendor Status: contacted | no reply | no patch available

Vendor Site: www.huttenlocher-webdesign.de

Overview:

Quote from www.huttenlocher-webdesign.de

"hwdeGUEST ist ein Gaestebuch geschrieben in PHP. Es bietet dem

Betreiber eine Vielzahl von Moeglichkeiten"

Details:

In the new_entry.php are some possible cross site scripting

vulnerabilities.

This can be used to insert malicious code that will be executed

on the client's machine.

All user inputs are not checked by the script, only in this lines

(arround line 250-255)

...

$username=trim($username);

$usernachricht=trim($usernachricht);

if($GLOBALS[html_allowed]==0)

{$usernachricht=strip_tags($usernachricht);}

...

and the mail input is checked by this function:

(arround line 70-80)

...

if(strstr($adresse,"@"))

{

$temp_adresse=explode("@",$adresse);

if(strstr($temp_adresse[1],"."))

{

if(strlen($adresse)<8)

{return false;}

else

{return true;}

}

else

{return false;}

}

...

Proof of Concept:

Insert HTML/JS Code like "<u>name</u>" into the name input field

on "new entry" page.

Solution/Note:

It is strongly recommended to update your script by yourself.

Use the htmlentities() function and replace some insecure functions

like the checke_email()'s one with proper code.

Greets:

Greets fly out to all people at bluegeek.de

-----BEGIN PGP SIGNATURE-----

Version: GnuPG v1.4.3

iD8DBQFEvUFbqBhP+Twks7oRAuMvAJ9DVq0ByFhWguU4iss8V3Z2mzk9KACfTp/u

ZjypE373XsBXJW4HJNURdHc=

=Q3xe

-----END PGP SIGNATURE-----
|参考资料

来源:BID
名称:19053
链接:http://www.securityfocus.com/bid/19053
来源:BUGTRAQ
名称:20060718hdweGUEST<=2.1.1CrossSiteScriptingVulnerabilities
链接:http://www.securityfocus.com/archive/1/archive/1/440455/100/0/threaded
来源:SECTRACK
名称:1016549
链接:http://securitytracker.com/id?1016549
来源:XF
名称:hwdeguest-newentry-xss(27805)
链接:http://xforce.iss.net/xforce/xfdb/27805
来源:VUPEN
名称:ADV-2006-2871
链接:http://www.frsirt.com/english/advisories/2006/2871
来源:SREASON
名称:1258
链接:http://securityreason.com/securityalert/1258