id: cakephp-config

info:
  name: CakePHP Configuration File - Detect
  author: DhiyaneshDk
  severity: medium
  description: CakePHP configuration file was detected.
  reference:
    - https://book.cakephp.org/phinx/0/en/configuration.html
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
    cpe: cpe:2.3:a:cakephp:cakephp:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    shodan-query: html:"phinx.yml"
    product: cakephp
    vendor: cakephp
  tags: files,exposure,config

http:
  - method: GET
    path:
      - "{{BaseURL}}/phinx.yml"
      - "{{BaseURL}}/phinx.yaml"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "host:"
          - "name:"
          - "pass:"
          - "adapter:"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a0046304402206e4611dbc04122ed3f9d1ad28fd7473095347a1bff8e95a33b99a0309699a19202205b6c1c1d72c4279d8b6f7d3ffda2cceaf54895da937f44329fd54542833da376:922c64590222798bb761d5b6d8e72950