bug: Scan not starting when subdomain is_default
is set to False
#7
Labels
bug
Something isn't working
Milestone
Is there an existing issue for this?
Current Behavior
For an unexplained reason some subdomain does not launch any scan.
When you click Initiate scan, task is sent to celery but the following log is present:
Important line is this on
No URL is present, so scan cannot start.
After further investigation, problem comes from the database.
In the endpoint table, there is default endpoints, and for every subdomain without a default entry on base subdomain (https://www.xxx.com) scan will not start.
Here my sub that not scan
The default entry is set while doing a target scan after that it is never set elsewhere.
So if there is a problem while setting this value, subdomains are listed, but you can't launch any scan on it.
Workaround
If True is set to is_default value in the DB scan will work properly
So got to /admin and edit the desired value in the endpoint table.
Then relaunch the scan
Expected Behavior
Scan should start for a subdomain present in the table
Steps To Reproduce
Random, some domain works, others not.
Need investigation
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: