Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!