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

System.ArgumentNullException: Value cannot be null. #25

Open
0xElessar opened this issue Dec 16, 2022 · 2 comments
Open

System.ArgumentNullException: Value cannot be null. #25

0xElessar opened this issue Dec 16, 2022 · 2 comments

Comments

@0xElessar
Copy link

0xElessar commented Dec 16, 2022

Running v1.1.0 on Win10 21H2 :
Certify.exe find /vulnerable

results in the following error message:

[!] Unhandled Certify exception:

System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
   at Certify.Commands.Find.IsCertificateTemplateVulnerable(CertificateTemplate template, List`1 currentUserSids)
   at Certify.Commands.Find.<>c__DisplayClass19_0.<ShowVulnerableTemplates>b__0(CertificateTemplate t)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Certify.Commands.Find.ShowVulnerableTemplates(IEnumerable`1 templates, IEnumerable`1 cas, List`1 currentUserSids)
   at Certify.Commands.Find.FindTemplates(Boolean outputJSON)
   at Certify.Commands.Find.Execute(Dictionary`2 arguments)
   at Certify.CommandCollection.ExecuteCommand(String commandName, Dictionary`2 arguments)
   at Certify.Program.MainExecute(String commandName, Dictionary`2 parsedArgs)
```

Running version 1.0.0 is successful.
@seahop
Copy link

seahop commented Dec 23, 2022

Big bump to this one.

8b898b7 this was the break, and specifically "template.ApplicationPolicies".

When enumerating, it's failing on a null value in mspki-certificate-application-policy.

@DanTheMan-NL
Copy link

DanTheMan-NL commented Dec 30, 2022

I also receive this error while searching for vulnerable templates on Windows Server 2019

leechristensen added a commit that referenced this issue Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants