29 lines
605 B
YAML
29 lines
605 B
YAML
id: package-json
|
|
|
|
info:
|
|
name: npm package.json disclosure
|
|
author: geeknik
|
|
severity: info
|
|
description: All npm packages contain a file, usually in the project root, called package.json - this file holds various metadata relevant to the project.
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/package.json"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "name"
|
|
- "version"
|
|
condition: and
|
|
|
|
- type: word
|
|
words:
|
|
- "application/json"
|
|
part: header
|
|
|
|
- type: status
|
|
status:
|
|
- 200 |