newsPHP Flaws in 'nphpd' Permit Remote Users to View and Execute Files and Execute Script Functions
SecurityTracker Alert ID: 1007584
CVE Reference: GENERIC-MAP-NOMATCH (Links to External Site)
Date: Aug 27 2003
Impact: Execution of arbitrary code via network, User access via network
Exploit Included: Yes
Version(s): 216 and prior versions
Description: A file inclusion vulnerability was reported in newsPHP. A remote user can include arbitrary files on the system to view files and execute code. A remote user can also invoke script functions without authenticating.
It is reported that if the LangFile is not set in the config file (which is the default configuration) then a remote user can include any existing file on the web server. This is due to a flaw in the 'nphpd.php' script. This flaw can be exploited to potentially view files on the system or execute PHP code on the system.
A demonstration exploit URL is provided:
http://[host]/nphp/nphpd.php?nphp_config[LangFile]=/evil/file
It is also reported that a remote user can perform various actions on the system without having to authenticate to the system. This can reportedly be achieved by injecting specially crafted data for a fake user. A demonstration exploit is provided:
http://[host]/nphp/?[action here, example: output]&
pword=a&
uname=[fake usernamehere]&
nphp_users[user index here][0]=a&
nphp_users[user index here][1]=0cc175b9c0f1b6a831c399e269772661&
nphp_users[user index here][3]=5
In the above exploit, md5('a') is '0cc175b9c0f1b6a831c399e269772661'.
Impact: A remote user can include arbitrary files on the system to view the files or execute PHP files.
A remote user can perform various functions without having to login.
Solution: No solution was available at the time of this entry.
[Editor's note: The vendor's web site indicates that development of NewsPHP has stopped in favor of a new project, NewsPHP Advanced.]
Vendor URL: www.nphp.net/ (Links to External Site)
Cause: Authentication error, Input validation error, State error
Underlying OS: Linux (Any), UNIX (Any), Windows (Any)
Reported By: "Dariusz 'Officerrr' Kolasinski" <officerrr@poligon.com.pl>
Message History: None.




