id: exposed-svn

info:
  name: SVN Configuration - Detect
  author: udit_thakkur,dwisiswant0
  severity: medium
  description: SVN configuration was detected.
  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:
    max-request: 1
  tags: config,exposure,svn,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/.svn/entries"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "(^\\d\\s*dir|\\.svn-base|has-props|svn:\\/\\/|([\\da-f]{32}[\\S+\\r\\n\\s]+[\\d]{4}-[\\d]{2}-[\\d]{2}T[\\d]{2}:[\\d]{2}:[\\d]{2}.[\\d]{6}Z))"

      - type: status
        status:
          - 200

      - type: word
        part: header
        words:
          - "text/plain"
# digest: 4a0a0047304502206b8d68131d21b062cfc45470c19eba930ee5eda6c6605dabc23dd72fcc9689e3022100966d68a2360df5c9f46ffcf3e5b60b3380556657a3ca40ee61a31839b0fdcc85:922c64590222798bb761d5b6d8e72950