id: symfony-security-config

info:
  name: Symfony Security Configuration File - Detect
  author: dahse89
  severity: info
  description: Symfony security configuration file was detected.
  reference:
    - https://symfony2-document.readthedocs.io/en/latest/book/security.html
    - https://symfony.com/doc/current/reference/configuration/security.html
  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
    cwe-id: CWE-200
  metadata:
    max-request: 2
  tags: config,exposure,symfony,vuln

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

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "security:"
          - "firewalls:"
          - "access_control:"
        condition: and
        part: body
# digest: 4b0a004830460221009445d243c779ad635d50f0389b7931fd267af2715a036cd58b105836fc8af5f9022100aa32ce221550cb9da5c409b79b79bfc294179dae1cf024da6c35bc0b8bab46e9:922c64590222798bb761d5b6d8e72950