id: CVE-2018-16670

info:
  name: CirCarLife <4.3 - Improper Authentication
  author: geeknik
  severity: medium
  description: CirCarLife before 4.3 is susceptible to improper authentication. A PLC status disclosure exists due to lack of authentication for /html/devstat.html. An attacker can obtain sensitive information, modify data, and/or execute unauthorized operations.
  remediation: |
    Upgrade CirCarLife to version 4.3 or higher to fix the improper authentication issue.
  reference:
    - https://www.exploit-db.com/exploits/45384
    - https://github.com/SadFud/Exploits/tree/master/Real%20World/Suites/cir-pwn-life
    - https://www.exploit-db.com/exploits/45384/
    - https://nvd.nist.gov/vuln/detail/CVE-2018-16670
    - https://github.com/20142995/sectool
  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-16670
    cwe-id: CWE-287
    epss-score: 0.00169
    epss-percentile: 0.53916
    cpe: cpe:2.3:a:circontrol:circarlife_scada:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: circontrol
    product: circarlife_scada
  tags: cve,cve2018,scada,plc,iot,disclosure,edb,circarlife,circontrol

http:
  - method: GET
    path:
      - "{{BaseURL}}/services/user/values.xml?var=STATUS"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "CirCarLife Scada"

      - type: word
        part: body
        words:
          - "<values><variable><id>"
          - "Reader.STATUS"
        condition: and
# digest: 4b0a00483046022100e9a92579c1c238310ebd4e5b286c2be5996bb424926707aebfc53c1affabef01022100bdbe95d2ea918c7a717174f6195a801e2354131f423ac56e578321d1e3cc3cdc:922c64590222798bb761d5b6d8e72950