Encrypting our way to SSRF in VMWare Workspace One UEM (CVE-2021-22054)
A pre-authentication SSRF vulnerability in VMware Workspace One UEM allowed attackers to make arbitrary HTTP requests to internal networks. The flaw was due to hardcoded default encryption keys used to encrypt the URL parameter, which attackers could exploit to bypass authentication and reach sensitive endpoints.
Published on blog.assetnote.io
The advisory for this issue can be found here.
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.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The application used a default master key with hardcoded passphrase and salt when the key version was 'kv0' or missing, allowing attackers to encrypt arbitrary URLs that the server would decrypt and proxy.
Impact
An attacker could use this SSRF to access critical internal networks, including AWS metadata, and potentially breach organizations; the report states that they were able to breach a number of customers and Fortune 500 companies.
What the attacker needed
Network access to the UEM instance; Knowledge of the encryption algorithm and default key
The fix
VMware released a patch for this issue on December 16, 2021, as stated in their advisory.
How it was found
- Identify the BlobHandler.ashx endpoint and its Url parameter.
- Reverse engineer the encryption algorithm and discover the hardcoded default master key.
- Build a tool to encrypt an arbitrary URL using the default key.
- Send a request to BlobHandler.ashx with the encrypted URL as the Url parameter.
- The server decrypts the URL and makes a request to it, returning the response.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This report describes a server-side request forgery (SSRF) bug. SSRF lets an attacker trick a server into making requests to other systems, like internal databases or cloud metadata services, which are normally not reachable from the internet. Here, the server accepted an encrypted URL and fetched it without proper checks, and because the encryption used hardcoded keys, attackers could craft their own encrypted URLs.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.