2021-01-02 20:52:32 +00:00
id : package-json
info :
2023-07-04 03:52:19 +00:00
name : NPM package.json Disclosure
2023-01-06 17:17:07 +00:00
author : geeknik,afaq,noraj
2021-01-02 20:52:32 +00:00
severity : info
2023-07-04 03:52:19 +00:00
description : |
All NodeJS packages contain a file, usually in the project root, called package.json - this file holds various metadata relevant to the project generated by package managers such as npm, yarn, pnpm.
2023-01-06 17:17:07 +00:00
reference :
- https://docs.npmjs.com/cli/v9/configuring-npm/package-json
- https://classic.yarnpkg.com/lang/en/docs/package-json/
2023-01-06 17:41:11 +00:00
- https://pnpm.io/package_json
2023-04-28 08:11:21 +00:00
metadata :
2023-07-04 03:52:19 +00:00
verified : true
2023-10-14 11:27:55 +00:00
max-request : 2
2023-07-04 03:52:19 +00:00
tags : config,exposure,node,npm
2021-01-02 20:52:32 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-01-02 20:52:32 +00:00
- method : GET
path :
- "{{BaseURL}}/package.json"
2021-01-07 18:56:47 +00:00
- "{{BaseURL}}/package-lock.json"
2021-01-02 20:52:32 +00:00
matchers-condition : and
matchers :
- type : word
words :
- "name"
- "version"
condition : and
- type : word
2023-07-04 03:52:19 +00:00
part : header
2021-01-02 20:52:32 +00:00
words :
- "application/json"
- type : status
status :
2023-02-05 18:28:39 +00:00
- 200
2023-10-20 11:41:13 +00:00
# digest: 4a0a00473045022041a2b51adce1e4d2a01fd0017fbe04dbb4d313af6b075e94190bb5368dd55fa2022100b34322e5720bd3eb652a881f24425e0c081e155e6a2c36782bccaf21a07409d2:922c64590222798bb761d5b6d8e72950