id: syncthing-dashboard

info:
  name: Syncthing Dashboard Exposure
  author: fabaff
  severity: medium
  description: Syncthing Dashboard is exposed.
  reference:
    - https://syncthing.net/
  classification:
    cpe: cpe:2.3:a:syncthing:syncthing:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: syncthing
    product: syncthing
    shodan-query: http.html:'ng-app="syncthing"'
  tags: misconfig,syncthing,exposure

http:
  - method: GET
    path:
      - '{{BaseURL}}'

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'The Syncthing Authors.'
          - 'Actions'
        condition: and

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