Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

194
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda