Skip to content
Misconfiguration Write-up Intermediate

CVE-2024-38213: Copy2pwn Exploit Evades Windows Web Protections

Files copied from a WebDAV share to a local Windows machine did not receive the Mark-of-the-Web, so they could be opened without SmartScreen or Office Protected View checks. An attacker could host a malicious file on a WebDAV share and lure a user into copying it locally, leading to code execution without those protections.

Peter Girnus Follow

Published on zerodayinitiative.com

In March 2024, Trend Micro’s Zero Day Initiative Threat Hunting team started analyzing samples connected to the activity carried out by DarkGate operators to infect users through copy-and-paste operations. This DarkGate campaign was an update from a previous campaign in which the DarkGate operators were exploiting a…

Peter Girnus (@gothburz), on zerodayinitiative.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

Root cause

Likely Windows treated WebDAV shares like local network shares rather than internet sources, so the copy operation did not apply the Mark-of-the-Web.

Impact

An attacker could execute code on a victim's machine without the usual SmartScreen or Office Protected View warnings, because the copied file lacked the Mark-of-the-Web.

What the attacker needed

Victim uses Windows; attacker hosts file on a WebDAV share; victim copies file from share to local disk

The fix

Microsoft fixed this in the June 2024 security patch so that files copied from WebDAV shares now receive the Mark-of-the-Web.

How it was found

  1. Host a malicious file on a WebDAV share.
  2. Craft a Windows search query that opens the WebDAV share in Windows Explorer and shows only chosen files.
  3. Lure the user into copying a file from the WebDAV share to their local desktop.
  4. The copied file lacks the Mark-of-the-Web and can be opened without SmartScreen or Protected View warnings.

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.

When you download a file from the internet, Windows usually adds a hidden tag called the Mark-of-the-Web. This tag tells Windows to check the file with security tools like SmartScreen before you open it. The bug meant that files copied from a special kind of web folder called WebDAV skipped getting that tag, so they could run without those safety checks.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Peter Girnus

View all

4 more disclosed reports, best first.

More from Microsoft (Windows)

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.