netwrix / pingcastle

PingCastle - Get Active Directory Security at 80% in 20% of the time
https://www.pingcastle.com
Other
2.35k stars 292 forks source link

AD user object ACL owner issue #185

Open SokratisUNI opened 1 year ago

SokratisUNI commented 1 year ago

Hello,

I've noticed a weird issue which I've been trying to solve for quite some time. On one specific account, the owner of this object was updated to another group "Domain Admins", but PingCastle reports that the old groups still have Full rights.

I have used different tools to list all permissions, inherited or not, but cannot find why this is being reported by your tool.

image

Hopefully, I am not missing something obvious here :)

SokratisUNI commented 1 month ago

So, finally had some time and created a test VM where I reproduced the above behavior. the steps to reproduce are:

Now at this point, SDProp should do (and it does) it's magic, but PingCastle keeps showing that user kevpa is still having "indirect access".

Attached the report created with the latest PingCastle version.

Permissions assigned to group "Create usre" are: ad_hc_contoso.net.html.zip

{400E6FE6-0762-491F-B9EA-418BDC3148FA}

Thanks for sharing this wonderfull tool!!!

JoeDibley commented 4 weeks ago

Hi there, thank you for the extra information and the report here! I have reproduced the issue but I cannot seem to immediately track down where exactly the bug is here but it is obvious that there is an issue with nested permissions vs adminsdholder protection (or just specific object permissions) and seems like it may be based on the container_hierarchy section not excluding objects that do not have inheritance enabled.

We will add this to the backlog and aim to fix this in the next 3.4 version. Will keep you updated.

SokratisUNI commented 4 weeks ago

Thank you @JoeDibley appreciate your feedback.