<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Secure Coding Blog</title>
	
	<link>http://securecoding.in</link>
	<description>Blog about Secure Coding and Secure Development</description>
	<lastBuildDate>Wed, 02 May 2012 04:01:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SecureCoding" /><feedburner:info uri="securecoding" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/</creativeCommons:license><item>
		<title>Fixing Unvalidated Redirects and Forwards in ASP.NET</title>
		<link>http://feedproxy.google.com/~r/SecureCoding/~3/vUJSccmz4sY/</link>
		<comments>http://securecoding.in/fixing-unvalidated-redirects-and-forwards-in-asp-net/#comments</comments>
		<pubDate>Wed, 02 May 2012 04:01:26 +0000</pubDate>
		<dc:creator>Abhilash</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securecoding.in/?p=328</guid>
		<description>The following code will allow you prevent unvalidated redirects and Fowards in ASP.NET&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SecureCoding?a=vUJSccmz4sY:PzIw-_7NKh0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SecureCoding?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SecureCoding/~4/vUJSccmz4sY" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://securecoding.in/fixing-unvalidated-redirects-and-forwards-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securecoding.in/fixing-unvalidated-redirects-and-forwards-in-asp-net/</feedburner:origLink></item>
		<item>
		<title>How to Fix Unvalidated Redirects and Forwards</title>
		<link>http://feedproxy.google.com/~r/SecureCoding/~3/ltzm3N2EpAg/</link>
		<comments>http://securecoding.in/how-to-fix-unvalidated-redirects-and-forwards/#comments</comments>
		<pubDate>Wed, 02 May 2012 03:59:27 +0000</pubDate>
		<dc:creator>Abhilash</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securecoding.in/?p=326</guid>
		<description>An unvalidated redirect allows an attacker to exploit the trust a user has in a particular domain by using it as a stepping stone to another arbitrary, likely malicious site. An unvalidated forward allows an attacker’s request to be forwarded past security checks, allowing unauthorized function or data access. Fixing Unvalidated Redirects and Forwards in ASP.NET&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SecureCoding?a=ltzm3N2EpAg:5a-J53SJqC0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SecureCoding?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SecureCoding/~4/ltzm3N2EpAg" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://securecoding.in/how-to-fix-unvalidated-redirects-and-forwards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securecoding.in/how-to-fix-unvalidated-redirects-and-forwards/</feedburner:origLink></item>
		<item>
		<title>Fixing Insecure Cryptographic Storage in ASP.NET</title>
		<link>http://feedproxy.google.com/~r/SecureCoding/~3/FSYrmLfn0LQ/</link>
		<comments>http://securecoding.in/fixing-insecure-cryptographic-storage-in-asp-net/#comments</comments>
		<pubDate>Wed, 02 May 2012 03:48:08 +0000</pubDate>
		<dc:creator>Abhilash</dc:creator>
				<category><![CDATA[Sub-Post]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securecoding.in/?p=314</guid>
		<description>As seen below using the following code we can encrypt sensitive values such as passwords in ASP.NET&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SecureCoding?a=FSYrmLfn0LQ:-Cl4TRS8ZeQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SecureCoding?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SecureCoding/~4/FSYrmLfn0LQ" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://securecoding.in/fixing-insecure-cryptographic-storage-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securecoding.in/fixing-insecure-cryptographic-storage-in-asp-net/</feedburner:origLink></item>
		<item>
		<title>Fixing Cross-site Scripting in ASP.NET</title>
		<link>http://feedproxy.google.com/~r/SecureCoding/~3/NDX5XTLAKtE/</link>
		<comments>http://securecoding.in/fixing-cross-site-scripting-in-asp-net/#comments</comments>
		<pubDate>Wed, 02 May 2012 03:36:11 +0000</pubDate>
		<dc:creator>Abhilash</dc:creator>
				<category><![CDATA[Sub-Post]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securecoding.in/?p=308</guid>
		<description>The HtmlEncode() method can be used when displaying text directly inside HTML tags using block:&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SecureCoding?a=NDX5XTLAKtE:k0EJJK-61ag:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SecureCoding?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SecureCoding/~4/NDX5XTLAKtE" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://securecoding.in/fixing-cross-site-scripting-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://securecoding.in/fixing-cross-site-scripting-in-asp-net/</feedburner:origLink></item>
		<item>
		<title>Fixing Insecure Cryptographic Storage in Java</title>
		<link>http://feedproxy.google.com/~r/SecureCoding/~3/MPe9uWtrTaI/</link>
		<comments>http://securecoding.in/fixing-insecure-cryptographic-storage-in-java/#comments</comments>
		<pubDate>Tue, 01 May 2012 05:02:02 +0000</pubDate>
		<dc:creator>Abhilash</dc:creator>
				<category><![CDATA[Sub-Post]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securecoding.in/?p=292</guid>
		<description>As seen below using the following code we can encrypt sensitive values such as passwords by encrypting and then adding salt to it.&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SecureCoding?a=MPe9uWtrTaI:rzIErowq340:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SecureCoding?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SecureCoding/~4/MPe9uWtrTaI" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://securecoding.in/fixing-insecure-cryptographic-storage-in-java/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://securecoding.in/fixing-insecure-cryptographic-storage-in-java/</feedburner:origLink></item>
		<item>
		<title>How to Fix Insecure Cryptographic Storage</title>
		<link>http://feedproxy.google.com/~r/SecureCoding/~3/HciXE5Tg9gc/</link>
		<comments>http://securecoding.in/how-to-fix-insecure-cryptographic-storage/#comments</comments>
		<pubDate>Tue, 01 May 2012 04:59:24 +0000</pubDate>
		<dc:creator>Abhilash</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securecoding.in/?p=290</guid>
		<description>Password hashing is the first step towards encrypting passwords before storing it in the database. It is advisable to make sure sensitive parameters like password, credit card information is encrypted by using hashing algorithm so that in the event of a database compromise such information is still secure. To make the hashing stronger it’s recommended to add a Salt to the password string. Salting makes password guessing harder and improbable if the salt is large enough. Fixing Insecure Cryptographic Storage [...]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SecureCoding?a=HciXE5Tg9gc:r4hnbl6MN0k:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SecureCoding?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SecureCoding/~4/HciXE5Tg9gc" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://securecoding.in/how-to-fix-insecure-cryptographic-storage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securecoding.in/how-to-fix-insecure-cryptographic-storage/</feedburner:origLink></item>
		<item>
		<title>How to Fix Cross-site Request Forgery Vulnerability</title>
		<link>http://feedproxy.google.com/~r/SecureCoding/~3/n4eUjQsst8E/</link>
		<comments>http://securecoding.in/how-to-fix-cross-site-request-forgery-vulnerability/#comments</comments>
		<pubDate>Tue, 01 May 2012 04:51:26 +0000</pubDate>
		<dc:creator>Abhilash</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securecoding.in/?p=288</guid>
		<description>Cross-Site Request Forgery (CSRF) is an attack that allows a hacker to perform an action on the vulnerable site on behalf of the victim. The attack is possible when the vulnerable site does not properly validate the origin of the request. The attack is performed by forcing the victim&amp;#8217;s browser to issue an HTTP request to the vulnerable site. If the user is currently logged-in to the victim site, the request will automatically use the user&amp;#8217;s credentials (like session cookies, [...]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SecureCoding?a=n4eUjQsst8E:ppW0K6PKlJk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SecureCoding?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SecureCoding/~4/n4eUjQsst8E" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://securecoding.in/how-to-fix-cross-site-request-forgery-vulnerability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securecoding.in/how-to-fix-cross-site-request-forgery-vulnerability/</feedburner:origLink></item>
		<item>
		<title>How to fix Insecure Direct Object Reference Vulnerability</title>
		<link>http://feedproxy.google.com/~r/SecureCoding/~3/YAMIBM3UAPQ/</link>
		<comments>http://securecoding.in/how-to-fix-insecure-direct-object-reference-vulnerability/#comments</comments>
		<pubDate>Tue, 01 May 2012 04:30:43 +0000</pubDate>
		<dc:creator>Abhilash</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securecoding.in/?p=282</guid>
		<description>Many times application references an object (files) to generate web pages. A simple example is when a user requests his mobile bill and the application fetches it from the server and displays on his screen. Applications don’t always verify the user is authorized for the target object. This results in an insecure direct object reference flaw. An attacker can easily manipulate parameter values and get access to other users details If you must expose direct references to database structures, ensure [...]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SecureCoding?a=YAMIBM3UAPQ:Q0AJ8WcW9LA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SecureCoding?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SecureCoding/~4/YAMIBM3UAPQ" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://securecoding.in/how-to-fix-insecure-direct-object-reference-vulnerability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securecoding.in/how-to-fix-insecure-direct-object-reference-vulnerability/</feedburner:origLink></item>
		<item>
		<title>Fixing SQL Injection in Hibernate</title>
		<link>http://feedproxy.google.com/~r/SecureCoding/~3/A2PhPjlXx6g/</link>
		<comments>http://securecoding.in/fixing-sql-injection-in-hibernate/#comments</comments>
		<pubDate>Tue, 01 May 2012 04:05:17 +0000</pubDate>
		<dc:creator>Abhilash</dc:creator>
				<category><![CDATA[Input Validation]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[SQL Injection]]></category>

		<guid isPermaLink="false">http://securecoding.in/?p=274</guid>
		<description>Note: This post is part of our series on “How to Fix SQL Injection Vulnerabilities“. The series contains examples on how to fix SQL Injection Vulnerabilities in various programming languages. An SQL Injection attack is a code injection attack when input from an attacker reaches one of your databases without any filteration or validation. As a result, a malicious user can execute Read / Write / Delete / Update query in your database. In addition to this he can also [...]&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SecureCoding?a=A2PhPjlXx6g:Z-uignGHJlQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SecureCoding?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SecureCoding/~4/A2PhPjlXx6g" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://securecoding.in/fixing-sql-injection-in-hibernate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securecoding.in/fixing-sql-injection-in-hibernate/</feedburner:origLink></item>
		<item>
		<title>Fixing Cross-site Scripting in Spring MVC</title>
		<link>http://feedproxy.google.com/~r/SecureCoding/~3/1mkGwqcr8jY/</link>
		<comments>http://securecoding.in/fixing-cross-site-scripting-in-spring-mvc/#comments</comments>
		<pubDate>Tue, 01 May 2012 03:51:24 +0000</pubDate>
		<dc:creator>Abhilash</dc:creator>
				<category><![CDATA[Sub-Post]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securecoding.in/?p=265</guid>
		<description>In Spring-MVC, form-tags are used to create jsp page. Spring MVC provides multiple options to encode the html-escape-sequences on server side. Add to the web.xml file to apply the filter globaly: At page level, it is defined as a tag-declaration. The code is:&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/SecureCoding?a=1mkGwqcr8jY:eaD3eaS8JPE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/SecureCoding?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SecureCoding/~4/1mkGwqcr8jY" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://securecoding.in/fixing-cross-site-scripting-in-spring-mvc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://securecoding.in/fixing-cross-site-scripting-in-spring-mvc/</feedburner:origLink></item>
	</channel>
</rss>

