id: open-journal-systems

info:
  name: Open Journal Systems Detect
  author: ricardomaia
  severity: info
  description: Open Journal Systems, also known as OJS, is a free software for the management of peer-reviewed academic journals, created by the Public Knowledge Project.
  reference:
    - https://pkp.sfu.ca/ojs/
  classification:
    cpe: cpe:2.3:a:openjournalsystems:open_journal_systems:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: openjournalsystems
    product: open_journal_systems
    shodan-query: html:"Open Journal Systems"
  tags: tech,ojs

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

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - '(?i).*<meta.name="generator".content="Open.Journal.Systems.*>'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        name: version
        part: body
        group: 1
        regex:
          - '(?i).*<meta.name="generator".content="Open.Journal.Systems.([\d.|\d]+)'
# digest: 4b0a00483046022100fd816a0b2062ebb089c6525a0abd7a0869373065a7c2543b5b9c00eb6776a0a9022100cb14be8c5dccd99a005ebf47b9aa276425848b5af581e3d047a7f30beb3f0a1b:922c64590222798bb761d5b6d8e72950