{"exploit":{"id":"EDB-9829","name":"Nginx 0.7.61 - WebDAV Directory Traversal","description":"Nginx 0.7.61 - WebDAV Directory Traversal","cves":["CVE-2009-3898"],"author":"kingcope","published":"2009-09-23","platform":"multiple","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/9829","path":"exploits/multiple/remote/9829.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-9829.txt","vulnerabilities":[{"id":"CVE-2009-3898","state":"PUBLISHED","title":null,"titleSource":null,"description":"Directory traversal vulnerability in src/http/modules/ngx_http_dav_module.c in nginx (aka Engine X) before 0.7.63, and 0.8.x before 0.8.17, allows remote authenticated users to create or overwrite arbitrary files via a .. (dot dot) in the Destination HTTP header for the WebDAV (1) COPY or (2) MOVE method.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-3898","cvss":{"version":"2.0","baseScore":4.9,"severity":"medium","vectorString":"AV:N/AC:M/Au:S/C:P/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2009-3898"},"updatedAt":"2024-08-07T06:45:51.019Z","retrievedAt":"2026-11-27T07:07:39.620Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-9829.png?v=2","url":"https://exploitbin.com/exploits/EDB-9829","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-9829/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-9829/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"Bug Title: nginx webdav copy/move method directory traversal\nProgram: nginx\nVersion: nginx/0.7.61 - other versions may also be affected\nWebsite: http://sysoev.ru/nginx/\nSeverity: Low\nDate discovered: 23 September 2009\n\nThe webdav component has to be enabled and the user has to have\npermission to use the COPY or MOVE methods.\n\nDescription:\nnginx (\"Engine X\", written by Igor Sysoev) has the ability to be used\nas a webdav publishing server.\nWith webdav you can for example copy or move files from\none to a different location. The move and copy methods require a\n\"Destination:\" HTTP header.\nThe destination header contains information about where the file\nshould be placed.\nBy using characters like \"../\" the attacker can traverse down the\ndirectory tree and place files\noutside the webroot. This is an insecure behaviour of the nginx webdav\nmodule and can be\nespecially dangerous when nginx is used in a virtual hosting\nenvironment. nginx runs as the\nuser nobody per default so normally this bug is not a big deal since\nan attacker may only\nbe allowed to write files to /tmp/ or nobody owned directories. The\nseverity is low because\nthis attack requires webdav \"upload\" permissions.\n\nHere is a sample request for the bug:\n\nCOPY /index.html HTTP/1.1\nHost: localhost\nDestination: http://localhost/../../../../../../../tmp/nginx.html\n\nThanks for your time,\n\nKingcope - kcope2@googlemail.com","sha256":"5537b4f58e1e40fef15442d3173b8bbea174fb0f568477ae18f88f02c00c6425","bytes":1388,"fetchedAt":"2026-11-27T07:07:37.148Z","encoding":"utf-8 (display only; download retains original bytes)"}