id: confluence-oauth-admin

info:
  name: Confluence OAuth Administration Endpoint
  author: DhiyaneshDK
  severity: info
  classification:
    cpe: cpe:2.3:a:atlassian:confluence_server:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: atlassian
    product: confluence_server
    shodan-query: http.component:"Atlassian Confluence"
  tags: misconfig,jira,confluence,atlassian

http:
  - method: GET
    path:
      - "{{BaseURL}}/plugins/servlet/oauth/view-consumer-info"
      - "{{BaseURL}}/confluence/plugins/servlet/oauth/view-consumer-info"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<title>OAuth Consumer Information'
          - 'OAuth Administration'

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