<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Web-based Chat Application with PHP and jQuery</title> <atom:link href="http://www.webappers.com/2009/08/07/web-based-chat-application-with-php-and-jquery/feed/" rel="self" type="application/rss+xml" /><link>http://www.webappers.com/2009/08/07/web-based-chat-application-with-php-and-jquery/</link> <description>- Hunting the Best Open Source Resources for Web Developers</description> <lastBuildDate>Mon, 22 Mar 2010 10:33:26 -0700</lastBuildDate> <generator>http://wordpress.org/?v=2.8.6</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Kevin</title><link>http://www.webappers.com/2009/08/07/web-based-chat-application-with-php-and-jquery/comment-page-1/#comment-28115</link> <dc:creator>Kevin</dc:creator> <pubDate>Mon, 24 Aug 2009 22:34:33 +0000</pubDate> <guid
isPermaLink="false">http://www.webappers.com/?p=1649#comment-28115</guid> <description>Szeim,Agreed, but instead of...
if (strlen($_POST[’name’]) &lt; 100) {It should be...
if($_POST[&#039;name&#039;] != &quot;&quot; &amp;&amp; strlen($_POST[&#039;name&#039;]) &lt; 100){This way we can at least make sure that some sort of name is applied. If $_POST[&#039;name&#039;] != &quot;&quot; isn&#039;t included, anyone can login to the chat without a name.</description> <content:encoded><![CDATA[<p>Szeim,</p><p>Agreed, but instead of&#8230;<br
/> if (strlen($_POST[’name’]) &lt; 100) {</p><p>It should be&#8230;<br
/> if($_POST['name'] != &#8220;&#8221; &amp;&amp; strlen($_POST['name']) &lt; 100){</p><p>This way we can at least make sure that some sort of name is applied. If $_POST['name'] != &#8220;&#8221; isn&#8217;t included, anyone can login to the chat without a name.</p> ]]></content:encoded> </item> <item><title>By: Szeim</title><link>http://www.webappers.com/2009/08/07/web-based-chat-application-with-php-and-jquery/comment-page-1/#comment-27825</link> <dc:creator>Szeim</dc:creator> <pubDate>Wed, 19 Aug 2009 13:50:58 +0000</pubDate> <guid
isPermaLink="false">http://www.webappers.com/?p=1649#comment-27825</guid> <description>Hi!You don&#039;t check the length of $_POST[&#039;name&#039;].
An attacker can inject into the session any type of large content. (the size depends on post_max_size constant in php.ini)So the attacker can take down your site with a nice dos:while (true) {
start_a_new_session (eg. delete cookies)
post_a_large_content
}Behalf the line$_SESSION[&#039;name&#039;] = stripslashes(htmlspecialchars($_POST[&#039;name&#039;]));write eg.if (strlen($_POST[&#039;name&#039;]) &lt; 100) {
$_SESSION[&#039;name&#039;] = stripslashes( htmlspecialchars( $_POST[&#039;name&#039;]));
}else{
die(&#039;bad luck&#039;);
}or something similar.</description> <content:encoded><![CDATA[<p>Hi!</p><p>You don&#8217;t check the length of $_POST['name'].<br
/> An attacker can inject into the session any type of large content. (the size depends on post_max_size constant in php.ini)</p><p>So the attacker can take down your site with a nice dos:</p><p>while (true) {<br
/> start_a_new_session (eg. delete cookies)<br
/> post_a_large_content<br
/> }</p><p>Behalf the line</p><p>$_SESSION['name'] = stripslashes(htmlspecialchars($_POST['name']));</p><p>write eg.</p><p>if (strlen($_POST['name']) &lt; 100) {<br
/> $_SESSION['name'] = stripslashes( htmlspecialchars( $_POST['name']));<br
/> }else{<br
/> die(&#8217;bad luck&#8217;);<br
/> }</p><p>or something similar.</p> ]]></content:encoded> </item> <item><title>By: jatropha</title><link>http://www.webappers.com/2009/08/07/web-based-chat-application-with-php-and-jquery/comment-page-1/#comment-27411</link> <dc:creator>jatropha</dc:creator> <pubDate>Thu, 13 Aug 2009 09:46:36 +0000</pubDate> <guid
isPermaLink="false">http://www.webappers.com/?p=1649#comment-27411</guid> <description>good using of j-querythanks for this infothanks</description> <content:encoded><![CDATA[<p>good using of j-query</p><p>thanks for this info</p><p>thanks</p> ]]></content:encoded> </item> <item><title>By: fedmich</title><link>http://www.webappers.com/2009/08/07/web-based-chat-application-with-php-and-jquery/comment-page-1/#comment-27112</link> <dc:creator>fedmich</dc:creator> <pubDate>Mon, 10 Aug 2009 08:07:27 +0000</pubDate> <guid
isPermaLink="false">http://www.webappers.com/?p=1649#comment-27112</guid> <description>glad that its built using jQuery. :)</description> <content:encoded><![CDATA[<p>glad that its built using jQuery. <img
src='http://www.webappers.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Dorac</title><link>http://www.webappers.com/2009/08/07/web-based-chat-application-with-php-and-jquery/comment-page-1/#comment-26950</link> <dc:creator>Dorac</dc:creator> <pubDate>Fri, 07 Aug 2009 08:05:06 +0000</pubDate> <guid
isPermaLink="false">http://www.webappers.com/?p=1649#comment-26950</guid> <description>Well done! I like this very much! I wouldn&#039;t be using it any time soon, but it is great to know where an easy to use one is :D THUMBSUP!</description> <content:encoded><![CDATA[<p>Well done! I like this very much! I wouldn&#8217;t be using it any time soon, but it is great to know where an easy to use one is <img
src='http://www.webappers.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> THUMBSUP!</p> ]]></content:encoded> </item> </channel> </rss><!--
This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enchanced) (user agent is rejected)
Content Delivery Network via maxcdn.webappers.com (user agent is rejected)

Served from: ps11300.dreamhostps.com @ 2010-03-22 03:57:26 -->