nuclei-templates/http/exposures/tokens/npm/npm-access-token.yaml

29 lines
853 B
YAML
Raw Normal View History

2023-03-07 09:40:29 +00:00
id: npm-access-token
info:
name: NPM Access Token (fine-grained)
author: DhiyaneshDK
severity: info
reference:
- https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/npm.yml
- https://docs.npmjs.com/about-access-tokens
- https://github.com/github/roadmap/issues/557
- https://github.blog/changelog/2022-12-06-limit-scope-of-npm-tokens-with-the-new-granular-access-tokens/
metadata:
2023-06-04 08:13:42 +00:00
verified: true
2023-10-14 11:27:55 +00:00
max-request: 1
2023-03-07 09:40:29 +00:00
tags: npm,token,exposure
http:
2023-03-07 09:40:29 +00:00
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
part: body
regex:
2023-10-14 11:27:55 +00:00
- "(npm_[A-Za-z0-9]{36})"
# digest: 4a0a00473045022100ec76fd6eebcac6830ced6391dfe3dda8bff4e2a83d5c159bd5d3d0dca0d294fb022004b53a075f434b82f7649bedd17bdaaa9ffa7e50dd267794b315ed77570b678f:922c64590222798bb761d5b6d8e72950