<?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>evil genius &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/evil-genius/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Sun, 07 Mar 2010 09:59:03 +0000</lastBuildDate>
	<language>en-GB</language>
	<copyright>© Terence Eden. 🄯 CC BY-SA. See https://shkspr.mobi/blog/copyright-and-copyleft/</copyright>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>evil genius &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[The Perfect Twitter Spam Attack?]]></title>
		<link>https://shkspr.mobi/blog/2010/03/the-perfect-twitter-spam-attack/</link>
					<comments>https://shkspr.mobi/blog/2010/03/the-perfect-twitter-spam-attack/#comments</comments>
				<dc:creator><![CDATA[Terence Eden]]></dc:creator>
		<pubDate>Sun, 07 Mar 2010 09:59:03 +0000</pubDate>
		<category><![CDATA[evil genius]]></category><category><![CDATA[OAuth]]></category><category><![CDATA[passwords]]></category><category><![CDATA[security]]></category><category><![CDATA[twitter]]></category><category><![CDATA[usability]]></category>		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=1796</guid>

					<description><![CDATA[This morning, when I logged on to Twitter, I saw a user who I didn&#039;t recognise tweeting away in my timeline.  I wracked my brains thinking about how they could have gotten in there before I realised it was a long-dormant friend who had changed their name and avatar.  But, in thinking about how a spammer could infiltrate one&#039;s timeline, I think I came up with a fairly bullet-proof method to spam…]]></description>
										<content:encoded>&lt;p&gt;This morning, when I logged on to Twitter, I saw a user who I didn't recognise tweeting away in my timeline.&lt;/p&gt;

&lt;p&gt;I wracked my brains thinking about how they could have gotten in there before I realised it was a long-dormant friend who had changed their name and avatar.&lt;/p&gt;

&lt;p&gt;But, in thinking about how a spammer could infiltrate one's timeline, I think I came up with a fairly bullet-proof method to spam Twitter users.&lt;/p&gt;

&lt;p&gt;I present this as an exercise in devious thinking - and also to show how our assumptions about security can play against us. Remember, hacking and impersonation are likely to be illegal in your jurisdiction.&amp;nbsp; This information is designed to help you understand how security weaknesses can occur.&lt;/p&gt;

&lt;h2 id="being-evil"&gt;&lt;a href="https://shkspr.mobi/blog/2010/03/the-perfect-twitter-spam-attack/#being-evil"&gt;Being Evil&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;Imagine you are a nasty, evil Twitter spammer.  Your own mother wouldn't spit on you if you were on fire - that's how mean you are.  Here's what you do.&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;Obtain a user's password.&amp;nbsp; Admittedly, this is the hardest part of the process. You might use a dictionary attack, use the same password they use to log in to another site, or somehow steal it.&lt;/li&gt;
    &lt;li&gt;Log on to Twitter.&lt;/li&gt;
    &lt;li&gt;Go to "Connections" and see which services they have connected to using OAuth.&amp;nbsp; For the purposes of this experiment, let's assume they use Example.com.&lt;/li&gt;
    &lt;li&gt;Go to Example.com and OAuth yourself with Twitter using your mark's credentials.&lt;/li&gt;
    &lt;li&gt;Here's where the ordinary spammer falls down.&amp;nbsp; The ordinary spammer will start sending out messages from the mark's account.&amp;nbsp; That's &lt;strong&gt;not&lt;/strong&gt; the aim of this weakness.&lt;/li&gt;
    &lt;li&gt;From the mark's account, through Example.com, make your victim follow one of your spam accounts.&amp;nbsp; An account which exists solely to show adverts to your victim.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Your victim now sees your adverts for pills, poker and porn in their timeline.&amp;nbsp; With any luck, they'll just assume that one of their true friends is promoting your illicit wares.&lt;/p&gt;

&lt;h2 id="counter-attack"&gt;&lt;a href="https://shkspr.mobi/blog/2010/03/the-perfect-twitter-spam-attack/#counter-attack"&gt;Counter Attack&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;Most victims will assume that they accidentally followed your spam account - or that one of their friends has been hacked.&lt;/p&gt;

&lt;p&gt;Worst case scenario, they unfollow your spam account.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;So you just make them follow you again!&lt;/em&gt;&lt;/strong&gt; Remember, you are &lt;strong&gt;still&lt;/strong&gt; OAuth'd to Example.com. You can make them follow as many of your spam accounts as you think you can get away with.&lt;/p&gt;

&lt;p&gt;At this point, the intelligent victim will think that their account may be compromised and change their password.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;It doesn't matter&lt;/em&gt;!&lt;/strong&gt; Because you have used OAuth, password changes &lt;em&gt;don't affect you&lt;/em&gt;.&amp;nbsp; You can continue make them follow as many of your spam accounts as you think you can get away with.&lt;/p&gt;

&lt;p&gt;At this point, the &lt;em&gt;really&lt;/em&gt; intelligent victim will go through their OAuth connections to look for something suspicious.&amp;nbsp; They won't find it.&amp;nbsp; Remember steps 3 and 4?&amp;nbsp; &lt;strong&gt;You are OAuth'd to a service that your victim trusts&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Because of the way Twitter displays OAuth information, there's no way for a victim to know when a service was last authorised.&lt;/p&gt;

&lt;p&gt;&lt;img class="size-full wp-image-1798" title="Twitter OAuth Connections" src="https://shkspr.mobi/blog/wp-content/uploads/2010/03/Twitter-OAuth-Connections.png" alt="Twitter OAuth Connections" width="450" height="501"&gt;&lt;/p&gt;

&lt;p&gt;There is no information other than the &lt;em&gt;first time&lt;/em&gt; the OAuth was set up.&amp;nbsp; No last accessed date, no IP addresses, nothing useful.&lt;/p&gt;

&lt;p&gt;When following an account, the victim gets no notification of what has happened, when it has happened or how it has happened.&amp;nbsp; There is no way of them knowing which of their OAuth'd connections have been compromised, nor when it happened.&lt;/p&gt;

&lt;p&gt;Their only safe option is to revoke &lt;em&gt;every single &lt;/em&gt;OAuth connection.&amp;nbsp; Then reauthorise.&amp;nbsp; A time consuming and annoying prospect.&lt;/p&gt;

&lt;h2 id="conclusion"&gt;&lt;a href="https://shkspr.mobi/blog/2010/03/the-perfect-twitter-spam-attack/#conclusion"&gt;Conclusion&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;I hope I've demonstrated two things.&lt;/p&gt;

&lt;p&gt;Firstly, there's more to spam then just sending out messages.&amp;nbsp; Forcing someone to read a message is just as annoying.&lt;/p&gt;

&lt;p&gt;Secondly, our understanding of security and usability haven't quite caught up with the new tools which are available to us.&amp;nbsp; OAuth is still better than giving your password to an untrusted site - but without essential usability changes, a compromised account is a lot more dangerous than the user would suspect.&lt;/p&gt;

&lt;p&gt;This "attack" still relies on a victim having their original password compromised.&amp;nbsp; That's not a trivial matter.&amp;nbsp; But security is like sexual health - it only takes one little accident...&lt;/p&gt;
&lt;img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=1796&amp;amp;HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager"&gt;</content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2010/03/the-perfect-twitter-spam-attack/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
