<?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>Ahmed El Gamil &#187; hacks</title>
	<atom:link href="http://www.blog.manhag.org/tag/hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.manhag.org</link>
	<description></description>
	<lastBuildDate>Thu, 02 Sep 2010 10:54:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<image>
<link>http://www.blog.manhag.org</link>
<url>http://www.blog.manhag.org/wp-content/mbp-favicon/favicon.ico</url>
<title>Ahmed El Gamil</title>
</image>
	<atom:link rel='hub' href='http://www.blog.manhag.org/?pushpress=hub'/>
		<item>
		<title>Pidgin may eat your password !</title>
		<link>http://www.blog.manhag.org/2008/12/pidgin-may-eat-your-password/</link>
		<comments>http://www.blog.manhag.org/2008/12/pidgin-may-eat-your-password/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 18:41:09 +0000</pubDate>
		<dc:creator>Ahmed El Gamil</dc:creator>
				<category><![CDATA[Hacking/Security]]></category>
		<category><![CDATA[UNIX/Linux]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[purple]]></category>

		<guid isPermaLink="false">http://www.blog.manhag.org/?p=275</guid>
		<description><![CDATA[الحمد لله و كفى و صلاة و سلاماً على عباده الذين اصطفى EDIT: Added the solution at the end of the post So i have been navigating through my home directory and i found a hidden directory (which starts with a dot .) and i found a directory called .purple..Hmm, i don&#8217;t remember installing an [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">الحمد لله و كفى و صلاة و سلاماً على عباده الذين اصطفى</p>
<p style="text-align: center;"><img class="aligncenter size-thumbnail wp-image-277" title="logopidgin" src="http://www.blog.manhag.org/wp-content/uploads/2008/12/logopidgin-107x150.png" alt="logopidgin" width="86" height="120" /></p>
<p style="text-align: left;"><strong>EDIT:</strong> <span style="text-decoration: underline;">Added the solution at the end of the post</span></p>
<p style="text-align: left;">So i have been navigating through my home directory and i found a hidden directory (which starts with a dot .) and i found a directory called <strong>.purple</strong>..Hmm, i don&#8217;t remember installing an application called purple.. <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_surprised.gif' alt=':-o' class='wp-smiley' /> </p>
<p style="text-align: left;">So after some searching i found that the <strong>.purple</strong> directory contains some files related to <a href="http://www.pidgin.im/" target="_blank">pidgin</a> The universal Instant messaging client..okay this sounds reasonable now..the <span style="color: #800080;">pidgin color</span> is purple  <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </p>
<p style="text-align: left;">okay..before you read any further in this topic please open a terminal in your Linux distro and execute the following command:</p>
<blockquote>
<p style="text-align: left;">cat ~/.purple/acc* | grep &#8220;ord&gt;&#8221;</p>
</blockquote>
<p style="text-align: left;">YES, the output you have seen from this command is REAL !!  <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  ..It is your IM passwords <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> <span id="more-275"></span></p>
<p style="text-align: left;">I used some bash tricks to hide what the command really do..but here is what it will really do</p>
<blockquote>
<p style="text-align: left;">cat ~/.purple/accounts.xml | grep password</p>
</blockquote>
<p style="text-align: left;">and if you are using window$, you will find it in C:Documents and Settings%USERNAME%Application Data.purpleaccounts.xml</p>
<p style="text-align: left;">What are we having here ? , well pidgin is not saving the passwords in encrypted format, it is saving them in clear text !</p>
<p style="text-align: left;">So beware.. don&#8217;t save your password on pidgin when using a shared machine with someone else  <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<p style="text-align: center;"><strong>Solution</strong></p>
<p style="text-align: left;">First of all, lets see why did the pidgin team decided not to encrypt the passwords, actually they talked about lots of issue, but to summarize, Here is a quote from their <a href="http://developer.pidgin.im/wiki/PlainTextPasswords" target="_blank">wiki</a>:</p>
<blockquote>
<p style="text-align: left;">Instant messaging is not very secure, and it&#8217;s kind of pointless to spend a lot of time adding protections onto the fairly strong file protections of UNIX (our native platform) when the protocols themselves aren&#8217;t all that secure</p>
</blockquote>
<p style="text-align: left;"><span style="text-decoration: underline;">Edit</span>: Kamasheto added the following quote in the comments, thanks kama <img src='http://www.blog.manhag.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: left;">
<blockquote cite="http://developer.pidgin.im/wiki/PlainTextPasswords"><p>“But other programs don’t store my password in plain text!”</p>
<p>That’s true. But few of them store it in a way that’s any safer. A Google search for im passwords shows a bunch of hits for getting the passwords out of other IM clients just as easily as Pidgin.</p></blockquote>
<p style="text-align: left;">so they advice you to use key rings that comes with your desktop environment (GNOME and KDE have key rings), there is a project discussing this issue <a href="http://developer.pidgin.im/wiki/GSoC2008/MasterPassword" target="_blank">here</a></p>
<p style="text-align: left;">Another solution is use a master password mechanism, like that one implemented in firefox, you can use this feature in pidgin by install the <a href="http://dooglus.rincevent.net/gaim/" target="_blank">Password Encryption plugin</a></p>
<p style="text-align: left;">Hope this tips will solve the problem isA</p>
<p style="text-align: center;">سبحانك اللهم و بحمدك..أشهد ان لا إله إلا أنت..أستغفرك و أتوب إليك</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.manhag.org/2008/12/pidgin-may-eat-your-password/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
