Skip to content

Commit

Permalink
Include new override for Cve-2024-49040
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulson45 committed Nov 27, 2024
1 parent fefb56e commit 90bd90c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function Invoke-AnalyzerSecurityCve-2024-49040 {
$exchangeBuild = $exchangeInformation.BuildInformation.VersionInformation.BuildVersion
# cSpell:disable
# Need to disable cSpell because this is the name of the override
$filterParameterName = "AddDisclaimerforRegexMatch"
$filterParameterName = @("AddDisclaimerforRegexMatch", "AddP2FromRegexMatchHeader")
# cSpell:enable
}
process {
Expand All @@ -37,8 +37,8 @@ function Invoke-AnalyzerSecurityCve-2024-49040 {
[array]$nonCompliantSenderSettings = Get-FilteredSettingOverrideInformation @params

$overrideDisabled = $nonCompliantSenderSettings.Count -gt 0 -and
($null -ne ($nonCompliantSenderSettings | Where-Object { $_.ParameterValue -eq "false" }))
$isSuApplied = (Test-ExchangeBuildGreaterOrEqualThanSecurityPatch -CurrentExchangeBuild $SecurityObject.BuildInformation -SUName "Nov24SU")
(($nonCompliantSenderSettings | Where-Object { $_.ParameterValue -eq "false" }).Count -eq 2)
$isSuApplied = (Test-ExchangeBuildGreaterOrEqualThanSecurityPatch -CurrentExchangeBuild $SecurityObject.BuildInformation -SUName "Nov24SUv2")

if (-not $isSuApplied -or $overrideDisabled) {
$params = @{
Expand Down

0 comments on commit 90bd90c

Please sign in to comment.