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/
  metadata:
    verified: "true"
    max-request: 3
    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: 4a0a00473045022059c6265ce96feb60a74cefb35bfa8c4a81fdc509fff6aa1ebdac6b44f45aba22022100c16151d234f3d62b7a405702b9fc86de6824c00f7dd6bc08f30fafea7dfc1b5b:922c64590222798bb761d5b6d8e72950
