From 699098fc1dc2c17f75de421311ccaa6f8ff08fe8 Mon Sep 17 00:00:00 2001 From: Prince Chaddha Date: Mon, 6 Dec 2021 15:12:58 +0530 Subject: [PATCH 1/3] Create apache-cocoon-detect.yaml --- technologies/apache/apache-cocoon-detect.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 technologies/apache/apache-cocoon-detect.yaml diff --git a/technologies/apache/apache-cocoon-detect.yaml b/technologies/apache/apache-cocoon-detect.yaml new file mode 100644 index 0000000000..babef148a9 --- /dev/null +++ b/technologies/apache/apache-cocoon-detect.yaml @@ -0,0 +1,19 @@ +id: apache-cocoon-detect +info: + name: Apache Cocoon detect + author: ffffffff0x + severity: info + metadata: + fofa-query: app="APACHE-Cocoon" + tags: apache,cocoon + +requests: + - method: GET + path: + - "{{BaseURL}}" + + matchers: + - type: word + part: header + words: + - "X-Cocoon-Version" From 90d65b7b9ca0db6ba3ef4c818569353a40d4d6e0 Mon Sep 17 00:00:00 2001 From: Prince Chaddha Date: Mon, 6 Dec 2021 18:09:02 +0530 Subject: [PATCH 2/3] Update apache-cocoon-detect.yaml --- technologies/apache/apache-cocoon-detect.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/technologies/apache/apache-cocoon-detect.yaml b/technologies/apache/apache-cocoon-detect.yaml index babef148a9..7b5a0262b7 100644 --- a/technologies/apache/apache-cocoon-detect.yaml +++ b/technologies/apache/apache-cocoon-detect.yaml @@ -5,15 +5,23 @@ info: severity: info metadata: fofa-query: app="APACHE-Cocoon" - tags: apache,cocoon + tags: apache,cocoon,tech requests: - method: GET path: - "{{BaseURL}}" + redirects: true + max-redirects: 2 matchers: - type: word part: header words: - "X-Cocoon-Version" + + extractors: + - type: regex + part: body + regex: + - 'X\-Cocoon\-Version:([ 0-9.]+)' From 14930df4ba7c24ddff0f7245ba3d6e9bbf867242 Mon Sep 17 00:00:00 2001 From: Prince Chaddha Date: Mon, 6 Dec 2021 18:09:58 +0530 Subject: [PATCH 3/3] Update apache-cocoon-detect.yaml --- technologies/apache/apache-cocoon-detect.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/technologies/apache/apache-cocoon-detect.yaml b/technologies/apache/apache-cocoon-detect.yaml index 7b5a0262b7..1d3b85ddc5 100644 --- a/technologies/apache/apache-cocoon-detect.yaml +++ b/technologies/apache/apache-cocoon-detect.yaml @@ -22,6 +22,6 @@ requests: extractors: - type: regex - part: body + part: header regex: - 'X\-Cocoon\-Version:([ 0-9.]+)'