2021-10-01 14:33:51 +00:00
|
|
|
id: api-npm
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: NPM API Test
|
|
|
|
author: zzeitlin
|
|
|
|
severity: info
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://docs.npmjs.com/creating-and-viewing-access-tokens
|
2023-04-28 08:11:21 +00:00
|
|
|
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
|
|
|
|
2023-04-27 04:28:59 +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
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a00473045022057be80c1e2ae7c8da088ffc2e109095690a3b333ed148cb7c0d3ebb41859c9ac022100968578a69a2226a9117634bc5534e63a92150c0e3606b29ed93de9def127527f:922c64590222798bb761d5b6d8e72950
|