Join our Newsletter — 33% off our NHI Course
Home› Glossary› Threats, Abuse & Incident Response› WebDAV MKCOL Path Traversal
Threats, Abuse & Incident Response

WebDAV MKCOL Path Traversal

← Back to Glossary
By NHI Mgmt Group Updated October 28, 2026 Domain: Threats, Abuse & Incident Response

WebDAV MKCOL path traversal is an attack where a crafted MKCOL request abuses path handling to create directories outside the intended location. It relies on insufficient normalisation or sanitisation of the request path, letting an attacker write to unexpected directories on a web server.

What Makes WebDAV MKCOL Path Traversal Dangerous

WebDAV MKCOL is meant to create directories, but path traversal turns that capability into an unintended write primitive. When servers accept crafted paths without strict normalisation, an attacker can force directory creation outside the intended WebDAV root and place files where they should never have write access.

The danger is not just mistaken directory placement. Once an application lets an unauthorised path influence filesystem writes, the result can be website defacement, placement of executable content, log or configuration tampering, or a foothold for broader compromise if the target directory is security-sensitive.

How the Vulnerability Works in Practice

Path traversal issues appear when the server interprets path segments differently from the application’s security logic. Dot-dot segments, encoded separators, mixed normalisation rules, or inconsistent handling of trailing slashes can let a request escape its intended directory boundary.

With MKCOL, the attacker is not trying to read a file as in classic traversal examples. The goal is to create a directory in an unexpected location. That matters because write access is often more dangerous than read access when the destination can influence web content, deployment paths, or application state.

This class of flaw is closely related to broader traversal and input-handling problems, so the defensive mindset should match other directory traversal issues: treat every user-controlled path as untrusted until it has been canonicalised, bounded, and re-checked against an allowed base path.

How Defenders Confirm Exposure

Exposure analysis starts with inventorying any WebDAV-enabled server, reverse proxy, or application component that accepts MKCOL. Teams should confirm whether the endpoint is reachable from the internet, whether WebDAV is actually required, and whether any upstream proxy rewrites or backend filesystem mappings expand the attack surface.

Validation should include the vendor advisory or product documentation for the exact server stack, because the practical risk often depends on request routing, filesystem permissions, and normalisation behaviour in that specific implementation. Organisations should also review whether WebDAV methods are enabled more broadly than intended, especially on public-facing sites.

For web application context, it is useful to map the issue to the broader pattern of path traversal and broken access control. The key question is not only whether traversal is theoretically possible, but whether a crafted MKCOL request can reach a directory boundary that matters operationally.

Detection, Containment, and Recovery

Detection should focus on unusual MKCOL usage, unexpected directory creation events, and requests containing traversal markers or encoded path segments. Access logs, application logs, and filesystem monitoring can help identify suspicious attempts and confirm whether a write landed outside the intended location.

If patching is not immediately possible, reduce exposure by disabling WebDAV where it is unnecessary, restricting the method at the reverse proxy or web server layer, and tightening filesystem permissions so the web process cannot write into sensitive directories. Strong containment also means separating writable content paths from code, configuration, and executable locations.

After suspected exploitation, review newly created directories and files, and inspect adjacent locations for follow-on tampering. If the server can write into session stores, upload paths, or application configuration areas, the compromise may extend beyond the initial directory creation event.

Risk and Threat Considerations

WebDAV MKCOL path traversal is attractive to attackers because it converts a single malformed request into filesystem write access outside the intended boundary. That can enable persistence, defacement, content injection, or preparation for a second-stage attack if the created path sits somewhere the server later executes or serves.

Failure mechanism: The server fails to canonicalise and revalidate the requested path after decoding and normalisation, so directory creation is evaluated against the wrong filesystem location.

Impact: An attacker may place data or directories in privileged locations, tamper with web content or configuration, and in some deployments create a stepping stone toward code execution or broader compromise.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 and MITRE ATT&CK address the attack and risk surface, while OWASP ASVS, CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV4 — API and Web ServiceMKCOL is a web-service request method and the issue is unsafe handling of request paths.
Recommendation — Validate and authorise Web service requests before they can influence filesystem writes.
CIS Controls v8CIS-16 — Application Software SecurityThe flaw is an application-layer input handling weakness in a web server interface.
Recommendation — Harden web application input handling so crafted request paths cannot escape the intended root.
NIST SP 800-53 Rev 5SI-10 — Information Input ValidationThe vulnerability exists because untrusted path input is not normalised and validated safely.
Recommendation — Apply input validation controls to reject or canonicalise attacker-controlled paths before filesystem use.
OWASP API Security Top 10API8 Security Misconfiguration — Security MisconfigurationExposure often depends on unsafe server configuration and permissive WebDAV enablement.
Recommendation — Remove or restrict WebDAV exposure and align server configuration with least-privilege write paths.
MITRE ATT&CKT1105 — Ingress Tool TransferAttackers may use a write primitive to place follow-on content on the server.
Recommendation — Monitor for suspicious file creation and staging activity after abnormal WebDAV writes.

Practitioner Guidance

Why practitioners should care: MKCOL should never be treated as a harmless housekeeping method. If a WebDAV endpoint can create directories, it must be governed with the same care as any other write-capable interface, because write paths are often the shortest route to real impact.

What to watch for: Review whether the server enforces a single canonical path view before authorising the write. The most important implementation detail is that security checks must occur after decoding and normalisation, not before them.

Where possible, remove WebDAV from internet-facing deployments entirely. When it is genuinely required, confine it to tightly scoped directories, verify request-method handling at every layer, and keep writable paths isolated from executable or configuration-bearing locations.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 28, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org