id: newrelic-admin-api-key

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

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

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