<?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: Previniendo ataques XSS</title>
	<atom:link href="http://blog.pecesama.net/previniendo-ataques-xss/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pecesama.net/previniendo-ataques-xss/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=previniendo-ataques-xss</link>
	<description>un poco de todo</description>
	<lastBuildDate>Thu, 08 Dec 2011 12:10:08 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: pecesama</title>
		<link>http://blog.pecesama.net/previniendo-ataques-xss/comment-page-1/#comment-33159</link>
		<dc:creator>pecesama</dc:creator>
		<pubDate>Fri, 30 Jan 2009 20:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.pecesama.net/weblog/?p=725284443#comment-33159</guid>
		<description>y mejor que se va a poner cuando sea un helper para &lt;a href=&quot;http://www.flavorphp.com/&quot; title=&quot;MVC framework PHP&quot; rel=&quot;nofollow&quot;&gt;flavor&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>y mejor que se va a poner cuando sea un helper para <a href="http://www.flavorphp.com/" title="MVC framework PHP" rel="nofollow">flavor</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor De la Rocha</title>
		<link>http://blog.pecesama.net/previniendo-ataques-xss/comment-page-1/#comment-33158</link>
		<dc:creator>Victor De la Rocha</dc:creator>
		<pubDate>Fri, 30 Jan 2009 20:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.pecesama.net/weblog/?p=725284443#comment-33158</guid>
		<description>Sencillito, claro y fácil de usar. Thanks :)</description>
		<content:encoded><![CDATA[<p>Sencillito, claro y fácil de usar. Thanks <img src='http://blog.pecesama.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WH</title>
		<link>http://blog.pecesama.net/previniendo-ataques-xss/comment-page-1/#comment-32662</link>
		<dc:creator>WH</dc:creator>
		<pubDate>Fri, 27 Jun 2008 17:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.pecesama.net/weblog/?p=725284443#comment-32662</guid>
		<description>Y DONDE PUEDO INSERTAR ESE CODIGO DE SEGURIDAD PARA UNA WEB EN PHP NUKE PLATINUM?? mi correo es wolfhen@hotmail.com. gracias por su ayuda.</description>
		<content:encoded><![CDATA[<p>Y DONDE PUEDO INSERTAR ESE CODIGO DE SEGURIDAD PARA UNA WEB EN PHP NUKE PLATINUM?? mi correo es <a href="mailto:wolfhen@hotmail.com">wolfhen@hotmail.com</a>. gracias por su ayuda.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: farra</title>
		<link>http://blog.pecesama.net/previniendo-ataques-xss/comment-page-1/#comment-32488</link>
		<dc:creator>farra</dc:creator>
		<pubDate>Thu, 06 Mar 2008 18:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.pecesama.net/weblog/?p=725284443#comment-32488</guid>
		<description>htmlentities es la funcion de PHP que hace todo por vos... no hacen falta mas funciones.. ahi es imposible que te hagan un Ataque XSS...

htmlentities($valorabuscar);</description>
		<content:encoded><![CDATA[<p>htmlentities es la funcion de PHP que hace todo por vos&#8230; no hacen falta mas funciones.. ahi es imposible que te hagan un Ataque XSS&#8230;</p>
<p>htmlentities($valorabuscar);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yo</title>
		<link>http://blog.pecesama.net/previniendo-ataques-xss/comment-page-1/#comment-32487</link>
		<dc:creator>yo</dc:creator>
		<pubDate>Thu, 06 Mar 2008 18:22:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.pecesama.net/weblog/?p=725284443#comment-32487</guid>
		<description>if (!function_exists(&quot;GetSQLValueString&quot;)) {  
function GetSQLValueString($theValue, $theType, $theDefinedValue = &quot;&quot;, $theNotDefinedValue = &quot;&quot;)   
{  
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;  

  $theValue = function_exists(&quot;mysql_real_escape_string&quot;) ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);  

  switch ($theType) {  
    case &quot;text&quot;:  
      $theValue = ($theValue != &quot;&quot;) ? &quot;&#039;&quot; . $theValue . &quot;&#039;&quot; : &quot;NULL&quot;;  
      break;  
    case &quot;int&quot;:  
      $theValue = ($theValue != &quot;&quot;) ? intval($theValue) : &quot;NULL&quot;;  
      break;  
    case &quot;double&quot;:  
      $theValue = ($theValue != &quot;&quot;) ? &quot;&#039;&quot; . doubleval($theValue) . &quot;&#039;&quot; : &quot;NULL&quot;;  
      break;  
    case &quot;date&quot;:  
      $theValue = ($theValue != &quot;&quot;) ? &quot;&#039;&quot; . $theValue . &quot;&#039;&quot; : &quot;NULL&quot;;  
      break;  
    case &quot;defined&quot;:  
      $theValue = ($theValue != &quot;&quot;) ? $theDefinedValue : $theNotDefinedValue;  
      break;  
    case &quot;like1&quot;:  
      $theValue = ($theValue != &quot;&quot;) ? &quot;&#039;%&quot; . $theValue . &quot;%&#039;&quot; : &quot;NULL&quot;;  
      break;  
    case &quot;like2&quot;:  
      $theValue = ($theValue != &quot;&quot;) ? &quot;&#039;&quot; . $theValue . &quot;%&#039;&quot; : &quot;NULL&quot;;  
      break;  
    case &quot;like3&quot;:  
      $theValue = ($theValue != &quot;&quot;) ? &quot;&#039;%&quot; . $theValue . &quot;&#039;&quot; : &quot;NULL&quot;;  
      break;  
  }  

$theValue=htmlentities($theValue);  // agregado 
  
 return $theValue; 
}  

$textoabuscar=GetSQLValueString($_GET[&#039;palabra&#039;], &quot;text&quot;);


ahi esta! imposible que pasen esta seguridad....!</description>
		<content:encoded><![CDATA[<p>if (!function_exists(&#8220;GetSQLValueString&#8221;)) {<br />
function GetSQLValueString($theValue, $theType, $theDefinedValue = &#8220;&#8221;, $theNotDefinedValue = &#8220;&#8221;)<br />
{<br />
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;  </p>
<p>  $theValue = function_exists(&#8220;mysql_real_escape_string&#8221;) ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);  </p>
<p>  switch ($theType) {<br />
    case &#8220;text&#8221;:<br />
      $theValue = ($theValue != &#8220;&#8221;) ? &#8220;&#8216;&#8221; . $theValue . &#8220;&#8216;&#8221; : &#8220;NULL&#8221;;<br />
      break;<br />
    case &#8220;int&#8221;:<br />
      $theValue = ($theValue != &#8220;&#8221;) ? intval($theValue) : &#8220;NULL&#8221;;<br />
      break;<br />
    case &#8220;double&#8221;:<br />
      $theValue = ($theValue != &#8220;&#8221;) ? &#8220;&#8216;&#8221; . doubleval($theValue) . &#8220;&#8216;&#8221; : &#8220;NULL&#8221;;<br />
      break;<br />
    case &#8220;date&#8221;:<br />
      $theValue = ($theValue != &#8220;&#8221;) ? &#8220;&#8216;&#8221; . $theValue . &#8220;&#8216;&#8221; : &#8220;NULL&#8221;;<br />
      break;<br />
    case &#8220;defined&#8221;:<br />
      $theValue = ($theValue != &#8220;&#8221;) ? $theDefinedValue : $theNotDefinedValue;<br />
      break;<br />
    case &#8220;like1&#8243;:<br />
      $theValue = ($theValue != &#8220;&#8221;) ? &#8220;&#8216;%&#8221; . $theValue . &#8220;%&#8217;&#8221; : &#8220;NULL&#8221;;<br />
      break;<br />
    case &#8220;like2&#8243;:<br />
      $theValue = ($theValue != &#8220;&#8221;) ? &#8220;&#8216;&#8221; . $theValue . &#8220;%&#8217;&#8221; : &#8220;NULL&#8221;;<br />
      break;<br />
    case &#8220;like3&#8243;:<br />
      $theValue = ($theValue != &#8220;&#8221;) ? &#8220;&#8216;%&#8221; . $theValue . &#8220;&#8216;&#8221; : &#8220;NULL&#8221;;<br />
      break;<br />
  }  </p>
<p>$theValue=htmlentities($theValue);  // agregado </p>
<p> return $theValue;<br />
}  </p>
<p>$textoabuscar=GetSQLValueString($_GET['palabra'], &#8220;text&#8221;);</p>
<p>ahi esta! imposible que pasen esta seguridad&#8230;.!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.pecesama.net/previniendo-ataques-xss/comment-page-1/#comment-5163</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 18 Jul 2006 10:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.pecesama.net/weblog/?p=725284443#comment-5163</guid>
		<description>Justo lo que andaba buscando. Gracias!</description>
		<content:encoded><![CDATA[<p>Justo lo que andaba buscando. Gracias!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pecesama</title>
		<link>http://blog.pecesama.net/previniendo-ataques-xss/comment-page-1/#comment-4920</link>
		<dc:creator>pecesama</dc:creator>
		<pubDate>Mon, 10 Jul 2006 14:59:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.pecesama.net/weblog/?p=725284443#comment-4920</guid>
		<description>protegeles cuanto antes ya que en especial el guestbook es peligroso tenerlo así.</description>
		<content:encoded><![CDATA[<p>protegeles cuanto antes ya que en especial el guestbook es peligroso tenerlo así.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gringo</title>
		<link>http://blog.pecesama.net/previniendo-ataques-xss/comment-page-1/#comment-4918</link>
		<dc:creator>gringo</dc:creator>
		<pubDate>Mon, 10 Jul 2006 14:42:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.pecesama.net/weblog/?p=725284443#comment-4918</guid>
		<description>Muy buena esta data... Tengo un par de formularios que hice que tienen 0 (cero) protección contra estos ataques :P.

No son nada del otro mundo (nada crítico): un guestbook y un formulario de contacto... pero... igualmente lo voy a implementar...</description>
		<content:encoded><![CDATA[<p>Muy buena esta data&#8230; Tengo un par de formularios que hice que tienen 0 (cero) protección contra estos ataques <img src='http://blog.pecesama.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> .</p>
<p>No son nada del otro mundo (nada crítico): un guestbook y un formulario de contacto&#8230; pero&#8230; igualmente lo voy a implementar&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

