Secunia Logo
Netsikker nu! 2008
 
PHPKIT Multiple Vulnerabilities
Secunia Advisory: SA17479
Release Date: 2005-11-08
Last Update: 2007-03-06
Popularity: 8,345 views

Critical:
Highly critical
Impact: Cross Site Scripting
Manipulation of data
Exposure of sensitive information
System access
Where: From remote
Solution Status: Unpatched

Software:PHPKIT 1.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2005-3552
CVE-2005-3553
CVE-2005-4424
CVE-2006-0785
CVE-2006-0786
CVE-2006-1507
CVE-2006-1773
CVE-2006-7115


Description:
Some vulnerabilities have been reported in PHPKIT, which can be exploited by malicious people to conduct cross-site scripting and script insertion attacks, disclose sensitive information, and compromise a vulnerable system.

1) Some input isn't properly sanitised before being used. This can be exploited to inject arbitrary HTML and script code, which will be executed in a user's or administrator's browser session in context of an affected site when the malicious user data is viewed.

2) Input passed to the "site_body" parameter in "admin/admin.php" isn't properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in an administrator's browser session in context of an affected site.

Successful exploitation requires that "register_globals" is enabled.

3) Input passed to the referer HTTP header isn't properly sanitised before being used. This can be exploited to inject arbitrary HTML and script code, which will be executed in an administrator's browser session in context of an affected site when the administrator views referer statistics.

4) Input passed to the "contentid", "id", and "PHPKITSID" parameters isn't properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

5) Input passed to the "path" parameter in various scripts isn't properly verified, before it is used to include files. This can be exploited to include arbitrary files from local resources.

This can further be exploited to execute arbitrary PHP code injected into an uploaded avatar image, but requires that the user is allowed to upload custom avatar images.

6) Some unspecified input isn't properly sanitised before being used in an "eval()" call. This can be exploited to inject and execute arbitrary PHP code.

Successful exploitation requires that "register_globals" is enabled.

7) Input passed to the "search_user" parameter in misc/finduser.php is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

8) Input passed to the "catid" parameter in faq/faq.php and to the "subid" parameter in comment.php is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation requires that "magic_quotes_gpc" is disabled.

The vulnerabilities are reported in version 1.6.1 R2 and prior. Other versions may also be affected.

Solution:
Edit the source code to ensure that input is properly sanitised and verified, and set "register_globals" to "Off".

Use another product.

Provided and/or discovered by:
1, 3, 4, 5) Christopher Kunz, Hardened PHP Project
2) Johann-Peter Hartmann
4) Stefan Walk
Additional information provided by Hamid Ebadi
6) Stefan Esser, Hardened PHP Project
7) x23
8) Philipp Niedziela and yorn

Changelog:
2005-12-07: Added CVE references.
2006-01-13: Added CVE reference.
2006-02-23: Added CVE references.
2006-04-03: Added CVE reference.
2006-04-10: Added additional information provided by Hamid Ebadi.
2006-04-17: Added CVE reference.
2006-11-06: Added additional "search_user" vulnerability provided by x23.
2006-11-14: Added additional "catid" vulnerability provided by Philipp Niedziela.
2007-01-10: Added additional "subid" vulnerability by yorn.
2007-03-06: Added CVE reference.

Original Advisory:
http://www.hardened-php.net/advisory_212005.80.html

4) http://hamid.ir/security/phpkit.txt

8) http://www.bb-pcsecurity.de/


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. VMware ESX Server Sun Java JDK / JRE Multiple Vulnerabilities // 47 views
2. phpBB Avatar Script Insertion Vulnerability // 46 views
3. Microsoft Windows Vista Page Fault Handling Denial of Service // 46 views
4. VMware VirtualCenter Multiple Vulnerabilities // 41 views
5. VMware ESX / ESXi "JMP" Privilege Escalation Vulnerability // 38 views
6. Serv-U File Renaming Directory Traversal and STOU Denial of Service // 33 views
7. Nucleus EUC-JP Cross-Site Scripting Vulnerability // 33 views
8. Subdreamer Light Global Variables SQL Injection Vulnerability // 32 views
9. JMweb MP3 Script "src" File Inclusion Vulnerabilities // 32 views
10. AmpJuke "special" SQL Injection Vulnerability // 32 views