Cloud Attack Part I
An internal Azure Stack service called DataService lacked authentication, exposing APIs that could return virtual machine details and screenshots. An attacker could exploit an SSRF in the user portal's remote template loading to access these APIs and obtain screenshots and information about tenant and infrastructure machines.
research.checkpoint.com
Published on research.checkpoint.com
Cloud security is like voodoo. Clients blindly trust the cloud providers and the security they provide.
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
Likely the internal DataService was deployed without authentication, and the user portal's remote template loading feature performed no validation on the target host, allowing requests to internal services.
Impact
An attacker could obtain screenshots and detailed information about tenant and infrastructure virtual machines, and the SSRF was fixed by Microsoft.
What the attacker needed
Access to the Azure Stack user portal; ability to load a remote template from a URL
How it was found
- Access the Service Fabric Explorer on the Azure Stack host and notice that some services, including DataService, do not require authentication.
- Decompile the DataService DLLs to discover API routes such as QueryVirtualMachineInstanceView and VirtualMachineScreenshot.
- Call the QueryVirtualMachineInstanceView API to list virtual machines and obtain their IDs.
- Use the user portal's remote template loading feature to send a GET request to the DataService screenshot API with a chosen virtual machine ID and dimensions.
- Decode the Base64-encoded response to obtain a screenshot of the target virtual machine.
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.
Azure Stack is a version of Microsoft's cloud platform that organisations can run on their own servers. A service inside it was left without a login check, so anyone who could reach it could ask for details and even screenshots of other people's virtual machines. The researchers found a way to reach that service from the user portal by making it fetch a URL, which is a common trick called SSRF.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.