<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Bookmarklet of death: Domain hijacking without 0days</title>
	<atom:link href="http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/</link>
	<description>Information Security Think Tank</description>
	<pubDate>Fri, 21 Nov 2008 19:51:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Browser-Makers Seek Clickjacking Fix</title>
		<link>http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/#comment-123916</link>
		<dc:creator>Browser-Makers Seek Clickjacking Fix</dc:creator>
		<pubDate>Wed, 01 Oct 2008 19:19:27 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1142#comment-123916</guid>
		<description>..]Hansen and Grossman said on Friday that they plan to release their research and a proof-of-concept exploit but won't do so until Adobe issues a patch...]</description>
		<content:encoded><![CDATA[<p>..]Hansen and Grossman said on Friday that they plan to release their research and a proof-of-concept exploit but won&#8217;t do so until Adobe issues a patch&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giuseppe Cascone.com Bookmarklet of death: Domain hijacking without 0days</title>
		<link>http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/#comment-123571</link>
		<dc:creator>Giuseppe Cascone.com Bookmarklet of death: Domain hijacking without 0days</dc:creator>
		<pubDate>Sat, 06 Sep 2008 22:37:57 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1142#comment-123571</guid>
		<description>[...] think of this as my wish for the day! I’d love to hear your feedback if you are reading this! (click)    No [...]</description>
		<content:encoded><![CDATA[<p>[...] think of this as my wish for the day! I’d love to hear your feedback if you are reading this! (click)    No [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: takuan</title>
		<link>http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/#comment-123538</link>
		<dc:creator>takuan</dc:creator>
		<pubDate>Thu, 04 Sep 2008 10:18:12 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1142#comment-123538</guid>
		<description>-&#62;Adrian

Thanks for the reply! I get what you are saying now.

Just by the nature of the sketchy-looking URL though, it would probably make most people suspicous.
(Also, it is cumbersome to copy and paste the URL so that alone would probably deter many people)
Also, with today's browsing habits, it would be more likely that the person would open up a new tab and paste the URL in there, which would defeat the attack.
 
But, I am sure if you spam enough people with it, someone will eventually fall for it....</description>
		<content:encoded><![CDATA[<p>-&gt;Adrian</p>
<p>Thanks for the reply! I get what you are saying now.</p>
<p>Just by the nature of the sketchy-looking URL though, it would probably make most people suspicous.<br />
(Also, it is cumbersome to copy and paste the URL so that alone would probably deter many people)<br />
Also, with today&#8217;s browsing habits, it would be more likely that the person would open up a new tab and paste the URL in there, which would defeat the attack.</p>
<p>But, I am sure if you spam enough people with it, someone will eventually fall for it&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian 'pagvac' Pastor</title>
		<link>http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/#comment-123531</link>
		<dc:creator>Adrian 'pagvac' Pastor</dc:creator>
		<pubDate>Thu, 04 Sep 2008 05:59:20 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1142#comment-123531</guid>
		<description>@takuan: I was going more for the scenario in which the attacker convinces the victim to run a bookmarklet (i.e.: paste it on the address bar and press enter) while on the target site. 

Think of social networking sites where people send silly things to each others all the time. i.e.: "you gotta try this, it's so cool!"

The attacker doesn't need to break into the target site and place a bookmarklet. If he can do that, he doesn't need a bookmarklet to hijack user sessions. In fact, there are much worse things he can do anyway once he can place content on a cracked site.</description>
		<content:encoded><![CDATA[<p>@takuan: I was going more for the scenario in which the attacker convinces the victim to run a bookmarklet (i.e.: paste it on the address bar and press enter) while on the target site. </p>
<p>Think of social networking sites where people send silly things to each others all the time. i.e.: &#8220;you gotta try this, it&#8217;s so cool!&#8221;</p>
<p>The attacker doesn&#8217;t need to break into the target site and place a bookmarklet. If he can do that, he doesn&#8217;t need a bookmarklet to hijack user sessions. In fact, there are much worse things he can do anyway once he can place content on a cracked site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: takuan</title>
		<link>http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/#comment-123453</link>
		<dc:creator>takuan</dc:creator>
		<pubDate>Mon, 01 Sep 2008 01:46:19 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1142#comment-123453</guid>
		<description>I am a little skeptic on the danger of this attack. While I think this was a very informative post (i didn't even know about bookmarklets), I do not know if this really opens up a new attack form.

It seems to me that if an attacker can place a malicious bookmarklet on a webpage, they can most likely place malicious javascript as well. Hence, it is just a standard XSS issue. I wouldn't be surprise if there was some bizarre case in which an attacker couldn't put a piece of javascript that automatically loads, but was able to bypass filters to put up a malicioius javamarklet. However, I would guess that this case is very limited.

I am curious to know if anyone could cite such an example??

Also, you say that browsers should warn users when they are about to run a bookmarklet but I do not think this makes much sense. It is normal in almost every web browser not to warn users when they run javascript that gets automatically loaded. So why should they start to now inform users when they run javascript that they manually load??

Doesn't this sound a little backwards?

Anyways, I am probably missing something on these two areas. If anyone has any wisdom on these issues I would love to know.

Cheers.</description>
		<content:encoded><![CDATA[<p>I am a little skeptic on the danger of this attack. While I think this was a very informative post (i didn&#8217;t even know about bookmarklets), I do not know if this really opens up a new attack form.</p>
<p>It seems to me that if an attacker can place a malicious bookmarklet on a webpage, they can most likely place malicious javascript as well. Hence, it is just a standard XSS issue. I wouldn&#8217;t be surprise if there was some bizarre case in which an attacker couldn&#8217;t put a piece of javascript that automatically loads, but was able to bypass filters to put up a malicioius javamarklet. However, I would guess that this case is very limited.</p>
<p>I am curious to know if anyone could cite such an example??</p>
<p>Also, you say that browsers should warn users when they are about to run a bookmarklet but I do not think this makes much sense. It is normal in almost every web browser not to warn users when they run javascript that gets automatically loaded. So why should they start to now inform users when they run javascript that they manually load??</p>
<p>Doesn&#8217;t this sound a little backwards?</p>
<p>Anyways, I am probably missing something on these two areas. If anyone has any wisdom on these issues I would love to know.</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian 'pagvac' Pastor</title>
		<link>http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/#comment-123445</link>
		<dc:creator>Adrian 'pagvac' Pastor</dc:creator>
		<pubDate>Sun, 31 Aug 2008 12:33:07 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1142#comment-123445</guid>
		<description>Hey guys, very good feedback indeed. My comments follow.

@Ross: yes, there are many other scenarios in which a bookmarklet can be used to hijack a site. I just provided one example so that our readers get an idea of how bookmarklets can be used to compromise data. Nevertheless, the list of scenarios you provided are definitely quite neat!

@kuza55: you're probably right. But there are some advantages over tricking a user to run a bookmarklet on the target site. For instance, it WON'T be picked by by content filters, AVs, etc ... A drive-by download attack will be picked up by an AV provided the malware's signature already exists on the AV's DB.

@atom: I did mention the "annoyance" factor of showing warnings, that's why I proposed - as an alternative - to show the warning only the *first time* a given bookmarklet is executed. This is trivial to implement by browsers. Simply generate a unique hash value for each bookmarklet, so that if the bookmarklet's hash is already in the browser's database, NO more warnings are shown again.

@pdp: yeah, somehow who writes each post on GC is not clear enough to our readers :)


Guys, the point here is that many people are not aware of the *security* implications of running a bookmarklet. And yes, it's true that even when browsers return warnings many users still ignore them. Still, I want a warning for bookmarklets. Call me silly, but I think it makes sense.

Just like I still want FF to show a warning when scripting code runs within *local* context. i.e.: opening an HTML file that has been saved to the user's desktop. In this sense IE beats FF. Lots of people don't realize that if you open an HTML file locally which has JavaScript in it, any file can be read from the local system (i.e.: using XMLHttpRequest) among other evil things.</description>
		<content:encoded><![CDATA[<p>Hey guys, very good feedback indeed. My comments follow.</p>
<p>@Ross: yes, there are many other scenarios in which a bookmarklet can be used to hijack a site. I just provided one example so that our readers get an idea of how bookmarklets can be used to compromise data. Nevertheless, the list of scenarios you provided are definitely quite neat!</p>
<p>@kuza55: you&#8217;re probably right. But there are some advantages over tricking a user to run a bookmarklet on the target site. For instance, it WON&#8217;T be picked by by content filters, AVs, etc &#8230; A drive-by download attack will be picked up by an AV provided the malware&#8217;s signature already exists on the AV&#8217;s DB.</p>
<p>@atom: I did mention the &#8220;annoyance&#8221; factor of showing warnings, that&#8217;s why I proposed - as an alternative - to show the warning only the *first time* a given bookmarklet is executed. This is trivial to implement by browsers. Simply generate a unique hash value for each bookmarklet, so that if the bookmarklet&#8217;s hash is already in the browser&#8217;s database, NO more warnings are shown again.</p>
<p>@pdp: yeah, somehow who writes each post on GC is not clear enough to our readers :)</p>
<p>Guys, the point here is that many people are not aware of the *security* implications of running a bookmarklet. And yes, it&#8217;s true that even when browsers return warnings many users still ignore them. Still, I want a warning for bookmarklets. Call me silly, but I think it makes sense.</p>
<p>Just like I still want FF to show a warning when scripting code runs within *local* context. i.e.: opening an HTML file that has been saved to the user&#8217;s desktop. In this sense IE beats FF. Lots of people don&#8217;t realize that if you open an HTML file locally which has JavaScript in it, any file can be read from the local system (i.e.: using XMLHttpRequest) among other evil things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Divide</title>
		<link>http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/#comment-123440</link>
		<dc:creator>Divide</dc:creator>
		<pubDate>Sun, 31 Aug 2008 07:46:05 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1142#comment-123440</guid>
		<description>Well, in Konqueror (3) bookmarklets don't even work from ordinary bookmarks -- there is a separate menu ('Web tools' or sth) for them. Although I'm not sure if it's because of technical or security issues (no notice of any kind makes me believe the former, though).</description>
		<content:encoded><![CDATA[<p>Well, in Konqueror (3) bookmarklets don&#8217;t even work from ordinary bookmarks &#8212; there is a separate menu (&#8217;Web tools&#8217; or sth) for them. Although I&#8217;m not sure if it&#8217;s because of technical or security issues (no notice of any kind makes me believe the former, though).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdp</title>
		<link>http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/#comment-123439</link>
		<dc:creator>pdp</dc:creator>
		<pubDate>Sun, 31 Aug 2008 06:50:48 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1142#comment-123439</guid>
		<description>Ross, this is not me, it is Adrian. :) We will improve this site feature soon. It seems that the author's name is a bit obscured right now. Anyway, good points.

kuza55, I totally agree. The web is broken beyond reason. I am trying to get together a bunch of guys to come up with a sensible enough security solution for Firefox. You are more then welcome to join. On the bookmarklets thing,... well I think that there are people who are using them especially for social bookmarking purposes. Bookmarklets are not mainstream but they have the potentials to become such.</description>
		<content:encoded><![CDATA[<p>Ross, this is not me, it is Adrian. :) We will improve this site feature soon. It seems that the author&#8217;s name is a bit obscured right now. Anyway, good points.</p>
<p>kuza55, I totally agree. The web is broken beyond reason. I am trying to get together a bunch of guys to come up with a sensible enough security solution for Firefox. You are more then welcome to join. On the bookmarklets thing,&#8230; well I think that there are people who are using them especially for social bookmarking purposes. Bookmarklets are not mainstream but they have the potentials to become such.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kuza55</title>
		<link>http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/#comment-123438</link>
		<dc:creator>kuza55</dc:creator>
		<pubDate>Sun, 31 Aug 2008 04:31:37 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1142#comment-123438</guid>
		<description>I seriously think browser vendors have much more pressing concerns than users executing trojaned bookmarklets.

How many people even use bookmarklets? My guess is it's a lot fewer people than the amount that use sites with dodgy SSL or download and run executables.</description>
		<content:encoded><![CDATA[<p>I seriously think browser vendors have much more pressing concerns than users executing trojaned bookmarklets.</p>
<p>How many people even use bookmarklets? My guess is it&#8217;s a lot fewer people than the amount that use sites with dodgy SSL or download and run executables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: atom</title>
		<link>http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/#comment-123432</link>
		<dc:creator>atom</dc:creator>
		<pubDate>Sat, 30 Aug 2008 19:16:01 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1142#comment-123432</guid>
		<description>"Why in the world do browsers NOT show a warning before running a bookmarklet?"

I would imagine it is for convenience's sake.  I would be annoyed if I had to confirm that I wanted to run the bookmarklets that I had written myself every time I clicked them.</description>
		<content:encoded><![CDATA[<p>&#8220;Why in the world do browsers NOT show a warning before running a bookmarklet?&#8221;</p>
<p>I would imagine it is for convenience&#8217;s sake.  I would be annoyed if I had to confirm that I wanted to run the bookmarklets that I had written myself every time I clicked them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross Snider</title>
		<link>http://www.gnucitizen.org/blog/bookmark-of-death-domain-hijacking-without-0days/#comment-123431</link>
		<dc:creator>Ross Snider</dc:creator>
		<pubDate>Sat, 30 Aug 2008 18:47:33 +0000</pubDate>
		<guid isPermaLink="false">https://www.gnucitizen.org/?p=1142#comment-123431</guid>
		<description>PDP, of course I see how this allows you to run script in context of another site, and I agree it would be possible to exploit a users trust relationship with a legitimate vendor. However, this doesn't seem like you are leveraging the situation to its full potential.

There are 2 situations here:
* Malicious user breaks into vulnerable.site.foo and backdoors their well-known bookmarklet
* Malicious user social engineers victim to install and run bookmarklet (on X site) "You want to see something cool?!"
* Malicious user puts bookmarkets that aren't labeled improperly somewhere like a library. The javascript:evilcode bookmarklet is labeled "Email" at the public computer for example. He hopes they click the bookmarklet at all and at the right time.

In the first case, you can probably do a lot more abusing the trust relationship a user has with an owned domain than backdooring a bookmarklet. Throw up an ActiveX file or have them download an EXE. Still no 0days needed.

In the second case, most users are probably about as likely to run an executable you pass them or type something into a shell as they are to run a bookmarklet. "Want to see something cool? Open a shell and type 'obfuscated code here + something cool'" "Hey, want to see something cool? Use this web proxy to log in instead!" "Hey want to see something cool? Download and run this!"

Third case you could easily install something a lot more malicious on that public computer, no 0days needed. Replace the browser link on the public computer with a link to your own backdoored one (which trusts you make believe CA and logs all credentials), for example.

In this case it is just exploitation of a users trust of a given application or party, but exploiting a bookmarklet exposes your malicious intent right there in plaintext (I'm not saying most people would know).

Why don't browser makers warn you on bookmarklets? Well, several reasons, but you seem to know yourself that users would just click through so they can see the cool effect anyway (http://www.gnucitizen.org/blog/hacking-without-0days-drive-by-java/). Users don't even stop at invalid SSL certs.</description>
		<content:encoded><![CDATA[<p>PDP, of course I see how this allows you to run script in context of another site, and I agree it would be possible to exploit a users trust relationship with a legitimate vendor. However, this doesn&#8217;t seem like you are leveraging the situation to its full potential.</p>
<p>There are 2 situations here:<br />
* Malicious user breaks into vulnerable.site.foo and backdoors their well-known bookmarklet<br />
* Malicious user social engineers victim to install and run bookmarklet (on X site) &#8220;You want to see something cool?!&#8221;<br />
* Malicious user puts bookmarkets that aren&#8217;t labeled improperly somewhere like a library. The javascript:evilcode bookmarklet is labeled &#8220;Email&#8221; at the public computer for example. He hopes they click the bookmarklet at all and at the right time.</p>
<p>In the first case, you can probably do a lot more abusing the trust relationship a user has with an owned domain than backdooring a bookmarklet. Throw up an ActiveX file or have them download an EXE. Still no 0days needed.</p>
<p>In the second case, most users are probably about as likely to run an executable you pass them or type something into a shell as they are to run a bookmarklet. &#8220;Want to see something cool? Open a shell and type &#8216;obfuscated code here + something cool&#8217;&#8221; &#8220;Hey, want to see something cool? Use this web proxy to log in instead!&#8221; &#8220;Hey want to see something cool? Download and run this!&#8221;</p>
<p>Third case you could easily install something a lot more malicious on that public computer, no 0days needed. Replace the browser link on the public computer with a link to your own backdoored one (which trusts you make believe CA and logs all credentials), for example.</p>
<p>In this case it is just exploitation of a users trust of a given application or party, but exploiting a bookmarklet exposes your malicious intent right there in plaintext (I&#8217;m not saying most people would know).</p>
<p>Why don&#8217;t browser makers warn you on bookmarklets? Well, several reasons, but you seem to know yourself that users would just click through so they can see the cool effect anyway (http://www.gnucitizen.org/blog/hacking-without-0days-drive-by-java/). Users don&#8217;t even stop at invalid SSL certs.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
