Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/11/2009, 11:23
gerazmv
 
Fecha de Ingreso: octubre-2004
Ubicación: Uruguay
Mensajes: 386
Antigüedad: 19 años, 6 meses
Puntos: 4
Respuesta: Test injection de mis formularios

si he filtrado la gran mayoria . comillas. y otros caracteres, pero debe de existir algun doc o info que pueda sacarme dudas o hacer pruebas online. alguna web 2.0 test injection jejeje

Código PHP:
function apply_filters($tag//funcion aplica filtros
{
 
$tag=htmlspecialchars(trim($tag));
 
$tagmysql_real_escape_string($tag);
 
$tag str_replace("<script""<sc#ipt"$tag);
 
$tag str_replace("<java""<j@va"$tag);
 
$tag str_replace("</script>""script"$tag);
 
$tag str_replace("mail(""m@ail("$tag);
 
$tag str_replace("a href""a hr@f"$tag);
 return 
$tag;

aqui mi codigo. pero vamos que deben existir fallos por alli.

Última edición por gerazmv; 04/11/2009 a las 11:48