BloodHoundAD / BloodHound

Six Degrees of Domain Admin
GNU General Public License v3.0
9.57k stars 1.7k forks source link

Azure - Administrative Units are ignored, leading to false positives in edges #677

Open EnriqueHernandezL opened 1 year ago

EnriqueHernandezL commented 1 year ago

Describe the bug A few roles, like "Helpdesk Administrator" can be scoped to "Administrative Units", so that in this example, only other users in that administrative unit can get their password reset by the Helpdesk Admin in question. Bloodhound ignores this, which leads to false positives in PasswordReset edges.

To Reproduce Steps to reproduce the behavior:

  1. Setup an administrative units "AU1".
  2. Give a user user1 "Helpdesk Administrator" scoped to the "AU1" AU.
  3. Create a second user user2 which is not in "AU1".
  4. Bloodhound thinks that user1 owns user2 through PasswordReset.

Expected behavior Bloodhound should consider that AzureAD roles can be scoped to Administrative Units.