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
|
2022-12-08 17:51:33 +00:00
|
|
|
severity: info
|
2022-12-01 05:53:09 +00:00
|
|
|
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
|
2023-10-14 11:27:55 +00:00
|
|
|
max-request: 1
|
2023-01-23 22:14:23 +00:00
|
|
|
google-query: intitle:"index of" ".npmrc"
|
2022-12-01 05:53:09 +00:00
|
|
|
tags: npm,exposure
|
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-12-01 05:53:09 +00:00
|
|
|
- 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
|
|
|
|
2022-12-04 05:42:40 +00:00
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- "text/html"
|
|
|
|
- "application/javascript"
|
|
|
|
- "application/json"
|
|
|
|
negative: true
|
|
|
|
|
2022-12-01 05:53:09 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4b0a0048304602210098621df2f21f1e55d5f886ffa335c061b6b700f20ff390868f03acea716bf621022100b14a16b8048248ba2b1e60e2200cd0dfce51d296f3bd6e7f57317e5ec0bc95d7:922c64590222798bb761d5b6d8e72950
|