OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: how to trick most of cms avatar upload filter [exemple for : RunCms (PoC)]

From: Taneli Leppä (tanelicrasman.fi)
Date: Thu Nov 02 2006 - 13:56:49 CST


Hi,

securfroggmail.com kirjoitti:
> then you need to take a good file editor , like: notepad++
> (you can take whatever picture , and edit it without destroying it .)
> we need to put some php code AFTER the picture code .
> when it's done , try the picture if it still work , if yes , we are ok :).

This actually seems to work. A quick workaround is to disable PHP in the
directory where the avatar images are stored (or any user-uploaded files
for that matter) in Apache:

<Directory "/var/www/html/forum/avatardir">
   php_admin_flag engine off
</Directory>

--
   Taneli Leppä | Crasman Co Ltd
   <tanelicrasman.fi> | <http://www.crasman.fi/>