TITLE: PHPKIT Multiple Vulnerabilities SECUNIA ADVISORY ID: SA17479 VERIFY ADVISORY: http://secunia.com/advisories/17479/ CRITICAL: Highly critical IMPACT: Cross Site Scripting, Manipulation of data, Exposure of sensitive information, System access WHERE: >From remote SOFTWARE: PHPKIT 1.x http://secunia.com/product/2486/ DESCRIPTION: Christopher Kunz has reported some vulnerabilities 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 "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. The vulnerabilities have been 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". PROVIDED AND/OR DISCOVERED BY: 1, 3, 4, 5) Christopher Kunz, Hardened PHP Project 2) Johann-Peter Hartmann 4) Stefan Walk 6) Stefan Esser, Hardened PHP Project ORIGINAL ADVISORY: http://www.hardened-php.net/advisory_212005.80.html ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help everybody keeping their systems up to date against the latest vulnerabilities. Subscribe: http://secunia.com/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/about_secunia_advisories/ Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor. ---------------------------------------------------------------------- Unsubscribe: Secunia Security Advisories http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org ----------------------------------------------------------------------