Directory Traversal in nginx WebDAV Module (ngx_http_dav_module)
A directory traversal vulnerability exists in nginx (Engine X) before version 0.7.63 and 0.8.x before 0.8.17, specifically in the ngx_http_dav_module.c source file. The vulnerability allows remote authenticated users to create or overwrite arbitrary files on the server by including a '..' (dot dot) sequence in the Destination HTTP header when using the WebDAV COPY or MOVE methods. This occurs due to insufficient sanitization of the Destination header, enabling attackers to traverse directories outside the intended WebDAV root.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Exploitation of this vulnerability allows authenticated remote users to create or overwrite arbitrary files on the server filesystem, potentially leading to unauthorized file creation, data loss, privilege escalation, or further compromise of the server depending on the files targeted and the server configuration.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, disable the WebDAV module or restrict access to trusted users only. Additionally, use network-level controls to limit access to the affected endpoints and monitor for suspicious WebDAV activity.
Patch, then assume compromise.
Upgrade nginx to version 0.7.63 or later, or 0.8.17 or later, where the vulnerability is patched. Ensure that all instances using the WebDAV module are updated accordingly.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.