<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Firoz Ansari's Weblog : ASP.NET</title><link>http://weblogs.asp.net/firoz/archive/tags/ASP.NET/default.aspx</link><description>Tags: ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Launch Announcement: DOTENET (Digg Clone)</title><link>http://weblogs.asp.net/firoz/archive/2007/03/17/launch-announcement-dotenet-digg-clone.aspx</link><pubDate>Sun, 18 Mar 2007 06:46:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2052627</guid><dc:creator>firoz.ansari</dc:creator><slash:comments>12</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/firoz/rsscomments.aspx?PostID=2052627</wfw:commentRss><comments>http://weblogs.asp.net/firoz/archive/2007/03/17/launch-announcement-dotenet-digg-clone.aspx#comments</comments><description>&lt;p&gt;Its give me immense pleasure to announcement .NET portal - &lt;a href="http://www.dotenet.com"&gt;DOTENET&lt;/a&gt; (URL: www.dotenet.com). It&amp;rsquo;s &amp;quot;Digg&amp;quot; style web application dedicated to .NET and relative technologies. This portal will serve as central hub to share articles, tutorials, blog post etc.

&lt;/p&gt;&lt;p&gt;When I was planning to create this portal two months back, I was sure that first release of this project will have minimum &amp;quot;must to have&amp;quot; features and later I will add features which are &amp;quot;good to have&amp;quot;. And that&amp;rsquo;s why you will notice many blank pages on this portal. These blank pages are place-holder for features which I will add in coming weeks (depending upon available bandwidth).
 
&lt;/p&gt;&lt;p&gt;The desired goal of creating a community portal cannot be achieved without your active participation. Please register yourself to this portal and share any article or post which you think useful to .NET community. If you find any existing link useful in DOTNET portal, please vote for that link so that link can be push to popular segment.

&lt;/p&gt;&lt;p&gt;As you continue participating in this portal, please keep in mind that this community portal needs your feedback to remain alive. Please provide your feedback/opinion/suggestion to my blog (URL: &lt;a href="http://www.firoz.name/2007/03/18/announcement-dotenet/"&gt;Announcement: DOTENET&lt;/a&gt;)

&lt;/p&gt;&lt;p&gt;URL: &lt;a href="http://www.dotenet.com"&gt;Home Page&lt;/a&gt;
&lt;/p&gt;&lt;p&gt;URL: &lt;a href="http://www.dotenet.com/register"&gt;Registration Page&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2052627" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/firoz/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/firoz/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://weblogs.asp.net/firoz/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/firoz/archive/tags/Community+Portals/default.aspx">Community Portals</category><category domain="http://weblogs.asp.net/firoz/archive/tags/VB.NET/default.aspx">VB.NET</category><category domain="http://weblogs.asp.net/firoz/archive/tags/SQL+Server/default.aspx">SQL Server</category></item><item><title>Vulnerable JavaScript Comments</title><link>http://weblogs.asp.net/firoz/archive/2006/05/26/Vulnerable-JavaScript-Comments.aspx</link><pubDate>Fri, 26 May 2006 12:10:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:449252</guid><dc:creator>firoz.ansari</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/firoz/rsscomments.aspx?PostID=449252</wfw:commentRss><comments>http://weblogs.asp.net/firoz/archive/2006/05/26/Vulnerable-JavaScript-Comments.aspx#comments</comments><description>&lt;P&gt;Today while checking balance in my banker’s web portal, which is self acclaimed as one of the most secured online banking portal of India, I curiously thought of inspecting their HTML content using View Source. But I really shocked (and I almost got heart attack) to see whole bunch of JavaScript comment placed all over their pages. Most interesting thing was that these JavaScript snippets not only tell you bug numbers, who have done those modifications, on which date, but also what was the actual issue and how they have resolved that issue. &lt;IMG class=wp-smiley alt=:) src="http://www.firoz.name/wp-includes/images/smilies/icon_smile.gif"&gt; &lt;/P&gt;
&lt;P&gt;The most interesting part was:&lt;BR&gt;&lt;CODE&gt;&amp;lt;script language="JavaScript1.2"&amp;gt;&lt;BR&gt;function alert_keycode(){&lt;BR&gt;/*&lt;BR&gt;Abhilash. &lt;/P&gt;
&lt;P&gt;This script was added bcze on pressing enter key on pwd field used to get Submittted but since the Command Action invoked was diff one that of OK button, it was not producing desired results. The solution was create a temp hidden field and changing Pwd field name to that of Ok button dynamically, assigning tmp-hidden field name/value with original Pwd Field name/value. &lt;/P&gt;
&lt;P&gt;And submit is invoked&lt;/P&gt;
&lt;P&gt;*/&lt;/P&gt;
&lt;P&gt;frm = document.confirmFrm;&lt;BR&gt;if(event.keyCode==13)&lt;BR&gt;{&lt;BR&gt;blah blah blah&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;I love this “detailed” and technically well explained comment provided by developer in HTML code.&lt;/P&gt;
&lt;P&gt;On serious note, I never prefer to put these JavaScript comments in my code as you can realize from comments like these, it might give lead to reveal any vulnerability or security hole in application. Even if you don’t want to consider the increase of payload of page because of these JavaScript comment but still putting comments with all kind technical or business explanations is major security risk to your application. &lt;I&gt;Don’t do that!&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;IMO, these code comments are for developer and not for user. My suggestion to all web developers to use server side comments instead of any client side comment specially if you are developing application for financial institutions etc.&lt;/P&gt;
&lt;P&gt;What is your opinion if I modify above code like this:&lt;BR&gt;&lt;CODE&gt;&amp;lt;script language="JavaScript1.2"&amp;gt;&lt;BR&gt;function alert_keycode(){&lt;BR&gt;&lt;B&gt;&amp;lt;%&lt;/B&gt;&lt;BR&gt;/*Abhilash. &lt;/P&gt;
&lt;P&gt;This script was added bcze on pressing enter key on pwd field used to get Submittted but since the Command Action invoked was diff one that of OK button, it was not producing desired results. The solution was create a temp hidden field and changing Pwd field name to that of Ok button dynamically, assigning tmp-hidden field name/value with original Pwd Field name/value.&lt;BR&gt;And submit is invoked&lt;BR&gt;*/&lt;BR&gt;&lt;B&gt;%&amp;gt;&lt;/B&gt;&lt;BR&gt;frm = document.confirmFrm;&lt;BR&gt;if(event.keyCode==13)&lt;BR&gt;{&lt;BR&gt;blah blah blah&lt;BR&gt;&amp;lt;/script&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;I guess later one is more secured than the original one. Do you agree with me?? &lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;Please provide your comment here:&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;A href="http://www.firoz.name/2006/05/26/vulnerable-javascript-comments/"&gt;http://www.firoz.name/2006/05/26/vulnerable-javascript-comments/&lt;/A&gt;&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=449252" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/firoz/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item></channel></rss>