PHPHeaven PHPMyChat多个远程漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1108000 漏洞类型 SQL注入
发布时间 2004-06-15 更新时间 2007-10-10
CVE编号 CVE-2004-2716 CNNVD-ID CNNVD-200412-463
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/24215
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200412-463
|漏洞详情
PHPMyChat0.14.5版本的usersL.php3存在多个SQL注入漏洞。远程攻击者可以借助(1)sortBy、(2)sortOrder、(3)startReg、(4)U、(5)LastCheck以及(6)R参数执行任意SQL命令。
|漏洞EXP
source: http://www.securityfocus.com/bid/10556/info

phpHeaven phpMyChat is reported prone to multiple vulnerabilities. The issues result from insufficient sanitization of user-supplied data and design flaws. The following specific issues can affect the application:

phpMyChat is prone to a HTML injection vulnerability. The issue affects the 'input.php3' script. Due to a lack of sufficient sanitization of user-supplied data, this HTML Injection vulnerability may permit an attacker to inject malicious HTML or script code into the affected application. Users who are connected to this session would have the attacker supplied HTML code rendered in their browser in the context of the vulnerable site. 

phpMyChat is prone to multiple SQL injection vulnerabilities. Again the issues are due to a failure of the application to properly sanitize user-supplied input. The problem presents itself when SQL syntax is passed through the URI parameters of the 'usersL.php3' script. The offending parameters are used in SQL queries prior to proper sanitization.

An authentication bypass vulnerability is reported to affect the phpMyChat authentication system. It is reported that by saving and modifying the phpMyChat authentication screen an attacker may potentially bypass the authentication system.

Finally phpMyChat is reported to be prone to a file disclosure vulnerability. A user who is authenticated as a site administrator can exploit the issue. The vulnerability presents itself because directory traversal sequences are not correctly sanitized from user-supplied data. It is reported that an attacker may disclose a target file by including a relative path including directory traversal sequences to the target file as a value for a URI parameter passed to the 'admin.php3' script.

http://www.example.com/chat/usersL.php3?L=russian&R='[SQL]
http://www.example.com/chat/usersL.php3?L=russian&R='%20UNION%20SELECT%20username,null,null,null%20FROM%20%20c_reg_users%20/*
http://www.example.com/chat/usersL.php3?L=russian&R='%20UNION%20SELECT%20password,null,null,null%20FROM%20%20c_reg_users%20/*
http://www.example.com/chat/usersL.php3?L=russian&R='%20UNION%20SELECT%20email,null,null,null%20FROM%20%20c_reg_users%20/*
|参考资料

来源:XF
名称:phpmychat-sql-injection(16442)
链接:http://xforce.iss.net/xforce/xfdb/16442
来源:BID
名称:10556
链接:http://www.securityfocus.com/bid/10556
来源:OSVDB
名称:7152
链接:http://www.osvdb.org/7152
来源:SECTRACK
名称:1010515
链接:http://securitytracker.com/id?1010515
来源:SECUNIA
名称:11894
链接:http://secunia.com/advisories/11894
来源:BUGTRAQ
名称:20040422phpMyChat0.14.5
链接:http://archives.neohapsis.com/archives/bugtraq/2004-06/0252.html