id: symfony-security

info:
  name: Symfony security.yml File Disclosure
  author: DhiyaneshDK
  severity: info
  classification:
    cpe: cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 3
    vendor: sensiolabs
    product: symfony
    google-query: intitle:"index of" "security.yml"
  tags: symfony,devops,exposure,files

http:
  - method: GET
    path:
      - "{{BaseURL}}/security.yml"
      - "{{BaseURL}}/config/security.yml"
      - "{{BaseURL}}/app/config/security.yml"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'security:'
          - 'providers:'
        condition: and

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