28 lines
555 B
YAML
28 lines
555 B
YAML
|
id: npmrc-authtoken
|
||
|
|
||
|
info:
|
||
|
name: Hardcoded .npmrc authToken
|
||
|
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
|
||
|
tags: npm,exposure
|
||
|
|
||
|
requests:
|
||
|
- method: GET
|
||
|
path:
|
||
|
- "{{BaseURL}}/.npmrc"
|
||
|
|
||
|
matchers-condition: and
|
||
|
matchers:
|
||
|
- type: word
|
||
|
words:
|
||
|
- "_authToken="
|
||
|
|
||
|
- type: status
|
||
|
status:
|
||
|
- 200
|