id: newrelic-rest-api-key

info:
  name: REST API Key Disclosure
  author: Ice3man
  severity: info
  reference:
    - https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/#rest-api-key
  metadata:
    max-request: 1
  tags: exposure,token,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors:
      - type: regex
        part: body
        regex:
          - '(?i)NRRA-[a-f0-9]{42}'
# digest: 490a0046304402206236ea43f99c8505f2378babf6a2eb1807885d60d9855bc93e83cf1b4c55cc2a02205fc5cc12cecdf345c3b71ea0d050d9413fd3689f760fe97df655afb97db713cb:922c64590222798bb761d5b6d8e72950