From 1ee4d626fa3bb2f30857cd810957900591aae545 Mon Sep 17 00:00:00 2001 From: Dhiyaneshwaran Date: Fri, 28 Jun 2024 14:29:57 +0530 Subject: [PATCH] Create forgejo-repo.yaml --- http/misconfiguration/forgejo-repo.yaml | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 http/misconfiguration/forgejo-repo.yaml diff --git a/http/misconfiguration/forgejo-repo.yaml b/http/misconfiguration/forgejo-repo.yaml new file mode 100644 index 0000000000..42a6106c80 --- /dev/null +++ b/http/misconfiguration/forgejo-repo.yaml @@ -0,0 +1,37 @@ +id: forgejo-repo + +info: + name: Forgejo Repositories - Exposure + author: DhiyaneshDK + severity: medium + description: | + Forgejo repo is exposed + metadata: + verified: true + max-request: 1 + shodan-query: html:"Forgejo" + tags: misconfig,exposure,forgejo + +http: + - method: GET + path: + - "{{BaseURL}}/explore/repos" + + matchers-condition: and + matchers: + - type: word + part: body + words: + - 'Powered by Forgejo' + - 'Explore' + - 'Repositories' + condition: and + + - type: word + part: header + words: + - "text/html" + + - type: status + status: + - 200