ICTU / zap2docker-auth-weekly

Zap baseline scanner in Docker with authentication
Apache License 2.0
104 stars 70 forks source link

Unable to find certaint html components #25

Closed Yvtq8K3n closed 3 years ago

Yvtq8K3n commented 3 years ago

I was trying to test this on a Traditional Web Application (bodgeit) that uses form-based login. image

However due to the validation you currently using: type == "text", image

It is unable to find the input with the id=username image

dicksnel commented 3 years ago

@Yvtq8K3n I will change the script to type is text or type is empty.

In the mean time, you can ofcourse specify your own Xpath using the auth.username_field parameter, for example //input[id='username']

dicksnel commented 3 years ago

Fixed in a5ae4363264647bd3115d53c05b7b82b51b92c5d