id: exposed-darcs

info:
  name: Darcs Configuration - Detect
  author: daffainfo
  severity: info
  description: Darcs configuration was detected.
  reference:
    - http://darcs.net/Using/Configuration#sources
  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: 1
  tags: config,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/_darcs/prefs/binaries"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Binary file regexps"

      - type: status
        status:
          - 200
# digest: 490a0046304402200d2373534e780879fe9ebb151e2f5baf9f82061696ca671d24b2dc5cc6c8291b02207a825b3b7f092d55b2cc8a0c57352610127afd6b013ce281887b1fc4fd1ffc87:922c64590222798bb761d5b6d8e72950