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

37 lines
1.1 KiB
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 - Detect
2020-12-28 15:46:09 +00:00
author: Mahendra Purbia (Mah3Sec_)
2020-12-28 15:59:57 +00:00
severity: info
description: Composer configuration file detected.
reference: https://getcomposer.org/
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
2023-10-14 11:27:55 +00:00
cvss-score: 0
cwe-id: CWE-200
metadata:
max-request: 4
2023-10-14 11:27:55 +00:00
tags: config,exposure
2020-12-28 15:46:09 +00:00
http:
2020-12-28 15:46:09 +00:00
- 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') && contains(tolower(header), 'application/octet-stream') && 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') && contains(tolower(header), 'application/json') && status_code == 200"
# digest: 4b0a00483046022100b7a8e1af8ab8c1c09e7034dc29cab2a0f30f29b6a83e2fe169ae0c7628b51f86022100f6b733a47889216dd67b81047d78714ee50d302a255e4fb90cc508d6b7f93dd0:922c64590222798bb761d5b6d8e72950