id: linshare-panel

info:
  name: LinShare Login Panel - Detect
  author: righettod
  severity: info
  description: LinShare login panel was detected.
  reference:
    - https://www.linshare.org/
    - https://github.com/linagora/linshare
  metadata:
    verified: true
    max-request: 3
    shodan-query: http.title:"LinShare"
  tags: panel,linshare,login,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/login"
      - "{{BaseURL}}/new/login"

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(body, "<title>LinShare", "x-ng-app=\"linshareAdminApp")'
        condition: and
# digest: 4a0a00473045022100ccf6e29279487dc81996bb1bc95e6e8139a33f985beda8dbf09741081a59658602206ea9819f75e56229ff3b559ed88d21e28d2306c5f234fc86ef988a2f070dd3bd:922c64590222798bb761d5b6d8e72950