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

30 lines
667 B
YAML
Raw Normal View History

2021-10-01 14:33:51 +00:00
id: api-npm
info:
name: NPM API Test
author: zzeitlin
severity: info
reference:
- https://docs.npmjs.com/creating-and-viewing-access-tokens
metadata:
max-request: 1
2023-10-14 11:27:55 +00:00
tags: token-spray,node,npm
2021-10-01 14:33:51 +00:00
2021-10-20 08:46:18 +00:00
self-contained: true
2023-10-14 11:27:55 +00:00
http:
2021-10-01 14:33:51 +00:00
- method: GET
path:
- "https://registry.npmjs.org/-/whoami"
2023-10-14 11:27:55 +00:00
2021-10-01 14:33:51 +00:00
headers:
Authorization: Bearer {{token}}
matchers:
- type: status
2021-10-01 15:31:12 +00:00
status:
2021-10-01 14:33:51 +00:00
- 401
- 403
negative: true
# digest: 4a0a00473045022057be80c1e2ae7c8da088ffc2e109095690a3b333ed148cb7c0d3ebb41859c9ac022100968578a69a2226a9117634bc5534e63a92150c0e3606b29ed93de9def127527f:922c64590222798bb761d5b6d8e72950