Merge branch 'master' into linpeasdevelop

This commit is contained in:
Carlos Polop 2021-06-18 01:54:08 +02:00 committed by GitHub
commit a15c4fa9d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 53 additions and 12 deletions

View File

@ -96,7 +96,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
return;
}
if (supersedence.Intersect(installedKBs).Any())
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}

View File

@ -73,7 +73,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
return;
}
if (supersedence.Intersect(installedKBs).Any())
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}

View File

@ -93,7 +93,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
return;
}
if (supersedence.Intersect(installedKBs).Any())
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}

View File

@ -100,7 +100,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
return;
}
if (supersedence.Intersect(installedKBs).Any())
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}

View File

@ -77,7 +77,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
return;
}
if (supersedence.Intersect(installedKBs).Any())
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}

View File

@ -91,7 +91,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
return;
}
if (supersedence.Intersect(installedKBs).Any())
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}

View File

@ -74,7 +74,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
return;
}
if (supersedence.Intersect(installedKBs).Any())
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}

View File

@ -80,7 +80,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
return;
}
if (supersedence.Intersect(installedKBs).Any())
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}

View File

@ -92,7 +92,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
return;
}
if (supersedence.Intersect(installedKBs).Any())
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}

View File

@ -89,7 +89,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
return;
}
if (supersedence.Intersect(installedKBs).Any())
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}

View File

@ -89,7 +89,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
return;
}
if (supersedence.Intersect(installedKBs).Any())
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}

View File

@ -0,0 +1,35 @@
using System.Linq;
using System.Collections.Generic;
namespace winPEAS._3rdParty.Watson.Msrc
{
internal static class CVE_2020_0796
{
private const string name = "CVE-2020-0796";
public static void Check(VulnerabilityCollection vulnerabilities, int buildNumber, List<int> installedKBs)
{
var supersedence = new List<int>();
switch (buildNumber)
{
case 18362:
case 18363:
supersedence.AddRange(new int[] {
4551762
});
break;
default:
return;
}
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}
}
}
}

View File

@ -81,7 +81,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
return;
}
if (supersedence.Intersect(installedKBs).Any())
if (!supersedence.Intersect(installedKBs).Any())
{
vulnerabilities.SetAsVulnerable(name);
}

View File

@ -100,6 +100,10 @@ namespace winPEAS._3rdParty.Watson
new Vulnerability(
id: "CVE-2020-1013",
exploits: new string[] { "https://www.gosecure.net/blog/2020/09/08/wsus-attacks-part-2-cve-2020-1013-a-windows-10-local-privilege-escalation-1-day/" }
),
new Vulnerability(
id: "CVE-2020-0796",
exploits: new string[] { "https://github.com/danigargu/CVE-2020-0796 (smbghost)" }
)
};
}

View File

@ -73,6 +73,7 @@ namespace winPEAS._3rdParty.Watson
CVE_2020_0668.Check(vulnerabilities, buildNumber, installedKBs);
CVE_2020_0683.Check(vulnerabilities, buildNumber, installedKBs);
CVE_2020_1013.Check(vulnerabilities, buildNumber, installedKBs);
CVE_2020_0796.Check(vulnerabilities, buildNumber, installedKBs);
// Print the results
vulnerabilities.ShowResults();

View File

@ -639,6 +639,7 @@
<Compile Include="3rdParty\Watson\Msrc\CVE-2020-0668.cs" />
<Compile Include="3rdParty\Watson\Msrc\CVE-2020-0683.cs" />
<Compile Include="3rdParty\Watson\Msrc\CVE-2020-1013.cs" />
<Compile Include="3rdParty\Watson\Msrc\CVE-2020-0796.cs" />
<Compile Include="3rdParty\Watson\Vulnerability.cs" />
<Compile Include="3rdParty\Watson\VulnerabilityCollection.cs" />
<Compile Include="3rdParty\Watson\Watson.cs" />