nuclei-templates/http/misconfiguration/php/php-composer-binary.yaml

33 lines
926 B
YAML
Raw Permalink Normal View History

2023-11-27 10:35:58 +00:00
id: php-composer-binary
info:
2024-01-02 15:32:35 +00:00
name: PHP Composer Binary - Exposure
2023-11-27 10:35:58 +00:00
author: mayank_pandey01
severity: info
description: |
2024-01-02 15:32:35 +00:00
This Nuclei template checks if the specified endpoints have publically accessible PHP Composer Binary.
2023-11-27 10:35:58 +00:00
remediation: |
Restrict access to the PHP Composer binary by implementing proper access controls and permissions.
metadata:
verified: true
max-request: 1
tags: php,composer,exposure,misconfig
2023-11-27 10:35:58 +00:00
http:
- method: GET
path:
- "{{BaseURL}}/composer"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "/usr/bin/env php"
2024-01-02 15:32:35 +00:00
- "<?php"
condition: and
2023-11-27 10:35:58 +00:00
- type: status
status:
- 200
# digest: 490a0046304402200f3a284d37788c749db87780601f7c094bcde6b9f97773cf31b9d4bdd9a37b76022062554612cea9563b5a35f4564497502d65c17f6b97df4fc3a94bf562e8189f55:922c64590222798bb761d5b6d8e72950