Open djcater opened 4 years ago
Thanks, will review.
although if you have a large number of guest users, the issue still remains
There's really no way around that though. If you have a very large amount of resources of any kind, the tool (and other tools too I'd think) may take a long time to run and could face some issues.
Describe the bug Similar to #698, but for groups instead of users. I was reviewing a tenant with 50,000 groups using ScoutSuite 5.10.0, and running the
aad
service never completed (left it for an hour). After editing the code to ignore the groups, it finished fine. I believe after retrieving the list of groups, it subsequently makes more requests per group, which is why it takes so long. Similarly for users, after getting the list of users, there are subsequent requests per user.The users issue was partially fixed in #734 by restricting to guest users, (although if you have a large number of guest users, the issue still remains).
There were no errors or exceptions. The last line of output is:
And then I can see lots of HTTPS connections and requests to the Azure AD graph in Wireshark, continuing endlessly.
To Reproduce Run a command like:
against a tenant with tens of thousands of groups.
Additional context This was my bodge fix, which meant that the process could complete:
This was running ScoutSuite 5.10.0, set up as follows:
Python version is 3.8.2 on Ubuntu 20.04.
Hope that helps. Thanks.