Skip to content
RCE Write-up Intermediate

Microsoft Windows Contacts (VCF/Contact/LDAP) syslink control href attribute escape vulnerability (CVE-2022-44666) (0day).

Windows Contacts fails to properly sanitise the href attribute of SysLink controls, allowing an attacker to inject a crafted anchor element that executes arbitrary local files when clicked. An attacker could achieve remote code execution as the logged-in user by delivering a malicious VCF or .contact file, or via the ldap URL protocol handler.

j00sean Follow

Published on github.com

This is the story about another forgotten 0day fully disclosed more than 4 years ago by John Page (aka hyp3rlinx). To understand the report, you have to consider i'm stupid :-) And my stupidicity drives me to take longer paths to solve simple issues, but it also leads me to figure out another ways to exploit some bugs.

j00sean (@j00sean), on github.com

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

Impact

Remote code execution as the current user, though the attacker must convince the victim to open a crafted file and click a link, and remote shared locations cannot be used directly.

What the attacker needed

Victim opens a crafted VCF or .contact file; victim clicks an injected link; file association to Windows Contacts

How it was found

  1. Create a VCF or .contact file containing a crafted URL;WORK field with an injected anchor element.
  2. Double-click the file to open it in Windows Contacts.
  3. Single-click the injected link.
  4. The link launches a local executable, a .lnk file, or a DLL via rundll32.

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.

Windows Contacts is a built-in program for storing contact details. It shows clickable links, but it does not check what those links point to. An attacker can make a contact file that contains a link which, when clicked, runs a program already on the computer, such as Notepad, with the user's permissions.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Microsoft (Windows)

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.