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.
  impact: |
    Unauthenticated attackers can obtain sensitive PLC status information without authentication due to improper access controls, potentially revealing critical industrial control system details.
  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.24753
    epss-percentile: 0.97618
    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,vkev,vuln

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: 4a0a0047304502207457b12777493b6d89b3cf014d5965e841880b6f90377ab7bebcf7adb45de5fe02210086af1a4f3fc6e6a7ae49fb3ec4736fb82cdbdc892d8677555571864c7b0a6edf:922c64590222798bb761d5b6d8e72950