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

Trim DisplaySpecifier path to avoid false positives #233

Closed egglessness closed 4 months ago

egglessness commented 6 months ago

Some environments I tested have the DisplaySpecifier string composed by entries separated by comma and space (,) instead of just comma (,).

Even if the configuration is accepted by Active Directory and the DisplaySpecifier script is correctly placed in the SYSVOL directory, PingCastle reports it as a vulnerability.

To fix the issue, I just ensure that the script path is trimmed, to avoid spaces messing up with the rule.

vletoux commented 4 months ago

Thanks for submitting the PR

However what you see here is just an extract of the full / private Ping Castle code. In fact the bug was already reported a few months ago and I already made the fix (for the upcoming version to be published soon) image

Also the fix proposed is only partial as you can see in my commit that I am fixing another issue.