Oops I UDL'd it Again
A UDL file, a legacy Windows data link file, can be sent as an email attachment and, when opened, prompts the user to connect to a database server. An attacker can set the server name to a controlled host and capture the user's NetNTLMv2 hash or credentials when the user clicks 'test connection' or enters credentials.
Published on trustedsec.com
Phishing. We all love phishing.
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 UDL file format allows specifying an arbitrary server and port, and Windows will automatically attempt authentication to that server when the user tests the connection, without warning about the destination.
Impact
An attacker could capture NetNTLMv2 hashes or credentials, but the technique may be limited if outbound port 1433 is blocked; the attacker can change the port to 80 to bypass this.
What the attacker needed
Victim opens a UDL attachment; victim clicks 'test connection' or enters credentials; attacker controls a server reachable from victim
The fix
Microsoft should block UDL file attachments in Outlook by default, as the author predicts.
How it was found
- Create an empty file with the .udl extension.
- Open the file and enter a server name (attacker-controlled IP) and choose integrated security or enter credentials.
- Save the file and send it as an email attachment to the victim.
- The victim opens the file and clicks 'test connection' or enters credentials.
- The attacker captures the NetNTLMv2 hash or credentials.
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.
A UDL file is a simple text file that Windows uses to test connections to a database. When opened, it shows a dialog where you can enter a server name and credentials. An attacker can send this file as an email attachment and trick the user into connecting to a server the attacker controls, which captures the user's password hash or credentials.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.