id: phinx-config

info:
  name: Phinx Configuration Exposure
  author: DhiyaneshDk
  severity: medium
  description: Phinx configuration file was exposed.
  reference:
    - https://book.cakephp.org/phinx/0/en/configuration.html
    - https://github.com/cakephp/phinx
    - https://www.tenable.com/plugins/was/113433
    - https://phinx.org/
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"phinx.yml"
  tags: devops,exposure,files

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'paths:'
          - 'environments:'
          - 'development:'
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100e21e46f7f7f32db860c0adb33355298087714800841fc54256d198b42ea419db02203c2a53c2a112546383fc2d86eb3f376378fb38569cd786cf218ad4eba92535f2:922c64590222798bb761d5b6d8e72950