Skip to content

[Issue] CVE-2023-23397.ps1 should set X-AnchorMailbox #1569

@bill-long

Description

@bill-long

Adding the X-AnchorMailbox header will make the script more efficient in OnPrem scenarios by causing us to proxy directly to the server where the specified mailbox lives, instead of to the server corresponding to the authenticated user, which is the impersonation account in this case.

  foreach ($mailAddress in $mailAddresses) {
    $ewsService.HttpHeaders.Clear()
    $ewsService.HttpHeaders.Add("X-AnchorMailbox", $mailAddress)

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