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

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

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