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

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: 490a0046304402201577c9ea3e04822f09f4105d4bba807a5abc0223b1724e21fb3810529cbc6379022023da890d80d0b94bcfed737c7ff1ea0bde81d798d9ef205d64f26beeb6791553:922c64590222798bb761d5b6d8e72950