Merge pull request #8353 from projectdiscovery/phpcs-config

Create phpcs-config.yaml
patch-1
Ritik Chaddha 2023-10-10 19:34:28 +05:30 committed by GitHub
commit 44bf53d4e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,43 @@
id: phpcs-config
info:
name: PHP_CodeSniffer Configuration Exposure - Detect
author: DhiyaneshDK
severity: info
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
cvss-score: 0.0
cwe-id: CWE-200
metadata:
max-request: 1
verified: true
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='
- '<file>'
condition: and
- type: word
part: header
words:
- "application/xml"
- type: status
status:
- 200