id: friendica-panel

info:
  name: Friendica Panel - Detect
  author: righettod
  severity: info
  description: |
    Friendica Login Panel was detected.
  reference:
    - https://friendi.ca
  classification:
    cpe: cpe:2.3:a:friendica:friendica:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: friendica
    product: friendica
    shodan-query:
      - http.title:"Friendica"
      - http.title:"friendica"
    fofa-query: title="friendica"
    google-query: intitle:"friendica"
  tags: friendica,panel,login,detect

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'title="Search in Friendica'
          - 'Welcome to Friendica Social Network'
          - 'content="Friendica'
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)v=([a-z0-9.-]+)'
# digest: 4a0a0047304502202f9fc96622e27cf9a1756d356cbf3644c8e8a2b6ef737159b8d98fa939d6b45f0221009c9df6d314e3896bbb4f37f24bc7fbf1174bbfbfa7494546fbe671d159b331dc:922c64590222798bb761d5b6d8e72950