<?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>Something better to do &#187; inadvertent disclosure</title>
	<atom:link href="http://blog.kamens.us/tag/inadvertent-disclosure/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kamens.us</link>
	<description>Musings of an indignant mind</description>
	<lastBuildDate>Fri, 10 Feb 2012 16:49:05 +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 inadvertent disclosure bug</title>
		<link>http://blog.kamens.us/2009/10/06/wordpress-inadvertent-disclosure-bug/</link>
		<comments>http://blog.kamens.us/2009/10/06/wordpress-inadvertent-disclosure-bug/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 13:42:58 +0000</pubDate>
		<dc:creator>jik</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Computer Security]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[inadvertent disclosure]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.kamens.brookline.ma.us/~jik/wordpress/?p=977</guid>
		<description><![CDATA[As I previously wrote, I recently had to change my password on over 300 Web sites because my default &#8220;medium-security password&#8221; was compromised.  The compromise was caused by a bug in the WordPress blogging platform which can result in inadvertent disclosure of information when content is pasted into the WYSIWYG text editor built into WordPress. [...]]]></description>
			<content:encoded><![CDATA[<p>As I <a href="/2009/09/29/why-i-just-spent-three-days-changing-my-passwords-on-over-300-web-sites/">previously wrote</a>, I recently had to change my password on over 300 Web sites because my default &#8220;medium-security password&#8221; was compromised.  The compromise was caused by a bug in the <a href="http://wordpress.org/" target="_blank">WordPress blogging platform</a> which can result in inadvertent disclosure of information when content is pasted into the WYSIWYG text editor built into WordPress.</p>
<p>In a nutshell, sometimes when you paste text into the editor, the editor inserts an invisible copy of the pasted text.  You won&#8217;t see the invisible text at all in the editor; it&#8217;s visible in the HTML view, but WordPress users often post without every looking at the HTML view (that is, after all, the whole point of the editor).  Even if you do look at the HTML, you probably won&#8217;t notice the hidden text block unless you know to look for it, which most people obviously don&#8217;t.  It is not clear whether this invisible copy is inserted in addition to a visible copy of the same text, or whether it&#8217;s inserted instead of the visible copy you intended.</p>
<p>Although the text is not visible in the editor, it is in the HTML, which means that when you publish your blog entry, the hidden text goes along with it.  Search engines will happily index it and even show you snippets from it in search results if you search for a keyword that&#8217;s found in the hidden text.  Furthermore, syndicators of your blog that strip out HTML style attributes (including, e.g., the feed syndicator at <a href="http://LiveJournal.com/" target="_blank">LiveJournal.com</a>) will render the previously invisible text for the world to see.</p>
<p><span id="more-977"></span>I was posting a <a href="/2009/09/23/dma-site-is-not-only-broken-but-insecure/">blog entry about some idiots emailing me a Web site username and password</a>, and I cut and pasted their email into my blog posting and then edited it to remove the username and password before publication.  Although I edited the visible text successfully, the unedited, invisible text remained and was picked up by the search engines and LiveJournal.  Voilà!  Time to change a bunch of passwords. <em>*sigh*</em></p>
<p>This is not a terribly serious security hole, as these things go, but it is real and needs to be addressed.  Unfortunately, the maintainers of WordPress do not seem to be taking it particularly seriously.  I sent this report to <a href="mailto:security@wordpress.com" target="_blank">security@wordpress.com</a>:</p>
<p>I am running WordPress 2.8.4.</p>
<p style="padding-left: 30px;">I recently posted a blog entry&#8230;</p>
<p style="padding-left: 30px;">Here is what appeared, without my knowledge at the end of the unfixed version that I first published:</p>
<p style="padding-left: 60px;">&lt;div id=&#8221;_mcePaste&#8221; style=&#8221;overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;&#8221;&gt; &#8230; &lt;/div&gt;</p>
<p style="padding-left: 30px;">In other words, for some reason, when I pasted the email message text into the Visual editor, somehow this hidden text block got pasted, in addition to the visible text block that I then edited, and the hidden, unedited text block remained in the blog entry when it was published.</p>
<p style="padding-left: 30px;">I don&#8217;t know how this happened.  I don&#8217;t recall doing anything unusual that might have caused it when editing the blog entry.</p>
<p style="padding-left: 30px;">The security issue here should be obvious &#8212; it is a big problem that text that someone pastes into a blog entry they are editing can end up being inserted into the published blog entry without their knowledge.  In my case, the problem is particularly egregious, since usernames and passwords were involved, but any time text gets published that the author isn&#8217;t aware is being published, that&#8217;s a problem.</p>
<p style="padding-left: 30px;">The text was invisible in my blog because of the style attributes, but Google indexed it anyway, which means that it could show up in Google search results if you searched for the right keyword.  Not only that, but when the syndicated LiveJournal feed of my blog picked up the blog posting, the style attributes were stripped, and the text became visible on LiveJournal to everyone who reads my blog there.</p>
<p style="padding-left: 30px;">&#8230;</p>
<p style="padding-left: 30px;">When I Google for &#8220;&lt;div id=&#8221;_mcePaste&#8221; style=&#8221;overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;&#8221;&gt;&#8221;, Google finds 83 matches (if you tell it to display all matches, rather than letting it filter out the ones it thinks are similar), so clearly I&#8217;m not the only person who has been bitten by this, although I haven&#8217;t looked to see if any of the other inadvertently exposed text is as security-sensitive as it was in my case.  Also, if you Google for &#8220;_mcepaste hidden&#8221;, you will see that others have run into this issue, although it doesn&#8217;t look like anyone has realized the security-hole aspect of it.</p>
<p style="padding-left: 30px;">I hope you will take this issue seriously.</p>
<p>I didn&#8217;t hear back from them for two days, so I wrote to them again.  I didn&#8217;t hear back from them for another five days after that, so I wrote to them again.  They finally responded, &#8220;Switch from the Visual to the H TML tab to see hidden blocks.  Visiaul is a WYSIWYG and seems to be doing exactly as it should&#8230; That said, we can look into putting up a little warning message if the content contains hidden text.&#8221;</p>
<p>I responded:</p>
<p style="padding-left: 30px;">I don&#8217;t understand what you are saying.</p>
<p style="padding-left: 30px;">It is not correct behavior for a WYSIWYG editor to paste hidden text into a document and not tell you that it is there.</p>
<p style="padding-left: 30px;">You could make a case that it is correct behavior if (a) there were some purpose to the hidden text and (b) it happened every time.  Neither of these is the case.  There is no purpose to the hidden text; when the WYSIWYG editor pastes properly, the text is visible, not hidden.  And it only happens rarely, thus making it rather clear that it is a malfunction rather than intended behavior.</p>
<p style="padding-left: 30px;">Even if the behavior were both intended and functional, neither its existence nor its purpose is documented anywhere, nor is the user informed in any way when invisible text is pasted.  Therefore, it would still be a security issue in this case, because it is making data that people publicly visible that people don&#8217;t expect to be publicly visible without informing them.</p>
<p style="padding-left: 30px;">If there is a purpose to the hidden text, then what is it?</p>
<p>I also told them that displaying a warning message would be a good start, but not inserting hidden text into blog postings for no discernable reason would be a better solution.</p>
<p>I&#8217;ve heard nothing further back from them.</p>
<p>I am publicizing this issue both to warn other WordPress bloggers about it and to ask publicly for the WordPress development team to acknowledge that this bug is a security hole and commit to fixing it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kamens.us/2009/10/06/wordpress-inadvertent-disclosure-bug/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

