<?xml version="1.0" encoding="windows-1251"?>
<rss version="0.92">
<channel>
<title>WikiJuanan - AtaqueInyecciónSQL</title>
<link>http://wiki.us.es/juanan/wakka.php?wakka=AtaqueInyecciónSQL</link>
<description>History/revisions of WikiJuanan/AtaqueInyecciónSQL</description>
<language>en-us</language>
<item>
<title>2008-09-01 09:37:45</title>
<link>http://wiki.us.es/juanan/wakka.php?wakka=AtaqueInyeccionSQL/show&amp;time=2008-09-01+09%3A37%3A45</link>
<description>&lt;a name="p2818-1">&lt;/a>&lt;p class="auto" id="p2818-1">antecedentes&lt;br />
correo alex&lt;br />
modo reparacion&lt;br />
enviar a&amp;nbsp;&lt;a href="http://www.rediris.es/cert/index.es.html" target="_blank" title="Vinculo externo
(en nueva ventana)" class="outerlink">&lt;img src="http://wiki.us.es/juanan/themes/default/icons/web.gif" alt="" border="0" />http://www.rediris.es/cert/index.es.html&lt;/a>&lt;/p>&lt;br />&lt;a name="p2818-2">&lt;/a>&lt;p class="auto" id="p2818-2">
owever I&amp;nbsp;find writing preg_match sometimes can&amp;nbsp;be&amp;nbsp;tiring, and&amp;nbsp;that's why&amp;nbsp;I&amp;nbsp;use owasp php&amp;nbsp;filters to&amp;nbsp;simplify the&amp;nbsp;work for&amp;nbsp;me. It&amp;nbsp;consists of&amp;nbsp;one function sanitize(), that take the&amp;nbsp;variable that you&amp;nbsp;want to&amp;nbsp;filter and&amp;nbsp;an&amp;nbsp;option.&lt;/p>&lt;br />&lt;a name="p2818-3">&lt;/a>&lt;p class="auto" id="p2818-3">
The&amp;nbsp;option may&amp;nbsp;be&amp;nbsp;any of&amp;nbsp;this value PARANOID,HTML,INT,FLOAT,LDAP,SQL,SYSTEM and&amp;nbsp;&lt;span class="nobr">UTF-8&lt;/span> that filters the&amp;nbsp;type of&amp;nbsp;data accordingly. For&amp;nbsp;example if&amp;nbsp;you want your variable to&amp;nbsp;contain only &lt;span class="nobr">floating-point&lt;/span> number, then you&amp;nbsp;can code it&amp;nbsp;like this :&lt;/p>&lt;br />&lt;a name="p2818-4">&lt;/a>&lt;p class="auto" id="p2818-4">
&amp;lt; ?php&lt;/p>&lt;br />&lt;a name="p2818-5">&lt;/a>&lt;p class="auto" id="p2818-5">
require('sanitize.inc.php');&lt;/p>&lt;br />&lt;a name="p2818-6">&lt;/a>&lt;p class="auto" id="p2818-6">
$var=100.50;&lt;/p>&lt;br />&lt;a name="p2818-7">&lt;/a>&lt;p class="auto" id="p2818-7">
$float = sanitize($var,FLOAT);&lt;/p>&lt;br />&lt;a name="p2818-8">&lt;/a>&lt;p class="auto" id="p2818-8">
?&amp;gt;&lt;/p>&lt;br />&lt;a name="p2818-9">&lt;/a>&lt;p class="auto" id="p2818-9">
I&amp;nbsp;isn't much, but&amp;nbsp;surely it&amp;nbsp;will simplify your php&amp;nbsp;coding a&amp;nbsp;bit more, the&amp;nbsp;other option is&amp;nbsp;&lt;span class="nobr">self-explanatory&lt;/span> save PARANOID, which means that the&amp;nbsp;variable will contain only alphanumeric character after sanitize.&lt;/p>&lt;br />&lt;a name="p2818-10">&lt;/a>&lt;p class="auto" id="p2818-10">
SQL&amp;nbsp;is&amp;nbsp;handy if&amp;nbsp;you want to&amp;nbsp;include the&amp;nbsp;variable value inside an&amp;nbsp;SQL statement, this will avoid the&amp;nbsp;risk of&amp;nbsp;the notorious SQL&amp;nbsp;injection which will affect the&amp;nbsp;security of&amp;nbsp;your data.&lt;/p></description>
</item>
<item>
<title>2008-08-27 00:31:11</title>
<link>http://wiki.us.es/juanan/wakka.php?wakka=AtaqueInyeccionSQL/show&amp;time=2008-08-27+00%3A31%3A11</link>
<description>edited by JuananRuiz</description>
</item>
<item>
<title>2008-08-22 13:33:32</title>
<link>http://wiki.us.es/juanan/wakka.php?wakka=AtaqueInyeccionSQL/show&amp;time=2008-08-22+13%3A33%3A32</link>
<description>edited by JuananRuiz</description>
</item>
</channel>
</rss>

 <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
 </script>
 <script type="text/javascript">
  _uacct = "UA-1947893-2";
  urchinTracker();
 </script>

