Skip to content
This repository was archived by the owner on Sep 17, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions Watson/Msrc/CVE_2020_0796.cs
Original file line number Diff line number Diff line change
@@ -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<string> installedKBs)
{
List<string> Supersedence = new List<string>();

switch (BuildNumber)
{
case "18362":
case "18363":

Supersedence.AddRange(new string[] {
"4551762"
});

break;

default:
return;
}

IEnumerable<string> x = Supersedence.Intersect(installedKBs);

if (!x.Any())
vulnerabilities.SetAsVulnerable(name);
}
}
}
1 change: 1 addition & 0 deletions Watson/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 5 additions & 0 deletions Watson/VulnerabilityCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ private List<Vulnerability> 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[] { "" }
)
};

Expand Down
1 change: 1 addition & 0 deletions Watson/Watson.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<Compile Include="Msrc\CVE-2019-1130.cs" />
<Compile Include="Msrc\CVE-2019-1064.cs" />
<Compile Include="Msrc\CVE-2019-0841.cs" />
<Compile Include="Msrc\CVE_2020_0796.cs" />
<Compile Include="VulnerabilityCollection.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Expand Down