2023-10-10 08:00:30 +00:00
|
|
|
id: phpcs-config
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: PHP_CodeSniffer Configuration Exposure - Detect
|
|
|
|
author: DhiyaneshDK
|
2023-10-10 13:58:16 +00:00
|
|
|
severity: info
|
2023-10-10 08:00:30 +00:00
|
|
|
description: |
|
|
|
|
PHP_CodeSniffer configuration file was detected.
|
|
|
|
reference:
|
|
|
|
- https://github.com/squizlabs/PHP_CodeSniffer
|
|
|
|
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
|
2023-10-10 08:00:30 +00:00
|
|
|
cwe-id: CWE-200
|
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-10-14 11:27:55 +00:00
|
|
|
max-request: 1
|
2023-10-10 08:00:30 +00:00
|
|
|
shodan-query: html:"phpcs.xml"
|
|
|
|
tags: devops,exposure,php,phpcs
|
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/phpcs.xml"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- 'ruleset name'
|
|
|
|
- 'rule ref='
|
2023-10-10 13:58:16 +00:00
|
|
|
- '<file>'
|
2023-10-10 08:00:30 +00:00
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- "application/xml"
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 490a0046304402204e685ddacbc57cedad56dc14335a6d40d5a1149c1e458ce7ed14dcb7f973163c02200b31de7aa166dd0534e283082923ba64bdf07dde76551a198654496173262bb5:922c64590222798bb761d5b6d8e72950
|