How Tanium can help with CVE-2023-23397 - Outlook Escalation of Privilege
How Tanium can help with CVE-2023-23397 - Outlook Escalation of Privilege
Overview
On March 14, 2023 as part of their regular Patch Tuesday release, Microsoft announced they had patched CVE-2023-23397 which is an elevation-of-privilege (EoP) vulnerability in all versions of Outlook.
What is affected?
-
All supported versions of Outlook for Windows are affected.
-
Outlook for Android, iOS, Mac, and Outlook on the web are not impacted.
What about Exchange?
This vulnerability is in Outlook, not Exchange. Your Exchange version (or even using Exchange) does not change your exposure to this vulnerability.
How can it be exploited?
An attacker could craft an email that would exploit the vulnerability. Microsoft explains, “CVE-2023-23397 is a critical EoP vulnerability in Microsoft Outlook that is triggered when an attacker sends a message with an extended MAPI property with a UNC path to an SMB (TCP 445) share on a threat actor-controlled server. No user interaction is required. The connection to the remote SMB server sends the user’s NTLM negotiation message, which the attacker can then relay for authentication against other systems that support NTLM authentication.”
What is the fix?
Apply Microsoft’s patches for CVE-2023-23397.
What if I cannot patch?
As these are workstation-based applications, not critical server applications, it is strongly recommended that you patch immediately. In the event you cannot patch, temporary mitigations include:
-
Add users to the Protected Users Security Group
-
Block TCP 445/SMB connections
How do I know if I’ve been attacked leveraging this vulnerability?
Microsoft has released a script to check Exchange messaging items (mail, calendar, and tasks) to see whether a specific property is populated with a UNC path. It can run in both audit mode and cleanup mode.
As always, please ensure any scripts you retrieve are from a trusted source and evaluate all instructions before deploying in a production environment.
Can I deploy the CVE-2023-23397.ps1 script via Tanium as a package?
This is not recommended. The script functions by authenticating to the Exchange environment (on-prem or online) and evaluating items in each mailbox from there. If you choose to use this script, please do so in a single-use deployment. There is no need to run it from every endpoint, as it leverages the Exchange environment and can audit and cleanup without being deployed on every endpoint.
Finding the Vulnerability
Tanium Interact
Tanium Comply is the recommended way to check for this vulnerability. However, it is possible to identify potentially vulnerable versions of Microsoft Outlook, using Tanium Interact:
Get Outlook Version from all machines with Outlook Version contains Version
Tanium Comply
Tanium Comply is the recommended way to check for this vulnerability. Tanium Comply customers can build a Comply vulnerability assessment for CVE-2023-23397.
See Creating vulnerability assessments to create assessments that identify vulnerabilities associated to CVE-2023-23397.You can view and save a report for this vulnerability from Comply > Findings > Vulnerability and entering the CVE into the Check ID filter field.
You can view available patches as defined by the vendor for addressing the vulnerability.
You can also investigate this vulnerability finding on your endpoints using the Investigations features. See Investigating Findings.
You can track this vulnerability using Comply and the following question:
Get Online from all machines with Comply - CVE Findings:Check ID contains CVE-2023-23397 Vulnerability definitions are available for CVE-2023-23397 in the Tanium Vulnerability Library. The TVL will update on a scheduled basis (the default is every 1 day) or a user can manually update the TVL.
Once the TVL is updated, the CVE can be searched to validate its availability and coverage in the Tanium Comply console.
Creating reports from findings for CVE-2023-23397 can greatly increase visibility and enable tracking of remediation.
Comply may not be able to accurately identify the vulnerability on endpoints running the Semi-Annual Enterprise Channel (Preview) versions of O365.
Remediating the Vulnerability
Tanium Deploy (Click-to-run)
The Tanium Deploy Predefined Package Gallery contains software packages that can be deployed to update all “Click-to-run" installations of Office, also known as Microsoft 365 Apps or Office 365. These will remediate the vulnerability in all affected Office versions except standalone installations of Office 2016 and Office 2013. See Managing Microsoft Office 365 Apps with Tanium for detailed information.Follow the simple steps below to import and deploy these packages to remediate CVE-2023-23397.
-
Navigate to the Tanium Deploy workbench.
-
From the Quick Link section, select Package Gallery.
-
To identify status of Office Click-to-run, type Office in the filter bar and review the Update Eligible column for each Office package.
-
Clicking on the linked text under the Update Eligible column allows the ability to drill-down to gather more information about affected computers such as computer name.
-
To remediate via Deploy, import each package and deploy it with a pre-notification warning users Office must be closed for up to an hour to allow for a critical update. See Tanium Documentation or contact Tanium support for further assistance.
References and Further Reading:
https://microsoft.github.io/CSS-Exchange/Security/CVE-2023-23397/