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
  metadata:
    verified: true
    max-request: 2
    shodan-query: html:"phinx.yml"
  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:"
        condition: and

      - type: status
        status:
          - 200

# digest: 4a0a0047304502207fac05bf9b5288590ff1dad404df9c154e769f295f3ab5bab661b78c63a426a1022100ac01085c886cc028a468998118b39172fdd3340f9ce5e506c2767184ee4b19a5:922c64590222798bb761d5b6d8e72950
