Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mechanism to disable iteration of all IP's reported for the FQDN in Scanner modules #15885

Open
cdelafuente-r7 opened this issue Nov 17, 2021 · 0 comments
Labels
suggestion-feature New feature suggestions

Comments

@cdelafuente-r7
Copy link
Contributor

Summary

When a FQDN translates to multiple IP's, which usually happens with load-balanced endpoints, Scanner framework iterates on every IP's by default (run_host is called multiple times with each IP). This is usually fine when we want to run the module against each host. But, in some specific context, this can be an issue. For example, when enumerating username from a public endpoint like Azure, AWS, etc. repeating the operation for every host reported by a specific FQDN is not necessary and should be avoided.

A good example is the Azure AD scanner module, which query the Azure AD SSO autologon endpoint (autologon.microsoftazuread-sso.com). At the moment, it is not possible to implement this using the official Login Scanner template, since run_host would be called multiple times for each IP reported by this FQDN.

Basic example

A possible solution would be to have a special option that instructs the Scanner to only pick one IP from a single FQDN in RHOSTS.

Another option would be to force the use of RHOST when RHOSTS is empty. The Scanner could first check for RHOSTS and, if it is not there, look for RHOST value, knowing that only one IP should be used when a FQDN is provided.

Motivation

This will enable contributors to write Login Scanner modules against SaaS services, which are often behind a load balancer, using the official Scanner template.

@cdelafuente-r7 cdelafuente-r7 added the suggestion-feature New feature suggestions label Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion-feature New feature suggestions
Projects
None yet
Development

No branches or pull requests

1 participant