Hey everyone,
I'm working on scanning a web application that requires Multi-Factor Authentication (MFA) using ZAP's AJAX Spider. Since the app uses username, password, and a TOTP (Time-Based One-Time Password), I plan to automate authentication using Selenium.
My Plan So Far:Write a Selenium script in Python to:
Open the login page
Enter the username & password
Generate the TOTP code and enter it
Click the login button
Ensure authentication persists
Use ZAP to scan the site after authentication with the AJAX Spider.
What all steps are required to ensure ZAP can continue the scan after Selenium handles authentication?
Where should I place the Selenium script in ZAP? (Should it be part of Browser-Based Authentication, or do I need another approach?)
Do I need any additional scripts?
HTTP Sender script to maintain session?
Session Management settings to persist authentication across requests?
How exactly do I trigger the AJAX Spider after authentication? (Any specific configurations?)
I want to avoid errors like authentication loops or session timeouts, so any guidance on the best setup would be super helpful!
Thanks in advance!