Skip to content
Merged
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
18 changes: 18 additions & 0 deletions Security/src/Test-CVE-2021-34470.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

<#
.SYNOPSIS
Test for and addresses CVE-2021-34470.
.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
https://techcommunity.microsoft.com/t5/exchange-team-blog/released-july-2021-exchange-server-security-updates/ba-p/2523421.

Environments running Exchange 2010, or environments where all Exchange
servers have been removed, can use this script to address the vulnerability.
.EXAMPLE
PS> .\Test-CVE-2021-34470.ps1
Reports whether the vulnerability is present.
.EXAMPLE
PS> .\Test-CVE-2021-34470.ps1 -ApplyFix
Fixes the vulnerability if found. Note that this syntax requires Schema Admin.
#>
[CmdletBinding()]
param (
[Parameter()]
Expand Down
19 changes: 18 additions & 1 deletion docs/Security/Test-CVE-2021-34470.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,21 @@ parent: Security

## Test-CVE-2021-34470.ps1

Download the latest release: [Test-Test-CVE-2021-34470.ps1](https://github.com/microsoft/CSS-Exchange/releases/latest/download/Test-CVE-2021-34470.ps1)
Download the latest release: [Test-CVE-2021-34470.ps1](https://github.com/microsoft/CSS-Exchange/releases/latest/download/Test-CVE-2021-34470.ps1)

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](https://techcommunity.microsoft.com/t5/exchange-team-blog/released-july-2021-exchange-server-security-updates/ba-p/2523421).

Environments running Exchange 2010, or environments where all Exchange servers have been removed, can use this script to address the vulnerability.

### Examples

Check for the vulnerability:

`.\Test-CVE-2021-34470.ps1`

Fix the vulnerability if found:

`.\Test-CVE-2021-34470.ps1 -ApplyFix`

Note that the user must be a Schema Admin to use the -ApplyFix switch.