2021-01-10 22:54:00 +00:00
|
|
|
id: composer-config
|
2020-12-28 15:46:09 +00:00
|
|
|
|
|
|
|
info:
|
2023-02-05 17:59:20 +00:00
|
|
|
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
|
2023-02-05 17:00:27 +00:00
|
|
|
description: Composer configuration file detected.
|
2023-02-05 16:55:55 +00:00
|
|
|
reference: https://getcomposer.org/
|
2023-02-05 16:52:25 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
|
|
|
|
cvss-score: 0.0
|
|
|
|
cwe-id: CWE-200
|
2021-04-06 06:46:11 +00:00
|
|
|
tags: config,exposure
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 4
|
2020-12-28 15:46:09 +00:00
|
|
|
|
2023-04-27 04:28:59 +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"
|
2021-01-15 09:29:10 +00:00
|
|
|
- "{{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:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "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:
|
2023-06-19 21:10:30 +00:00
|
|
|
- "contains(body, 'require') && contains(tolower(header), 'application/json') && status_code == 200"
|