SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Forum/Board/Portal)  >   CoolPHP Vendors:   cphp.sourceforge.net
CoolPHP Input Validation Holes Let Local Users Execute Arbitrary Commands and Remote Users Conduct Cross-Site Scripting Attacks
SecurityTracker Alert ID:  1011748
SecurityTracker URL:  http://securitytracker.com/id/1011748
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Oct 17 2004
Impact:   Disclosure of authentication information, Disclosure of system information, Disclosure of user information, Execution of arbitrary code via local system, Execution of arbitrary code via network, Modification of user information, User access via local system
Exploit Included:  Yes  
Version(s): 1.0-stable
Description:   R00tCr4ck of CHT Security Research Center reported several vulnerabilities in CoolPHP. A local user can execute arbitrary commands on the target system. A remote user can conduct cross-site scripting attacks and can determine the installation path.

It is reported that the software does not properly validate user-supplied input, permitting several different types of exploits.

A remote user can supply an 'op' parameter that contains '../' directory traversal characters to cause arbitrary files on the target system to be included and executed by the web server. A local user can create a PHP file containing arbitrary commands and then have the web server load the file and execute the commands with the privileges of the web service.

A demonstration exploit URL is provided:

http://[victim]/index.php?op=../../../../anotheruser/evilfile

It is also reported that a remote user can create a specially crafted URL that, when loaded by a target user, will cause arbitrary scripting code to be executed by the target user's browser. The code will originate from the site running the CoolPHP software and will run in the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.

The 'query' parameter of the 'buscar' module and the 'nick' parameter of the 'userinfo' module is affected.

Some demonstration exploit URLs are provided:

http://[victim]/index.php?op=buscar&query=<script language=javascript>window.alert(document.cookie);</script>

http://[victim]/index.php?op=buscar&query=%3Cscript%20language=javascript%3Ewindow.alert%28document.cookie%29;%3C/script%3E

http://[victim]/index.php?op=userinfo&nick=<script language=javascript>window.alert(document.cookie);</script>

It is also reported that a remote user can supply an invalid 'op' value to cause the system to generate an error message that discloses the installation path. A demonstration exploit URL is provided:

http://[victim]/cphp/index.php?op=invparam

Impact:   A local user can execute arbitrary commands with the privileges of the web server.

A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the CoolPHP software, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.

A remote user can determine the installation path.

Solution:   No solution was available at the time of this entry.
Vendor URL:  cphp.sourceforge.net/ (Links to External Site)
Cause:   Access control error, Input validation error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)

Message History:   None.


 Source Message Contents

Subject:  Multiple Vulnerabilities in CoolPHP


#####################################
# CHT Security Research Center-2004 #
# http://www.CyberSpy.Org           #
# Turkey                            #
#####################################

Software:
CoolPHP

Web Site:
http://cphp.sourceforge.net/

Affected Version(s):
1.0-stable

Description:
CoolPHP is a PHP based portal system.It requires A Web server with PHP>=PHP4
support and MySQL.
It's compatible with *NIX and NT.

Multiple Vulnerabilities in CoolPHP:

Cross-Site Scripting vulnerability:
CoolPHP is vulnerable to cross-site scripting attacks.
It is possible to construct a link containing arbitrary script code to a website
running CoolPHP.
When a user browses the link, the script code will be executed on the user's
browser.
This vulnerability occurs due to insufficient inspection of some user-supplied
input.
As a result of this deficiency an attacker may exploit the vulnerability by
creating a specially crafted URL that includes malicious HTML code as URI
parameters for index.php

Examples:

http://[victim]/index.php?op=buscar&query=<script
language=javascript>window.alert(document.cookie);</script>
http://[victim]/index.php?op=buscar&query=%3Cscript%20language=javascript%3Ewindow.alert%28document.cookie%29;%3C/script%3E
http://[victim]/index.php?op=userinfo&nick=<script
language=javascript>window.alert(document.cookie);</script>


Path Disclosure Vulnerability:
CoolPHP is prone to a path disclosure vulnerability.
Passing invalid value for the 'op' URI parameter to the index.php file
will cause an error message to be displayed which contains physical path
information.
This information could be useful in further attacks against the system.

Demonstration:

http://[victim]/cphp/index.php?op=invparam


Local file include Vulnerability with Directory Traversal :
CoolPHP does not filter dot dot slash (../) sequences from web requests.
This problem may allow an attacker to access known files outside the server root
directory
and will permit a local attack to include malicious PHP scripts from another
local paths.

Examples:

http://[victim]/index.php?op=../../../../anotheruser/evilfile
or as URL encoded format:
http://[victim]/index.php?op=%2E%2E%2F%2E%2E%2F%2E%2E%2F%2E%2E%2Fanotheruser/evilfile

----
Reported By R00tCr4ck at October,16 2004
root(at)CyberSpy.Org
Original Article can be found at:
http://www.CyberSpy.Org
 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, SecurityGlobal.net LLC