From 49e860e02e6e055493a56cf6936b0f947c09bcfb Mon Sep 17 00:00:00 2001
From: Ritik Chaddha <44563978+ritikchaddha@users.noreply.github.com>
Date: Mon, 9 Oct 2023 15:31:40 +0530
Subject: [PATCH 1/3] Create portainer-panel.yaml
---
http/exposed-panels/portainer-panel.yaml | 38 ++++++++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 http/exposed-panels/portainer-panel.yaml
diff --git a/http/exposed-panels/portainer-panel.yaml b/http/exposed-panels/portainer-panel.yaml
new file mode 100644
index 0000000000..908c45095f
--- /dev/null
+++ b/http/exposed-panels/portainer-panel.yaml
@@ -0,0 +1,38 @@
+id: portainer-panel
+
+info:
+ name: Portainer Login Panel - Detect
+ author: ritikchaddha
+ severity: info
+ reference:
+ - https://github.com/portainer/portainer
+ metadata:
+ max-request: 2
+ verified: true
+ shodan-query: title:"Portainer"
+ tags: panel,portainer,detect
+
+http:
+ - method: GET
+ path:
+ - "{{BaseURL}}"
+ - "{{BaseURL}}/#!/auth"
+
+ stop-at-first-match: true
+ host-redirects: true
+ max-redirects: 2
+ matchers-condition: and
+ matchers:
+ - type: word
+ part: body
+ words:
+ - '
Portainer'
+ - 'ng-app="portainer'
+ - 'content="Portainer'
+ - 'alt="Portainer'
+ - 'portainer.auth'
+ condition: or
+
+ - type: status
+ status:
+ - 200
From ceb23bca416c364176443c154d9a8fda5bb3d827 Mon Sep 17 00:00:00 2001
From: Dhiyaneshwaran
Date: Mon, 9 Oct 2023 15:39:32 +0530
Subject: [PATCH 2/3] Update portainer-panel.yaml
---
http/exposed-panels/portainer-panel.yaml | 2 --
1 file changed, 2 deletions(-)
diff --git a/http/exposed-panels/portainer-panel.yaml b/http/exposed-panels/portainer-panel.yaml
index 908c45095f..2bf93bc4fd 100644
--- a/http/exposed-panels/portainer-panel.yaml
+++ b/http/exposed-panels/portainer-panel.yaml
@@ -16,9 +16,7 @@ http:
- method: GET
path:
- "{{BaseURL}}"
- - "{{BaseURL}}/#!/auth"
- stop-at-first-match: true
host-redirects: true
max-redirects: 2
matchers-condition: and
From f4c85a0fa5de0e927d0c76f19fc8392673ab6e0a Mon Sep 17 00:00:00 2001
From: Dhiyaneshwaran
Date: Mon, 9 Oct 2023 15:48:13 +0530
Subject: [PATCH 3/3] Update portainer-panel.yaml
---
http/exposed-panels/portainer-panel.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/http/exposed-panels/portainer-panel.yaml b/http/exposed-panels/portainer-panel.yaml
index 2bf93bc4fd..908c45095f 100644
--- a/http/exposed-panels/portainer-panel.yaml
+++ b/http/exposed-panels/portainer-panel.yaml
@@ -16,7 +16,9 @@ http:
- method: GET
path:
- "{{BaseURL}}"
+ - "{{BaseURL}}/#!/auth"
+ stop-at-first-match: true
host-redirects: true
max-redirects: 2
matchers-condition: and