<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<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>Interesting Twitter Hashbang Bug &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/2012/05/interesting-twitter-hashbang-bug/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Fri, 04 May 2012 14:58:09 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>Interesting Twitter Hashbang Bug &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Interesting Twitter Hashbang Bug]]></title>
		<link>https://shkspr.mobi/blog/2012/05/interesting-twitter-hashbang-bug/</link>
					<comments>https://shkspr.mobi/blog/2012/05/interesting-twitter-hashbang-bug/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Fri, 04 May 2012 09:28:23 +0000</pubDate>
				<category><![CDATA[usability]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[twitter]]></category>
		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=5670</guid>

					<description><![CDATA[Did you know that you can to link to a specific Tweet on Twitter?  The URL looks like this: https://twitter.com/#!/edent/status/197967209459499008  Pretty obviously, that&#039;s the user&#039;s name and the ID of their tweet.  Simple, right?  Not really, click on that link and you&#039;ll see this:  That&#039;s my name in the URL bar - but the Number 10 Press Office&#039;s tweet on the page.  What&#039;s Going On?  Have I…]]></description>
										<content:encoded><![CDATA[<p>Did you know that you can to link to a specific Tweet on Twitter?  The URL looks like this:
<a href="https://twitter.com/#!/edent/status/197967209459499008">https://twitter.com/#!/edent/status/197967209459499008</a></p>

<p>Pretty obviously, that's the user's name and the ID of their tweet.  Simple, right?</p>

<p>Not really, click on that link and you'll see this:
<img src="https://shkspr.mobi/blog/wp-content/uploads/2012/05/twitter-bug-screenshot.jpg" alt="twitter bug screenshot" title="twitter bug screenshot" width="600" height="260" class="aligncenter size-full wp-image-5671">
That's my name in the URL bar - but the Number 10 Press Office's tweet on the page.</p>

<h2 id="whats-going-on"><a href="https://shkspr.mobi/blog/2012/05/interesting-twitter-hashbang-bug/#whats-going-on">What's Going On?</a></h2>

<p>Have I retweeted that status? Nope!
Am I a 1337 h4x0r who has hacked Number 10? No sir!
Is the screenshot a fake? Nuh-uh. <a href="https://twitter.com/#!/edent/status/197967209459499008">Check the link yourself</a>.</p>

<p>It's actually a curious bug / feature of Twitter.  Each tweet you send has a unique ID. So there can only be one tweet with the ID 197967209459499008.  And that ID will always belong to @Number10press.</p>

<p>The username part in the URL is redundant. It seems that it is not used except to give information to the user / search engines.  It can be safely omitted or manipulated.</p>

<h2 id="malicious-use"><a href="https://shkspr.mobi/blog/2012/05/interesting-twitter-hashbang-bug/#malicious-use">Malicious Use?</a></h2>

<p>It strikes me that there is a slim chance of malicious use.</p>

<p>One could create a fake account - say Number1Opress (where the 0 has been replaced with a capital O).  Make it tweet something ridiculous, then share a URL which has the real Number10press in the URL.  Minor embarrassment is probably the worst consequence.</p>

<p>It's an interesting usability / security nexus.  The username is placed in the URL to make it easier or more useful for users - but it is ignored by the back end system.  As it's part of <a href="http://www.adequatelygood.com/2011/2/Thoughts-on-the-Hashbang">the hated hashbang syntax</a>, I wonder if it could be simply be rewritten if there's a mismatch?</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=5670&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2012/05/interesting-twitter-hashbang-bug/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
	</channel>
</rss>
