Lucene search
K

Miniweb 2.0 Full Path Disclosure

🗓️ 12 Dec 2009 00:00:00Reported by Salvatore FrestaType 
zdt
 zdt
🔗 0day.today👁 18 Views

Miniweb 2.0 Full Path Disclosure, local file inclusion vulnerability, fix using @main() instead of main(

Code
================================
Miniweb 2.0 Full Path Disclosure
================================

Miniweb 2.0 Full Path Disclosure
 
 Name              Miniweb 2.0
 Vendor            http://www.miniweb2.com

 
X. INDEX
 
 I.    ABOUT THE APPLICATION
 II.   DESCRIPTION
 III.  ANALYSIS
 IV.   SAMPLE CODE
 V.    FIX
 
 
I. ABOUT THE APPLICATION
 
Miniweb 2.0 is designed for those who want to transform  a
brochure  site  into  a dynamic Web 2.0 site that attracts
tons of traffic and sales.
 
 
II. DESCRIPTION
 
Preamble: I  don't  consider this argument a real security
flaw but it may be useful in some cases.
 
The value of the module parameter passed to index.php page
is  included  using  the  PHP main function. This may be a
principle  of  local file inclusion  vulnerability  but in
this  case  the  final  NULL  byte is  properly sanitised.
However an invalid module name produces a  warning message
with the full path of the interested page.
 
 
III. ANALYSIS
 
Summary:
 
 A) Full Path Disclosure
 
A) Full Path Disclosure
 
In  order  to  "exploit"  this  vulnerability,  you  don't
require anything.
 
 
IV. SAMPLE CODE
 
http://server/path/index.php?module=foo%00
 
 
V. FIX
 
Use @main() instead of main()



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

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