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

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: 4a0a004730450221008dc1150959ef022ac84578935e0d35aa0deee05aafef7c52b8313287705d88fb02204ec7b85292fe1f20eb35acf09d8d1d9f8ecb664625fc476a828004a032c6fd0e:922c64590222798bb761d5b6d8e72950