<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Wolves Security Team - 4Images  1.7.6  Local Inclusion Vulnerability]]></title>
	<link rel="self" href="http://bbs.wolvez.org/feed/atom/topic/56/"/>
	<updated>2009-02-17T03:25:52Z</updated>
	<generator>PunBB</generator>
	<id>http://bbs.wolvez.org/topic/56/</id>
		<entry>
			<title type="html"><![CDATA[Re: 4Images  1.7.6  Local Inclusion Vulnerability]]></title>
			<link rel="alternate" href="http://bbs.wolvez.org/post/131/#p131"/>
			<content type="html"><![CDATA[<p><a href="http://bbs.wolvez.org/topic/22/">http://bbs.wolvez.org/topic/22/</a></p>]]></content>
			<author>
				<name><![CDATA[q1ur3n]]></name>
				<uri>http://bbs.wolvez.org/user/4/</uri>
			</author>
			<updated>2009-02-17T03:25:52Z</updated>
			<id>http://bbs.wolvez.org/post/131/#p131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4Images  1.7.6  Local Inclusion Vulnerability]]></title>
			<link rel="alternate" href="http://bbs.wolvez.org/post/130/#p130"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>toby57 wrote:</cite><blockquote><p>呃……就怕开了GPC...^_^</p></blockquote></div><br /><p>if (get_magic_quotes_gpc() == 0) { $HTTP_GET_VARS =addslashes_array($HTTP_GET_VARS); $HTTP_POST_VARS =addslashes_array($HTTP_POST_VARS); $HTTP_COOKIE_VARS =addslashes_array($HTTP_COOKIE_VARS); }</p><p>我犯了一个错误，sorry</p><p>这个貌似关了gpc也不能用%00截断 :)</p><p>不过可以用一个思路，比如在linux下，可以通过旁注拿个shell，然后写个main.php到/tmp目录下，然后包含之</p>]]></content>
			<author>
				<name><![CDATA[flyh4t]]></name>
				<uri>http://bbs.wolvez.org/user/10/</uri>
			</author>
			<updated>2009-02-17T01:21:48Z</updated>
			<id>http://bbs.wolvez.org/post/130/#p130</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4Images  1.7.6  Local Inclusion Vulnerability]]></title>
			<link rel="alternate" href="http://bbs.wolvez.org/post/128/#p128"/>
			<content type="html"><![CDATA[<p>嗯 还可以采用包含日志的方法...</p>]]></content>
			<author>
				<name><![CDATA[q1ur3n]]></name>
				<uri>http://bbs.wolvez.org/user/4/</uri>
			</author>
			<updated>2009-02-14T14:21:30Z</updated>
			<id>http://bbs.wolvez.org/post/128/#p128</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[4Images  1.7.6  Local Inclusion Vulnerability]]></title>
			<link rel="alternate" href="http://bbs.wolvez.org/post/127/#p127"/>
			<content type="html"><![CDATA[<p>4Images&nbsp; 1.7.6&nbsp; Local Inclusion Vulnerability<br />BY Flyh4t<br />/***********************************************************/<br />4images - Image Gallery Management System&nbsp; V1.7.6&nbsp; Local Inclusion Vulnerability</p><p>Author : &nbsp; &nbsp; Flyh4t<br />msn : &nbsp; &nbsp; flyh4t@hotmail.com<br />team: &nbsp; &nbsp; Wolves Security Team<br />site:&nbsp; &nbsp; &nbsp; &nbsp; bbs.wolvez.org<br />Greet to : q1ur3n&nbsp; puret_t&nbsp; make0day&nbsp; and all the members of Wolves Security Team<br />/***********************************************************/<br />Bug file : global.php<br />if (isset($HTTP_GET_VARS[&#039;l&#039;]) || isset($HTTP_POST_VARS[&#039;l&#039;])) {<br />&nbsp; $requested_l = (isset($HTTP_GET_VARS[&#039;l&#039;])) ? trim($HTTP_GET_VARS[&#039;l&#039;]) : trim($HTTP_POST_VARS[&#039;l&#039;]);<br />&nbsp; if ($requested_l != $config[&#039;language_dir&#039;] &amp;&amp; file_exists(ROOT_PATH.&#039;lang/&#039;.$requested_l.&#039;/main.php&#039;)) {<br />&nbsp; &nbsp; $l = $requested_l;<br />&nbsp; &nbsp; $config[&#039;language_dir&#039;] = $l;<br />&nbsp; }<br />}</p><p>include_once(ROOT_PATH.&#039;lang/&#039;.$config[&#039;language_dir&#039;].&#039;/main.php&#039;);</p><p>/***********************************************************/<br /> global.php is included by all the files of 4images,so it can be exploited through many files</p><br /><p>/***********************************************************/</p>]]></content>
			<author>
				<name><![CDATA[flyh4t]]></name>
				<uri>http://bbs.wolvez.org/user/10/</uri>
			</author>
			<updated>2009-02-14T14:17:36Z</updated>
			<id>http://bbs.wolvez.org/post/127/#p127</id>
		</entry>
</feed>
