id: jfrog-unauth-build-exposed

info:
  name: JFrog Unauthentication Builds
  author: dhiyaneshDK
  severity: medium
  description: JFrog Builds are exposed to Unauthenticated users.
  reference:
    - https://github.com/jaeles-project/jaeles-signatures/blob/master/common/jfrog-unauth-build-exposed.yaml
  metadata:
    max-request: 1
  tags: jfrog

http:
  - raw:
      - |
        POST /ui/api/v1/global-search/builds?jfLoader=true HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"name":"","before":"","after":"","direction":"desc","order_by":"date","num_of_rows":100}

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "last_build_number"
          - "build_name"
        condition: and
        part: body

      - type: word
        words:
          - application/json
        part: header

      - type: status
        status:
          - 200
# digest: 490a00463044022024133be3122e8e45c0cafb6c70bc05216e848a57b431d8f78039904fb622ece602201a303cb11274562a2085588c88b061dca98099f8e0c893a8ede72e69c4905d2a:922c64590222798bb761d5b6d8e72950