Merge pull request #6198 from projectdiscovery/npmrc-authtoken

Create npmrc-authtoken.yaml
patch-1
Ritik Chaddha 2022-12-02 00:44:42 +05:30 committed by GitHub
commit 303838dd37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
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
google-dork: intitle:"index of" ".npmrc"
tags: npm,exposure
requests:
- method: GET
path:
- "{{BaseURL}}/.npmrc"
matchers-condition: and
matchers:
- type: word
words:
- "_authToken="
- "_auth="
condition: or
- type: status
status:
- 200