<?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>Programming Ideas, Logics, Tips and Tricks &#187; hack</title>
	<atom:link href="http://www.sajithmr.me/tag/hack/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 15:44:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Session/Cookie alone does not secure your web application &#8211; CSRF</title>
		<link>http://www.sajithmr.me/csrf</link>
		<comments>http://www.sajithmr.me/csrf#comments</comments>
		<pubDate>Thu, 12 Nov 2009 19:01:17 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[csrf]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[safety]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[web application]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=500</guid>
		<description><![CDATA[Guess what will happen if you add an image like below in your html page: &#60;img src=&#8221;http://mail.google.com/mail/?logout&#38;hl=en&#8221;  /&#62; It does not appear in page, but your google account in another window or another tab will get logoff. Now an external website could logout you from your gmail or orkut. IF you coded your website to [...]]]></description>
			<content:encoded><![CDATA[<p>Guess what will happen if you add an image like below in your html page:</p>
<p>&lt;img src=&#8221;http://mail.google.com/mail/?logout&amp;hl=en&#8221;  /&gt;</p>
<p>It does not appear in page, but your google account in another window or another tab will get logoff. Now an external website could logout you from your gmail or orkut.</p>
<p><img class="alignnone size-full wp-image-503" src="http://www.sajithmr.me/wp-content/uploads/2009/11/Gmail-Login-Gets-CSRF-Protection-2.jpg" alt="" width="290" height="245" /></p>
<p>IF you coded your website to delete a photo or object from the website, like this: www.domainname.com/photos/delete?id=221, you may think , since you are checking user authentication at server side, no one else can delete your file. But what if you are logged in one tab and in the second tab, you are loading another website (of hacker or attacker), he can place lots of hidden images with src = www.domainname.com/photos/delete?id=22 ( he can try with ids from 0 to 1000 or 10,000, and anyone of them may be your object)</p>
<p>Here the authentication is okay , because the cookies and session is already set in another tab, and it affects (update or delete) your content.</p>
<p>Those who think , I use POST method , so it is safe. Sorry, you are wrong. A javascript can also simulate a post method, and by using this, an external website can update your form (For example they can run a form submission for changing the email which you registered with and later they can reset password to hack your account)</p>
<p>It won&#8217;t happens if you use captcha. But for all forms it is very hard to use CAPTCHA everywhere. You can solve this attack using additional parameter (some string combination which is generated randomly) along with GET url or POST form submission.</p>
<p>For example, check the url to delete a mail in gmail.</p>
<p><span style="color: #0000ff;">http://mail.google.com/mail/?ui=2&amp;ik=42e598c952&amp;at=xn3j2ufyx273muje67ot1fsxsnbmnl&amp;<br />
view=up&amp;act=tr&amp;rt=j&amp;search=inbox</span></p>
<p>There is some extra string alone with useful information as parameter. So an external application cannot predict the exact url to delete a particular mail, so img with src= url fails here.</p>
<p>Same thing is also needed in POST method. Add one hidden field for random string and check the string before updating into database from Server.</p>
<p>This problem is called <a href="http://en.wikipedia.org/wiki/Cross-site_request_forgery" target="_blank">CSRF</a> &#8211; Cross Site Request Forgery</p>
<p>Thanks<br />
Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/csrf/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Save your passwords and secured files using TrueCrypt</title>
		<link>http://www.sajithmr.me/save-your-passwords-and-secured-files-using-truecrypt</link>
		<comments>http://www.sajithmr.me/save-your-passwords-and-secured-files-using-truecrypt#comments</comments>
		<pubDate>Thu, 19 Mar 2009 21:35:14 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[google document]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[save]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[truecrypt]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=393</guid>
		<description><![CDATA[Hello programmer, If you are a programmer, you  might experience on saving your different ftp , email , website credintals (usernames and passwords) . Someone uses google documents for saving passwords. Some use email itself as a password storing medium. To be more secured, you have to save your passwords in you local machine rather [...]]]></description>
			<content:encoded><![CDATA[<p>Hello programmer,</p>
<p>If you are a programmer, you  might experience on saving your different ftp , email , website credintals (usernames and passwords) . Someone uses google documents for saving passwords. Some use email itself as a password storing medium. To be more secured, you have to save your passwords in you local machine rather than putting them into any other 3rd party online medium.</p>
<p><a href="http://www.sajithmr.com/wp-content/uploads/2009/03/children.jpg"><img class="alignnone size-full wp-image-394" title="children" src="http://www.sajithmr.com/wp-content/uploads/2009/03/children.jpg" alt="" width="423" height="284" /></a></p>
<p><a title="TrueCrypt" href="http://www.truecrypt.org/" target="_blank">Truecrypt</a> is an open source software for saving secured data (Folders and files). It is available for most of the operating systems (Windows, Linux, Mac etc). The advantage of TrueCrypt is, it creates a seperate partition or storage device as a normal USB memory stick. When you mount the partition it asks for a secured password. You can save your personal and secret files inside this partition. You can creates more than on partition using this software. So you can seperate your data files if you needed.</p>
<p>Here is the website url: <a href="http://www.truecrypt.org/">http://www.truecrypt.org/</a></p>
<p>It also provides two level security. It adds a hidden file inside another secured file, so that when an adversary forces you to reveal your password, or forces you to open the secured folder, there is no chance for them to view the hidden encrypted file.</p>
<p>For more details visit:</p>
<p><a href="http://www.truecrypt.org/hiddenvolume.php" target="_blank">http://www.truecrypt.org/hiddenvolume.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/save-your-passwords-and-secured-files-using-truecrypt/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Find who is invisible in gmail chat (Gtalk)</title>
		<link>http://www.sajithmr.me/find-who-is-invisible-in-gmail-chat-gtalk</link>
		<comments>http://www.sajithmr.me/find-who-is-invisible-in-gmail-chat-gtalk#comments</comments>
		<pubDate>Tue, 04 Nov 2008 10:47:04 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[webworld]]></category>
		<category><![CDATA[chat]]></category>
		<category><![CDATA[chatting]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[gtalk]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[invisible]]></category>
		<category><![CDATA[off the record]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=347</guid>
		<description><![CDATA[Many people already blogged about this article. I made the same experiment. It works. If you want to find say xyz@gmail.com is invisible or not. Open your gtalk app and type this email address in top search textbox Click the profile, it opens in new window as usual Click on the down arrow button in [...]]]></description>
			<content:encoded><![CDATA[<p>Many people already blogged about this article. I made the same experiment. It works.<br />
If you want to find say xyz@gmail.com is invisible or not.<br />
Open your gtalk app and type this email address in top search textbox</p>
<p>Click the profile, it opens in new window as usual</p>
<p>Click on the down arrow button in the top right corner of the window, and you can see <strong>Go off the record</strong> link there.</p>
<p>And type any chat, say &#8220;hi&#8221;</p>
<h3>You will get a red text showing the<strong><em> &#8220;person is offline , can&#8217;t receive the message right now</em></strong> &#8221; implies the  <span style="color: #800000;"><strong>person is offline</strong></span></h3>
<p>If this message does not appear, it means the <span style="text-decoration: underline;"><span style="color: #339966;"><strong>user is invisible</strong></span></span></p>
<p>To know more about gmail and gmail chat visit my post series</p>
<p><a title="Gmail Architecture" href="http://www.sajithmr.me/series/gmail-architecture/">http://www.sajithmr.me/series/gmail-architecture/</a></p>
<p>Regards</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/find-who-is-invisible-in-gmail-chat-gtalk/feed</wfw:commentRss>
		<slash:comments>76</slash:comments>
		</item>
	</channel>
</rss>

