<?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>ftofficer&#124;张聪的blog &#187; vulnerability</title>
	<atom:link href="http://blog.ftofficer.com/tag/vulnerability/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ftofficer.com</link>
	<description>A Newbie on the Way</description>
	<lastBuildDate>Sun, 12 Dec 2010 14:35:49 +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>WordPress </title>
		<link>http://blog.ftofficer.com/2009/08/wordpress-283-remote-admin-reset-password-vul/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://blog.ftofficer.com/2009/08/wordpress-283-remote-admin-reset-password-vul/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 17:23:36 +0000</pubDate>
		<dc:creator>Zhang Cong</dc:creator>
				<category><![CDATA[安全]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[vulnerability]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.ftofficer.com/?p=10025</guid>
		<description><![CDATA[今天刚刚看到的，WordPress 2.8.3版本之前（含）远程重置管理员密码漏洞。 关于该漏洞的信息参见这里。SuperHei的blog上面有一个简单的原理分析。 别拿我的blog做实验，我这个已经修改过了。 这个漏洞的危害不怎么大，只是用来做一些恶作剧。目前WordPress还没有新版，各位用WordPress自建blog的同仁们可以考虑自己修改 wordpress 的代码来绕过该问题： 在$(blog_root)下面，找到wp-login.php，打开，找到function reset_password。找到其中这一行： function reset_password($key) { global $wpdb; $key = preg_replace('/[^a-z0-9]/i', '', $key); if ( empty( $key ) ) return new WP_Error('invalid_key', __('Invalid key')); 将其改成： if ( ! is_string($key) &#124;&#124; empty( $key ) ) 即可。 你也许会喜欢： 搭建私有的 python 包发布中心 pypi 修正VeryCD在启用AdBlock Plus的情况下的版面混乱问题的脚本 用google.cn做proxy访问Google的服务 2007这一年 计算机不存在灵异事件]]></description>
			<content:encoded><![CDATA[<p>今天刚刚看到的，WordPress 2.8.3版本之前（含）远程重置管理员密码漏洞。</p>
<p>关于该漏洞的信息参见<a href="http://www.gossamer-threads.com/lists/fulldisc/full-disclosure/69460">这里</a>。<a href="http://hi.baidu.com/hi_heige">SuperHei的blog</a>上面有一个简单的<a href=" http://hi.baidu.com/hi_heige/blog/item/79bdc52b9d328e24d42af1df.html">原理分析</a>。</p>
<p>别拿我的blog做实验，我这个已经修改过了。</p>
<p>这个漏洞的危害不怎么大，只是用来做一些恶作剧。目前WordPress还没有新版，各位用WordPress自建blog的同仁们可以考虑自己修改 wordpress 的代码来绕过该问题：</p>
<p>在$(blog_root)下面，找到wp-login.php，打开，找到function reset_password。找到其中这一行：</p>
<p><code>function reset_password($key) {<br />
        global $wpdb;<br />
        $key = preg_replace('/[^a-z0-9]/i', '', $key);<br />
        <span style="color:red">if ( empty( $key ) )</span><br />
                return new WP_Error('invalid_key', __('Invalid key'));<br />
</code></p>
<p>将其改成：</p>
<p><code>if ( ! is_string($key) || empty( $key ) )<br />
</code></p>
<p>即可。</p>
<p><strong>你也许会喜欢：</strong>
<ul class="similar-posts">
<li><a href="http://blog.ftofficer.com/2010/12/create-private-pypi/" rel="bookmark" title="2010年12月12日">搭建私有的 python 包发布中心 pypi</a></li>
<li><a href="http://blog.ftofficer.com/2008/03/%e4%bf%ae%e6%ad%a3verycd%e5%9c%a8%e5%90%af%e7%94%a8adblock-plus%e7%9a%84%e6%83%85%e5%86%b5%e4%b8%8b%e7%9a%84%e7%89%88%e9%9d%a2%e6%b7%b7%e4%b9%b1%e9%97%ae%e9%a2%98%e7%9a%84%e8%84%9a%e6%9c%ac/" rel="bookmark" title="2008年03月2日">修正VeryCD在启用AdBlock Plus的情况下的版面混乱问题的脚本</a></li>
<li><a href="http://blog.ftofficer.com/2008/09/%e7%94%a8google-cn%e5%81%9aproxy%e8%ae%bf%e9%97%aegoogle%e7%9a%84%e6%9c%8d%e5%8a%a1/" rel="bookmark" title="2008年09月17日">用google.cn做proxy访问Google的服务</a></li>
<li><a href="http://blog.ftofficer.com/2007/12/2007%e8%bf%99%e4%b8%80%e5%b9%b4/" rel="bookmark" title="2007年12月31日">2007这一年</a></li>
<li><a href="http://blog.ftofficer.com/2009/08/there-is-no-magic-in-computer/" rel="bookmark" title="2009年08月1日">计算机不存在灵异事件</a></li>
</ul>
<p><!-- Similar Posts took 8.478 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ftofficer.com/2009/08/wordpress-283-remote-admin-reset-password-vul/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmail cookie vulnerability exposes user&#8217;s privacy</title>
		<link>http://blog.ftofficer.com/2007/09/gmail-cookie-vulnerability-exposes-users-privacy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://blog.ftofficer.com/2007/09/gmail-cookie-vulnerability-exposes-users-privacy/#comments</comments>
		<pubDate>Thu, 27 Sep 2007 16:25:00 +0000</pubDate>
		<dc:creator>Zhang Cong</dc:creator>
				<category><![CDATA[安全]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[vulnerability]]></category>

		<guid isPermaLink="false">http://blog.ftofficer.com/?p=9894</guid>
		<description><![CDATA[又一起Gmail的XSS问题。 http://www.news.com/Gmail-cookie-vulnerability-exposes-users-privacy/2100-1002_3-6210353.html?part=rss&#38;tag=2547-1_3-0-20&#38;subj=news Petko Petkov of &#34;ethical hacking&#34; group GNUCitizen has developed a proof-of-concept program to steal contacts and incoming e-mails from Google Gmail users. &#34;This can be used to forward all your incoming e-mail,&#34; Pure Hacking security researcher Chris Gatford said. &#34;It&#8217;s just a proof of concept at the moment, but what they&#8217;re demonstrating is [...]]]></description>
			<content:encoded><![CDATA[<p>又一起Gmail的XSS问题。</p>
<p><a target="_blank" href="http://www.news.com/Gmail-cookie-vulnerability-exposes-users-privacy/2100-1002_3-6210353.html?part=rss&amp;tag=2547-1_3-0-20&amp;subj=news">http://www.news.com/Gmail-cookie-vulnerability-exposes-users-privacy/2100-1002_3-6210353.html?part=rss&amp;tag=2547-1_3-0-20&amp;subj=news</a><br />
<blockquote><i>Petko Petkov of &quot;ethical hacking&quot; group GNUCitizen has developed a proof-of-concept program to steal contacts and incoming e-mails from Google Gmail users.</p>
<p>&quot;This can be used to forward all your incoming e-mail,&quot; Pure Hacking security researcher Chris Gatford said. &quot;It&#8217;s just a proof of concept at the moment, but what they&#8217;re demonstrating is the potential to use this vulnerability for malicious purposes.&quot;</p>
<p>According to Gatford, attackers could compromise a Gmail account&#8211;using a cross-site scripting vulnerability&#8211;if the victim is logged in and clicks on a malicious link. From that moment, the attacker can take over the session cookies for Gmail and subsequently forward all the account&#8217;s messages to a POP account. </p>
<p>[...]<br />
&quot;People do use private accounts to store work information,&quot; IBRS security analyst James Turner said.</p>
<p>[...]<br />&quot;When you have organizations like Google spending countless man-hours<br />
reducing security vulnerabilities&#8230;you can imagine how bad the actual<br />
situation is for other organizations,&quot; Gatford said.</i></p></blockquote>
<p>通过XSS注入到当前的Web应用程序当中，然后执行程序，窃取Cookie，进而窃取隐私。非常简单的经典的攻击方式。但是在Web的世界里，Cookie就是一切隐私，也是唯一的隐私。这是一个很大的问题。</p>
<p>这种问题很像传统安全问题里面的权限提升，本质是使用某种诸如手段让自己的代码可以运行在其他人的安全上下文当中。在Web世界里，这个问题更加严重：毕竟在桌面系统上面伪造安全令牌时非常复杂的，但是在浏览器尚上，一旦获取到Cookie，伪造会变得非常容易。</p>
<p>进而考虑一下，传统的安全问题当中，恶意代码提升权限的目的是为了能够做更多的事情，例如对用户计算机的完全的特权访问。在Web安全当中，这个问题有些类似，通过XSS的方式，代码可以以“当前用户”的身份做更多的事情，例如，去感染更多的用户。</p>
<p>随着Web应用程序越来越流行，这种安全问题最终会变得很严重：试想一下，有一天，你的计算机（如果还可以称为计算机的话）上面不需要有硬盘，不需要太多的内存，你需要的只是一个固化在ROM里面的浏览器——Web终端，通过高速的电缆或无线信号连接到互联网。你真正的数据都存储在网络上面的数据中心当中——在那里有无法计数的海量存储设备；你通过访问互联网上无处不在的Web应用程序来访问和处理这些数据。我可以用在线RSS阅读器读取网络上各种各样的blog文章；可以通过在线的视频点播或者电视系统观看电视节目；甚至你可以将自己的照片、视频、文档统统保存在互联网上，以便可以在各处查阅。</p>
<p>这时候的互联网就是一个操作系统，但是，你所有的隐私，都基于一些Cookie——存储在浏览器当中的一些短小的字符串。Cookie，就是你的一切隐私。</p>
<p>这是个很大的问题。</p>
<p><strong>你也许会喜欢：</strong>
<ul class="similar-posts">
<li><a href="http://blog.ftofficer.com/2007/05/%e5%ae%89%e5%85%a8%e4%ba%a7%e4%b8%9a%e6%9c%aa%e6%9d%a5%e7%9a%84%e4%bb%b7%e5%80%bc/" rel="bookmark" title="2007年05月9日">安全产业未来的价值</a></li>
<li><a href="http://blog.ftofficer.com/2010/01/google-to-shutdown-china-office/" rel="bookmark" title="2010年01月13日">Google可能要撤出中国市场</a></li>
<li><a href="http://blog.ftofficer.com/2007/06/google-safe-browsing-api-demo/" rel="bookmark" title="2007年06月24日">Google Safe Browsing API Demo</a></li>
<li><a href="http://blog.ftofficer.com/2007/12/%e5%a6%82%e6%9e%9csmtp%e6%94%af%e6%8c%81%e5%8f%91%e9%80%81%e9%82%ae%e4%bb%b6%e7%9a%84%e6%96%ad%e7%82%b9%e7%bb%ad%e4%bc%a0%e2%80%a6%e2%80%a6/" rel="bookmark" title="2007年12月8日">如果SMTP支持发送邮件的断点续传……</a></li>
<li><a href="http://blog.ftofficer.com/2007/06/%e6%b5%8f%e8%a7%88%e5%99%a8%e5%92%8cweb%e6%9d%82%e8%b0%88/" rel="bookmark" title="2007年06月26日">浏览器和Web杂谈</a></li>
</ul>
<p><!-- Similar Posts took 8.659 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ftofficer.com/2007/09/gmail-cookie-vulnerability-exposes-users-privacy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

