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,discovery

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: 490a00463044022057ea9d046a28906a03c2ec18b536e868f1fbaeea1bb989b4ecfdce66cfdf345d0220488a1191ed65ae415745eb37e8c89635ea149f802e7e2aecef5b2d6e9f5b53c3:922c64590222798bb761d5b6d8e72950