id: CVE-2020-0618

info:
  name: Microsoft SQL Server Reporting Services - Remote Code Execution
  author: joeldeleep
  severity: high
  description: Microsoft SQL Server Reporting Services is vulnerable to a remote code execution vulnerability because it incorrectly handles page requests.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
  remediation: |
    Apply the latest security updates provided by Microsoft to mitigate this vulnerability.
  reference:
    - https://www.mdsec.co.uk/2020/02/cve-2020-0618-rce-in-sql-server-reporting-services-ssrs/
    - https://github.com/euphrat1ca/CVE-2020-0618
    - https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-0618
    - http://packetstormsecurity.com/files/156707/SQL-Server-Reporting-Services-SSRS-ViewState-Deserialization.html
    - https://nvd.nist.gov/vuln/detail/CVE-2020-0618
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2020-0618
    cwe-id: CWE-502
    epss-score: 0.99022
    epss-percentile: 0.99926
    cpe: cpe:2.3:a:microsoft:sql_server:2012:sp4:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: microsoft
    product: sql_server
  tags: cve,cve2020,rce,packetstorm,microsoft,kev,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/ReportServer/Pages/ReportViewer.aspx"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'value="View Report"'

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