nuclei-templates/exposures/files/npmrc-authtoken.yaml

31 lines
643 B
YAML
Raw Normal View History

2022-12-01 05:53:09 +00:00
id: npmrc-authtoken
info:
2022-12-01 18:44:53 +00:00
name: Hardcoded .npmrc AuthToken
2022-12-01 05:53:09 +00:00
author: geeknik
severity: high
reference:
- https://docs.npmjs.com/cli/v8/configuring-npm/npmrc
- https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry
metadata:
verified: true
2022-12-01 19:09:57 +00:00
google-dork: intitle:"index of" ".npmrc"
2022-12-01 05:53:09 +00:00
tags: npm,exposure
requests:
- method: GET
path:
- "{{BaseURL}}/.npmrc"
matchers-condition: and
matchers:
- type: word
words:
- "_authToken="
2022-12-01 19:09:57 +00:00
- "_auth="
condition: or
2022-12-01 05:53:09 +00:00
- type: status
status:
- 200