id: jira-setup

info:
  name: Atlassian JIRA Setup - Installer
  author: ritikchaddha
  severity: high
  description: Atlassian JIRA is susceptible to the Installation page exposure due to misconfiguration.
  classification:
    cpe: cpe:2.3:a:atlassian:jira:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: atlassian
    product: jira
    shodan-query: title:"JIRA - JIRA setup"
  tags: misconfig,jira,atlassian,installer

http:
  - method: GET
    path:
      - '{{BaseURL}}'
      - '{{BaseURL}}/secure/SetupMode!default.jspa'

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'JIRA - JIRA setup'
          - 'jira.webresources:jira-setup"'
        case-insensitive: true
        condition: or

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100919385f0827b676b7157ad9ab684603e2788d3ee1262d8d8c01ff5f5b2ce5d28022100b7d9f9536fe952a45a8867a1b8ae202677e8c89906e1967d3fd88a627bca42d3:922c64590222798bb761d5b6d8e72950