nuclei-templates/exposures/configs/composer-config.yaml

26 lines
725 B
YAML
Raw Normal View History

2021-01-10 22:54:00 +00:00
id: composer-config
2020-12-28 15:46:09 +00:00
info:
name: composer-config-file
author: Mahendra Purbia (Mah3Sec_)
2020-12-28 15:59:57 +00:00
severity: info
2020-12-28 15:46:09 +00:00
requests:
- method: GET
path:
- "{{BaseURL}}/composer.json"
- "{{BaseURL}}/composer.lock"
2021-01-02 06:41:27 +00:00
- "{{BaseURL}}/.composer/composer.json"
- "{{BaseURL}}/vendor/composer/installed.json"
2020-12-28 15:59:31 +00:00
2020-12-28 15:46:09 +00:00
matchers:
2021-01-02 06:40:26 +00:00
- type: dsl
name: composer.lock
dsl:
- "contains(body, 'packages') == true && contains(tolower(all_headers), 'application/octet-stream') == true && status_code == 200"
2020-12-28 15:46:09 +00:00
2021-01-02 06:40:26 +00:00
- type: dsl
name: composer.json
dsl:
- "contains(body, 'require') == true && contains(tolower(all_headers), 'application/json') == true && status_code == 200"