id: projectsend-login

info:
  name: ProjectSend Login Panel - Detect
  author: idealphase
  severity: info
  description: ProjectSend login panel was detected.
  reference:
    - https://www.exploit-db.com/ghdb/7380
    - https://github.com/projectsend/projectsend
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:projectsend:projectsend:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: projectsend
    product: projectsend
    google-query:
      - intext:Provided by ProjectSend
      - intext:provided by projectsend
    shodan-query: http.html:provided by projectsend
    fofa-query: body=provided by projectsend
  tags: panel,projectsend,edb,discovery

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

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - 'Provided by <a href="https?:\/\/www\.projectsend\.org\/" target="_blank">ProjectSend<\/a>'

      - type: word
        part: body
        words:
          - 'id="login_form"'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - "version (.*) - Free software"
# digest: 490a00463044022054daf86308ca2cacbdda2908771e1ae2d1f56a6b63b2e1afc5a73b44ab4905be02205b4aff29aefecb2127d7e06e3b6d0a0d049443e17126031469f5c12e7d8f9cba:922c64590222798bb761d5b6d8e72950