PHProjekt lib/lib.inc.php check_csrftoken函数 多个跨站请求伪造漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1191213 漏洞类型 未知
发布时间 2007-03-23 更新时间 2007-03-23
CVE编号 CVE-2007-1638 CNNVD-ID CNNVD-200703-595
漏洞平台 N/A CVSS评分 6.8
|漏洞来源
https://www.securityfocus.com/bid/86407
https://cxsecurity.com/issue/WLB-2007030175
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200703-595
|漏洞详情
PHProjekt5.2.0版本的lib/lib.inc.php中的check_csrftoken函数存在多个跨站请求伪造漏洞。当magic_quotes_gpc被禁用时,远程攻击者可以借助(1)项目,(2)联系,(3)Helpdesk,(4)注意事项,(5)搜索,(6)邮件或(7)文件管理器模块,(9)概述页或其他未明文件,以任意用户的身份执行未授权操作。
|漏洞EXP
n.runs AG
http://www.nruns.com/                              security at nruns.com
n.runs-SA-2007.005                                           14-Mar-2007
________________________________________________________________________

Vendor:                Mayflower GmbH, http://www.mayflower.de
Affected Products:     PHProjekt 5.2.0
Vulnerability:         Cross Site Request Forgery
Risk:                  HIGH

________________________________________________________________________

Vendor communication:

2006/12/31        initial notification of Mayflower
  2007/01/02        Mayflower Response
  2007/01/02        PGP keys exchange
  2007/01/02        PoCs sent to Mayflower
  2007/01/11        Mayflower confirmed the bugs
  2007/01/30        Mayflower fixed the bugs and sends RC1
  2007/01/30        n.runs informs Mayflower about a persisting XSS 
                    vulnerability
  2007/02/02        Mayflower confirmed the bug
  2007/02/08        Mayflower fixed the bugs and sends RC2   
  2007/02/12        n.runs informs Mayflower about a persisting XSS
                    vulnerability
  2007/02/15        Mayflower confirmed the bug
  2007/02/20        Mayflower fixed the bug and sends RC3
  2007/02/21        n.runs verifies RC3 and reported a possible flaw 
                    within the new XSS protection library
  2007/03/14        PHProjekt 5.2.1 available
  2007/03/14        Coordinated disclosure

________________________________________________________________________

Overview:
Quoting http://www.phprojekt.com/features.php?&newlang=eng 
"PHProjekt is a modular application for the coordination of group 
activities and to share informations and document via the web.
Components of PHProjekt: Group calendar, project management, time card 
system, file management, contact manager, mail client and many other 
modules.
PHProjekt supports many protocols like ldap, xml/soap and webdav and 
is available for 38 languages and 9 databases."

Description:
In detail, the following flaws were determined during a quick source 
code review for the modules Projects, Contacts, Helpdesk, Notes, Search
and Mail. 
During the validation the php.ini setting "magic_quotes_gpc" was 
deactivated.

PHProjekt using an internal a CSRF protection (see function 
check_csrftoken() in lib/lib.inc.php). 
By calling this function the return value is always true. Due to incorrect 
output validation in many modules, such as Mail or Filemanager, 
Cross Site Request Forgery is possible.
   
Finally, the Cross Site Request Forgery vulnerability also affect the 
summary page, which is PHProjekt's index page.

Remarks
-------
There may be other modules which are affected, but they have not been 
subject to review at this point.

Solution:
The vulnerabilities were reported on Dec 31 2006 and an update has 
been released on Mar 14 2007.
________________________________________________________________________

Credit: 
Bugs found by Alexios Fakos of n.runs AG. 
________________________________________________________________________

References: 
http://www.nruns.com/security_advisory_phprojekt_csrf.php
________________________________________________________________________

Unaltered electronic reproduction of this advisory is permitted. For all
other reproduction or publication, in printing or otherwise, contact 
security (at) nruns (dot) com [email concealed] for permission. Use of the advisory constitutes 
acceptance for use in an "as is" condition. All warranties are excluded.
In no event shall n.runs be liable for any damages whatsoever including
direct, indirect, incidental, consequential, loss of business profits or
special damages, even if n.runs has been advised of the possibility of 
such damages.

Copyright 2007 n.runs AG. All rights reserved. Terms of apply.
|受影响的产品
PHPProjekt Phpprojekt 5.2.0
|参考资料

来源:SECUNIA
名称:24509
链接:http://secunia.com/advisories/24509
来源:XF
名称:phprojekt-multiple-modules-csrf(32989)
链接:http://xforce.iss.net/xforce/xfdb/32989
来源:BUGTRAQ
名称:20070314n.runs-SA-2007.005-PHProjekt5.2.0-CrossSiteRequestForgery
链接:http://www.securityfocus.com/archive/1/archive/1/462786/100/100/threaded
来源:www.phprojekt.com
链接:http://www.phprojekt.com/index.php?name=News&file=article&sid=276
来源:MISC
链接:http://www.nruns.de/security_advisory_phprojekt_csrf.php
来源:OSVDB
名称:35162
链接:http://osvdb.org/35162
来源:SREASON
名称:2477
链接:http://securityreason.com/securityalert/2477
来源:GENTOO
名称:GLSA-200706-07
链接:http://security.gentoo.org/glsa/glsa-200706-07.xml
来源:SECUNIA
名称:25748
链接:http://secunia.com/advisories/25748