HexBrain

Browse / CVEs / CVE-2020-7943

CVE-2020-7943· puppet / puppet enterprise· CWE-276, NVD-CWE-noinfo

Puppet Server/PuppetDB - Sensitive Information Disclosure

highseverity
7.5CVSS score
7.7%likelihood of exploitation, next 30 days
95%of all CVEs are less likely
Readycheck to confirm it

Puppet Server and PuppetDB provide useful performance and debugging information via their metrics API endpoints, which may contain sensitive information when left exposed.

Impact

An attacker can exploit this vulnerability to gain access to sensitive information stored in Puppet Server/PuppetDB.

Fix

Apply the necessary patches or updates provided by Puppet to fix the vulnerability and ensure sensitive information is properly protected.

How to confirm it

Send: GET {{BaseURL}}/metrics/v1/mbeans
Positive when: contains "trapperkeeper" AND contains in header "application/json" AND status 200

Run it with nuclei: nuclei -id CVE-2020-7943 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2020-7943

info:
  name: Puppet Server/PuppetDB - Sensitive Information Disclosure
  author: c-sh0
  severity: high
  description: Puppet Server and PuppetDB provide useful performance and debugging information via their metrics API endpoints, which may contain sensitive information when left exposed.
  impact: |
    An attacker can exploit this vulnerability to gain access to sensitive information stored in Puppet Server/PuppetDB.
  remediation: |
    Apply the necessary patches or updates provided by Puppet to fix the vulnerability and ensure sensitive information is properly protected.
  reference:
    - https://puppet.com/security/cve/CVE-2020-7943
    - https://tickets.puppetlabs.com/browse/PDB-4876
    - https://puppet.com/security/cve/CVE-2020-7943/
    - https://nvd.nist.gov/vuln/detail/CVE-2020-7943
    - https://github.com/ARPSyndicate/cvemon
  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-7943
    cwe-id: CWE-276,NVD-CWE-noinfo
    epss-score: 0.07674
    epss-percentile: 0.94638
    cpe: cpe:2.3:a:puppet:puppet_enterprise:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: puppet
    product: puppet_enterprise
  tags: cve2020,cve,puppet,exposure,puppetdb,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/metrics/v1/mbeans"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "trapperkeeper"

      - type: word
        part: header
        words:
          - "application/json"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from