BugTraq
Mambo Component - EstateAgent Remote File Inclusion Aug 20 2006 02:02AM
Outlaw aria-security net (1 replies)
Re: Mambo Component - EstateAgent Remote File Inclusion Aug 23 2006 10:51PM
Carsten Eilers (ceilers-lists gmx de)
Hi,

Outlaw (at) aria-security (dot) net [email concealed] schrieb am Sun, 20 Aug 2006 02:02:16 +0000:

Ay you wrote yourself:

># Don't allow direct linking
>
> defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not
>allowed.' );

This kills the script I you try a direct access, so there
is no manipulation of variables possible.

>
>#Proof of Concept:
>
>#
>
>#www.site.com/com_estateagent/estateagent.php?mosConfig_absolute_path=s
hell

Dies imediately without any code-execution after the
defined-line above.

>
>#Solutions :
>
>#1 - If you have access on webserver turn register_globals in php.ini off
>
>#2 - You must give a value before put the value of variable in the
>include function or check and filter

You forgot

#3 - Check variable in other script and let this script die
after direct access.

Oh, #3 is always implemented... ;-)

Regards
Carsten

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

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

[ reply ]


 

Privacy Statement
Copyright 2010, SecurityFocus