Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

193
Vistas
How does ZAP pass the JavaScript validation input?

I applied JavaScript validation inputs for the username input on the registration form, which is

function username_validation(){
var username = document.getElementByname("username1").value.length;
if (username < 4){
return false;
}
}

The code works correctly when I'm trying to register, but the ZAP scanner passes this validation, and it successfully registers with the ZAP username, which is three characters!!! My question is, how does ZAP pass the validation?? Thanks.

about 4 years ago · Santiago Gelvez
2 Respuestas
Responde la pregunta

0

function username_validation(){
 var username = document.getElementByname("username1")
  if (username.length < 4){
   return False;
  }
}

You need to check the string length, not compare as if it were a number input; try the above.

about 4 years ago · Santiago Gelvez Denunciar

0

JavaScript is only client side. ZAP manipulates things between the client and server. Always double check server side, never trust solely to client side (client controllable) controls. (You can't assume all clients are nice.)

about 4 years ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda