azure storage explorer is microsoft's desktop app for browsing azure storage, built on electron. its manage access dialog lists who has access to an adls gen2 directory, and it put each principal's name on screen with knockout's html: binding, which sets innerHTML. the name comes from the storage endpoint. an endpoint that answers with markup instead of a name gets its script run inside that dialog, and the dialog can call into the app's main process: for every saved connection string, and for a live azure resource manager token.
microsoft fixed it in storage explorer 1.45.0 as cve-2026-57104.
tested on azure storage explorer 1.43.0 (electron 40.6.1).
adls gen2 is blob storage with a real directory tree and posix-style acls. when you open manage access, storage explorer asks the endpoint for the acl with getAccessControl. the dialog lists the directory owner and each acl entry by the principal named in that response, and the storage endpoint writes that response.
the dialog's template binds that name like this:
<!-- @storage-explorer/adls2-extension/dist/src/Dialogs/ManagePosixAcl/
ManagePosixAclView.html, line 50 -->
data-bind="html: displayNameWithStatus"
knockout has two bindings for putting a value on the page. text: sets textContent, so markup shows up as characters. html: sets innerHTML, so markup becomes elements. the path from the response to displayNameWithStatus runs through _initDisplayInfo in Dialogs/index.js and escapes or sanitizes nothing on the way.
an xss in an ordinary web page gets that page's cookies. this one runs somewhere better. the manage access dialog is a webview with a bridge to electron's main process, window.host.executeFunction(op, args), which runs any operation in the main process's registry. nothing scopes which operations a dialog may call.
and the dialog's content security policy doesn't get in the way of injected script:
script-src 'self' 'unsafe-inline' 'unsafe-eval' // inline event handlers run
connect-src 'self' https: // fetch() to any https host
so script that arrived as an acl principal name can ask the main process for two things and send them anywhere over https:
window.host.executeFunction(op, args)
PersistentStorage.CustomConnections.getAllCustomConnections
-> every saved sas url and connection string, decrypted
Azure.UserAccounts.getTenantToken({resource:'https://management.azure.com/'})
-> a live arm token for the signed-in user, scp=user_impersonation
there's a third token the attacker gets without asking for it. storage explorer sends the user's storage.azure.com bearer token with the getAccessControl request itself, so the endpoint has it before the dialog has drawn anything.
none of this needs a man in the middle or anything installed on the victim's machine. storage explorer handles storageexplorer:// links, and one can attach a file system by url, using the identity the victim is already signed in with. the check on that url, AttachableUrlValidator, has no list of allowed domains. it only refuses localhost and 127.0.0.1.
so the attacker runs an adls gen2 dfs endpoint on any domain they own, behind an ordinary public tls certificate, and sends the link. because the certificate is real, storage explorer runs normally, with no --ignore-certificate-errors. the only built-in warning is a yellow, non-blocking note that the endpoint suffix is not a known blob or dfs suffix, and a hostname like contoso.dfs.core.windows.net.<attacker-domain> reads like a real storage account at a glance.
after that, the victim opens manage access on the attached file system. the endpoint answers getAccessControl with the payload as the directory owner, the dialog renders it, and it runs.
end to end, through the real gui rather than by injecting into the dialog programmatically: a storageexplorer:// link attaches the file system from my endpoint, then manage access on it. the endpoint served a valid public certificate and storage explorer was started normally. the dialog rendered the owner name as markup, the script called the bridge, and the saved connections and the arm token arrived at my server alongside the storage token from the acl request.
msrc got a video of the whole flow and the poc server.
microsoft shipped the fix in storage explorer 1.45.0. if you use storage explorer, check that you're on 1.45.0 or later.
one link and one click on manage access. from that, an attacker gets every saved sas url and connection string, a live arm token and a live storage token: data-plane access to the victim's storage, and control-plane access to their subscriptions as far as the identity's rbac goes. microsoft rated it important, cvss 8.8, and its advisory says a successful attacker could "authenticate against a remote host using the current user's credentials".