|
| 1 | +$VulnerableSchemaClass = @{ |
| 2 | + Name = "ForestVulnerableSchemaClass" |
| 3 | + Enable = $true |
| 4 | + Scope = 'Forest' |
| 5 | + Source = @{ |
| 6 | + Name = 'Vurnerable Schema Class' |
| 7 | + Data = { |
| 8 | + Test-WinADVulnerableSchemaClass |
| 9 | + } |
| 10 | + Details = [ordered] @{ |
| 11 | + Category = 'Security' |
| 12 | + Description = 'Environments running supported versions of Exchange Server should address CVE-2021-34470 by applying the CU and/or SU for the respective versions of Exchange, as described in Released: July 2021 Exchange Server Security Updates. Environments where the latest version of Exchange Server is any version before Exchange 2013, or environments where all Exchange servers have been removed, one can use a script to address the vulnerability.' |
| 13 | + Resolution = '' |
| 14 | + Importance = 5 |
| 15 | + ActionType = 1 |
| 16 | + StatusTrue = 1 |
| 17 | + StatusFalse = 5 |
| 18 | + Resources = @( |
| 19 | + "[Test-CVE-2021-34470](https://microsoft.github.io/CSS-Exchange/Security/Test-CVE-2021-34470/)" |
| 20 | + "[July 2021 Exchange Server Security Updates](https://techcommunity.microsoft.com/t5/exchange-team-blog/released-july-2021-exchange-server-security-updates/ba-p/2523421)" |
| 21 | + ) |
| 22 | + } |
| 23 | + ExpectedOutput = $true |
| 24 | + } |
| 25 | + Tests = [ordered] @{ |
| 26 | + VurnerableSchemaClass = @{ |
| 27 | + Enable = $true |
| 28 | + Name = 'Schema Class should not be vulnerable' |
| 29 | + Parameters = @{ |
| 30 | + Property = 'Vulnerable' |
| 31 | + ExpectedValue = $false |
| 32 | + OperationType = 'eq' |
| 33 | + } |
| 34 | + Details = @{ |
| 35 | + Category = 'Security' |
| 36 | + Importance = 5 |
| 37 | + ActionType = 2 |
| 38 | + StatusTrue = 1 |
| 39 | + StatusFalse = 5 |
| 40 | + } |
| 41 | + } |
| 42 | + } |
| 43 | + DataDescription = { |
| 44 | + New-HTMLSpanStyle -FontSize 10pt { |
| 45 | + New-HTMLText -Text @( |
| 46 | + 'Environments running supported versions of Exchange Server should address CVE-2021-34470 by applying the CU and/or SU for the respective versions of Exchange, as described in Released: July 2021 Exchange Server Security Updates. ' |
| 47 | + ) |
| 48 | + New-HTMLText -Text @( |
| 49 | + 'Environments where the latest version of Exchange Server is any version before Exchange 2013, or environments where all Exchange servers have been removed, can use this script to address the vulnerability.' |
| 50 | + ) |
| 51 | + } |
| 52 | + } |
| 53 | + DataHighlights = { |
| 54 | + New-HTMLTableCondition -Name 'Vulnerable' -ComparisonType string -BackgroundColor PaleGreen -Value $false -Operator eq |
| 55 | + New-HTMLTableCondition -Name 'Vulnerable' -ComparisonType string -BackgroundColor Salmon -Value $true -Operator eq |
| 56 | + } |
| 57 | + Solution = { |
| 58 | + New-HTMLContainer { |
| 59 | + New-HTMLSpanStyle -FontSize 10pt { |
| 60 | + New-HTMLWizard { |
| 61 | + New-HTMLWizardStep -Name 'Vulnerable Schema Class' { |
| 62 | + New-HTMLText -Text @( |
| 63 | + "Depending whether there is still an Exchange Server present or not there are two ways to address the vulnerability." |
| 64 | + ) -FontWeight normal, normal, normal, normal, normal, normal, bold, normal -Color Black, Black, Black, Black, Black, Black, Red, Black |
| 65 | + } |
| 66 | + New-HTMLWizardStep -Name 'Exchange Server is still in use' { |
| 67 | + New-HTMLText -Text @( |
| 68 | + "If the Exchange Server is still present, you can apply the CU " |
| 69 | + "for the respective version of Exchange along with preparing the schema which will fix the vulnerability." |
| 70 | + "More details can be found on [July 2021 Exchange Server Security Updates](https://techcommunity.microsoft.com/t5/exchange-team-blog/released-july-2021-exchange-server-security-updates/ba-p/2523421)" |
| 71 | + ) |
| 72 | + } |
| 73 | + New-HTMLWizardStep -Name 'Exchange Server is not in use anymore or older version' { |
| 74 | + New-HTMLText -Text "Without explicit action by a schema admin in your organization, you might be vulnerable to CVE-2021-34470 if:" |
| 75 | + New-HTMLList { |
| 76 | + New-HTMLListItem -Text "You ran Exchange Server in the past, but you have since uninstalled all Exchange servers." |
| 77 | + New-HTMLListItem -Text "You still run Exchange Server, but only versions older than Exchange 2013 (namely,Exchange 2003, Exchange 2007 and/or Exchange 2010)." |
| 78 | + } |
| 79 | + New-HTMLText -Text "If your organization is in one of these scenarios, we recommend the following to update your Active Directory schema to address the vulnerability in CVE-2021-34470:" |
| 80 | + New-HTMLText -Text "Download the script [Test-CVE-2021-34470](https://microsoft.github.io/CSS-Exchange/Security/Test-CVE-2021-34470/) from GitHub and use it to apply the needed schema update; please note the script requirements on the GitHub page." |
| 81 | + } |
| 82 | + } -RemoveDoneStepOnNavigateBack -Theme arrows -ToolbarButtonPosition center -EnableAllAnchors |
| 83 | + } |
| 84 | + } |
| 85 | + } |
| 86 | +} |
0 commit comments