id: argocd-login

info:
  name: Argo CD Login Panel
  author: Adam Crosser,daffainfo,aringo
  severity: info
  description: An Argo CD login panel was discovered.
  reference:
    - https://argoproj.github.io/cd/
  classification:
    cwe-id: CWE-200
    cpe: cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    shodan-query: http.title:"Argo CD"
    product: argo_cd
    vendor: argoproj
  tags: panel,argocd,login,kubernetes

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/version"
      - "{{BaseURL}}/api/v1/settings"

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: dsl
        dsl:
          - contains(to_lower(header_1), 'grpc-metadata-content-type')
          - status_code_1 == 200
        condition: and

      - type: dsl
        dsl:
          - contains(body_2, 'appLabelKey')
          - contains(body_2, 'resourceOverrides')
        condition: and

    extractors:
      - type: json
        json:
          - .Version
# digest: 4a0a0047304502203911ee320d7fe1122300fa7d8b2508245e9159301240b45724a291712f577e81022100a56cd5d6054033bc950bc76ebae38beb95629a7b4353c8de7cccdb0d954ffd29:922c64590222798bb761d5b6d8e72950