33 lines
728 B
YAML
33 lines
728 B
YAML
id: yarn-lock
|
|
|
|
info:
|
|
name: yarn lock file disclosure
|
|
author: oppsec,noraj
|
|
severity: info
|
|
description: The yarn.lock file stores the versions of each Yarn dependency installed. It's a lock file for package.json.
|
|
reference:
|
|
- https://classic.yarnpkg.com/lang/en/docs/yarn-lock/
|
|
tags: exposure,files
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/yarn.lock"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."
|
|
- "# yarn lockfile v1"
|
|
condition: and
|
|
|
|
- type: word
|
|
words:
|
|
- "text/html"
|
|
part: header
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|