Skip to content

[Issue] CVE-2023-23397 - script doesnt recognize installed AzureAD Module #1595

@mariobesen

Description

@mariobesen

Describe the issue
Windows 11 22621, AzureAD module version 2.0.2.140, latest version of CVE-2023-23397.ps1 script from here:
https://microsoft.github.io/CSS-Exchange/Security/CVE-2023-23397/

We wanted to do audit check on our Exchange Online env and to do that I tried running script using "-CreateAzureApplication" parameter. I get "CVE-2023-23397 script version 23.03.15.2119" and after that following error:

Unable to connect to Azure AD... Make sure you have AzureAD module installed Inner Exception AzureAD module was not found on this computer. You can install it by running Install-Module AzureAD

Expected behavior
Azure app created

Script Output
Unable to connect to Azure AD... Make sure you have AzureAD module installed Inner Exception AzureAD module was not found on this computer. You can install it by running Install-Module AzureAD

Additional context
Tried runniing Connect-AzureAD beforehand and I auth'd successfully and managed to test functionality with Get-AzureADUsers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions