<?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>The symphony of information technology &#187; web security</title>
	<atom:link href="http://mhf.ir/tag/web-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://mhf.ir</link>
	<description>Personal blog of Muhammad Hussein Fattahizadeh</description>
	<lastBuildDate>Sat, 27 Aug 2011 15:03:11 +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>Security tip in network listening hack technique</title>
		<link>http://mhf.ir/web/security-tip-in-network-listening-hack-technique/</link>
		<comments>http://mhf.ir/web/security-tip-in-network-listening-hack-technique/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 21:43:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[crc32]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[hash]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[md5]]></category>
		<category><![CDATA[network listening]]></category>
		<category><![CDATA[sha1]]></category>
		<category><![CDATA[web security]]></category>

		<guid isPermaLink="false">http://www.mhf.ir/?p=3</guid>
		<description><![CDATA[Did you ever thing the password that you submit into a page without SSL can be read from network listening hack technique? It is a simple way to prevent this security issue. In most of Content Management System, the user&#8217;s password store in database with hash algorithm. Just your server reduce one operate in Hashing [...]]]></description>
			<content:encoded><![CDATA[<p>Did you ever thing the password that you submit into a page without SSL can be read from network listening hack technique?</p>
<div style="text-align: center;"><img title="Network listening hack technique" src="http://www.mhf.ir/wp-content/uploads/2008/12/network-listening.jpg" alt="Network listening hack technique" /></div>
<p>It is a simple way to prevent this security issue.<br />
<span id="more-13"></span><br />
In most of Content Management System, the user&#8217;s password store in database with hash algorithm. Just your server reduce one operate in Hashing algorithm if you have more than one.<br />
You must do a function with JavaScript and hash the input element with type of password. The value of this element before sending must be hashed with JavaScript.</p>
<p>See the header of normal  login :</p>
<pre class="brush:plain;">
Content-Type: application/x-www-form-urlencoded
Content-Length: 54
username=user&amp;password=MyPASS&amp;normallogin=Normal+Login
</pre>
<p>The hacker can read your data from header of your request.<br />
<strong style="color: red;">password=MyPASS</strong></p>
<h6>More security with JavaScript</h6>
<p>With this method you can create the secure form for login.</p>
<pre class="brush:plain;">
Content-Type: application/x-www-form-urlencoded
Content-Length: 80
username=user&amp;password=f4c0724be9899724b6d7549a71144441&amp;securelogin=Secure+Login</pre>
<p><strong style="color: green;">password=f4c0724be9899724b6d7549a71144441</strong></p>
<h6>Use this method</h6>
<p>In my idea when you hashed the password before the submit that the user privacy have been increased.<br />
<a href="http://demo.mhf.ir/secure-login-with-hash/">See online demo</a><br />
First we need a hash algorith that use in your password in server. For example we use MD5 in this example. Your password store in server with SHA1 hash.<br />
In normal mode you use this method for checking sum for inputting password.</p>
<pre class="brush:php;">
$password = sha1('myprivatevalue' . md5($_POST["password"]));
</pre>
<p>But when do hash in password value in client side reduce one operating:</p>
<pre class="brush:php;">
// we do not use md5 for this because this method applied in client side with JavaScript
$password = sha1('myprivatevalue' . $_POST["password"]);
</pre>
<p>It&#8217;s a simple way to protect real string password but hacker can still hack your login form with inject the request (Thank to <strong>Ben hockey</strong> to remember this issue.).<br />
You must use some way to prevent the hackers to inject request to your server.</p>
]]></content:encoded>
			<wfw:commentRss>http://mhf.ir/web/security-tip-in-network-listening-hack-technique/feed/</wfw:commentRss>
		<slash:comments>219</slash:comments>
		</item>
	</channel>
</rss>

