id: gradle-develocity-panel

info:
  name: Gradle Develocity Build Cache Node Login Panel - Detect
  author: righettod
  severity: info
  description: Gradle Develocity Build Cache Node login panel was detected.
  reference:
    - https://gradle.com/gradle-enterprise-solutions/
  classification:
    cpe: cpe:2.3:a:gradle:build_cache_node:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: gradle
    product: build_cache_node
    shodan-query: http.html:"Develocity Build Cache Node"
  tags: panel,gradle,detect,login

http:
  - method: GET
    path:
      - '{{BaseURL}}'

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200 || status_code == 401'
          - 'contains_any(to_lower(body), "develocity build cache node", "develocity", "com.gradle.error.fallback")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)"applicationVersion":"([0-9.]+)"'
# digest: 4b0a00483046022100a45cdaf33ce7566aea685aeeaee6008297c79e06290554fe141dd96259e83011022100e11df328ca02cc56d0e4f3f076960456bff9b6e281a75a51323e1c398a79e41a:922c64590222798bb761d5b6d8e72950