diff --git a/Watson/Msrc/CVE_2020_0796.cs b/Watson/Msrc/CVE_2020_0796.cs new file mode 100644 index 0000000..02d9ce9 --- /dev/null +++ b/Watson/Msrc/CVE_2020_0796.cs @@ -0,0 +1,35 @@ +using System.Linq; +using System.Collections.Generic; + +namespace Watson.Msrc +{ + internal static class CVE_2020_0796 + { + private const string name = "CVE-2020-0796"; + + public static void Check(VulnerabilityCollection vulnerabilities, string BuildNumber, List installedKBs) + { + List Supersedence = new List(); + + switch (BuildNumber) + { + case "18362": + case "18363": + + Supersedence.AddRange(new string[] { + "4551762" + }); + + break; + + default: + return; + } + + IEnumerable x = Supersedence.Intersect(installedKBs); + + if (!x.Any()) + vulnerabilities.SetAsVulnerable(name); + } + } +} diff --git a/Watson/Program.cs b/Watson/Program.cs index 4e9a79b..7a5b1a3 100644 --- a/Watson/Program.cs +++ b/Watson/Program.cs @@ -61,6 +61,7 @@ static void Main(string[] args) CVE_2019_1385.Check(vulnerabiltiies, buildNumber, installedKBs); CVE_2019_1388.Check(vulnerabiltiies, buildNumber, installedKBs); CVE_2019_1405.Check(vulnerabiltiies, buildNumber, installedKBs); + CVE_2020_0796.Check(vulnerabiltiies, buildNumber, installedKBs); // Print the results vulnerabiltiies.ShowResults(); diff --git a/Watson/VulnerabilityCollection.cs b/Watson/VulnerabilityCollection.cs index 002dcbd..75a0412 100644 --- a/Watson/VulnerabilityCollection.cs +++ b/Watson/VulnerabilityCollection.cs @@ -83,6 +83,11 @@ private List Populate() new Vulnerability( id: "CVE-2019-1405", exploits: new string[] { "https://www.nccgroup.trust/uk/about-us/newsroom-and-events/blogs/2019/november/cve-2019-1405-and-cve-2019-1322-elevation-to-system-via-the-upnp-device-host-service-and-the-update-orchestrator-service/" } + ), + + new Vulnerability( + id: "CVE-2020-0796", + exploits: new string[] { "" } ) }; diff --git a/Watson/Watson.csproj b/Watson/Watson.csproj index f6be959..8260c19 100644 --- a/Watson/Watson.csproj +++ b/Watson/Watson.csproj @@ -55,6 +55,7 @@ +