Skip to content

Commit

Permalink
Merge pull request #8680 from projectdiscovery/argocd-login-fix
Browse files Browse the repository at this point in the history
Fixed argocd detection template
  • Loading branch information
DhiyaneshGeek authored Nov 23, 2023
2 parents 724c930 + 6d2fef7 commit 1a4a591
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions http/exposed-panels/argocd-login.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ id: argocd-detect

info:
name: Argo CD Login Panel
author: Adam Crosser,daffainfo
author: Adam Crosser,daffainfo,aringo
severity: info
description: An Argo CD login panel was discovered.
reference:
Expand All @@ -17,17 +17,25 @@ info:
http:
- method: GET
path:
- "{{BaseURL}}/login"
- "{{BaseURL}}/api/version"
- "{{BaseURL}}/api/v1/settings"

matchers-condition: and
stop-at-first-match: true
matchers-condition: or
matchers:
- type: word
part: body
words:
- '<title>Argo CD</title>'
- type: dsl
dsl:
- contains(to_lower(header_1), 'grpc-metadata-content-type')
- status_code_1 == 200
condition: and

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

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

0 comments on commit 1a4a591

Please sign in to comment.