nuclei-templates/http/token-spray/api-npm.yaml

27 lines
471 B
YAML

id: api-npm
info:
name: NPM API Test
author: zzeitlin
severity: info
reference:
- https://docs.npmjs.com/creating-and-viewing-access-tokens
tags: token-spray,node,npm
metadata:
max-request: 1
self-contained: true
http:
- method: GET
path:
- "https://registry.npmjs.org/-/whoami"
headers:
Authorization: Bearer {{token}}
matchers:
- type: status
status:
- 401
- 403
negative: true