Subdomains not related to the organization been onboarded and scanned are added while scanning Cloudflare DNS #52
Replies: 3 comments
-
This is intended for Cloudflare Nameserver module. Cloudflare allows granular permissions for API keys. We expect the folks who generate the API key to provide permissions to specific zones at the token level rather than handling it at Mantis code level. This check would apply for Nameservers that don't allow granular permissions. @Prateek-Thakare @hiteshkumarthakur As the check is simple to add, I feel we should add this in case someone on-boards overly permissive API token. |
Beta Was this translation helpful? Give feedback.
-
Hey @devplayer55221 @0xbharath Thanks |
Beta Was this translation helpful? Give feedback.
-
Added the code for checking if the nameserver record matches the scope defined in target. |
Beta Was this translation helpful? Give feedback.
-
The Cloudflare.py script is not validating if the zones present in the nameserver is valid for the organization being scanned.
The zones in the nameserver might not contain the domain of the organization and they would still be added to the subdomains for that organization.
Beta Was this translation helpful? Give feedback.
All reactions