id: bitbucket-public-repository

info:
  name: Atlassian Bitbucket Public Repository Exposure
  author: DhiyaneshDk
  severity: low
  description: Bitbucket Public Repository is exposed.
  classification:
    cpe: cpe:2.3:a:atlassian:bitbucket:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: atlassian
    product: bitbucket
    shodan-query: http.component:"Bitbucket"
  tags: misconfig,bitbucket,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/repos?visibility=public"
      - "{{BaseURL}}/bitbucket/repos?visibility=public"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Public Repositories - Bitbucket'

      - type: word
        part: header
        words:
          - "text/html"

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