id: openproject-detect

info:
  name: OpenProject - Detect
  author: ricardomaia
  severity: info
  description: OpenProject is an open source web-based project management software.
  reference:
    - https://www.openproject.org/
  classification:
    cpe: cpe:2.3:a:openproject:openproject:*:*:*:*:*:*:*:*
  metadata:
    verified: "true"
    max-request: 3
    vendor: openproject
    product: openproject
    shodan-query: title:"openproject"
  tags: tech,openproject,api,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/api/v3"
      - "{{BaseURL}}/activity.atom"

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: regex
        regex:
          - '.*OpenProject.Foundation.\(OPF\)'
          - "<generator uri=.*openproject.org.*>"
        condition: or

      - type: word
        words:
          - "OpenProject"
          - "instanceName"
        condition: and

      - type: word
        part: header
        words:
          - "_open_project_session"
# digest: 4a0a0047304502203a5a7bb7b5a67e117d0ee406307cf341fa10610541c305c187c7ee491355383d02210092cb2714a65031d2847a3074f28806c81179191438b788c562a518c79a1c18cc:922c64590222798bb761d5b6d8e72950