From 320d1d5850457a18f6da28eaf0bc6e41aa5985f4 Mon Sep 17 00:00:00 2001 From: Sachin Grover Date: Wed, 17 Jun 2020 08:19:14 +0000 Subject: [PATCH 1/2] Add support for detecting Jolokia instance --- files/jolokia.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 files/jolokia.yaml diff --git a/files/jolokia.yaml b/files/jolokia.yaml new file mode 100644 index 0000000000..80fa26141d --- /dev/null +++ b/files/jolokia.yaml @@ -0,0 +1,18 @@ +id: jolokia instance + +info: + name: Jolokia Version Disclosure + author: mavericknerd + severity: low + +requests: + - method: GET + path: + - "{{BaseURL}}/jolokia/version" + matchers: + - type: word + words: + - "\"agent\":" + - type: status + status: + - 200 From dcca80188d0f55b291e763511e7d22c7c5921dab Mon Sep 17 00:00:00 2001 From: Sachin Grover Date: Wed, 17 Jun 2020 08:49:52 +0000 Subject: [PATCH 2/2] Correct yamllint error --- files/jolokia.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/jolokia.yaml b/files/jolokia.yaml index 80fa26141d..efbbd0180d 100644 --- a/files/jolokia.yaml +++ b/files/jolokia.yaml @@ -1,18 +1,18 @@ id: jolokia instance info: - name: Jolokia Version Disclosure + name: Jolokia Version Disclosure author: mavericknerd severity: low requests: - method: GET path: - - "{{BaseURL}}/jolokia/version" + - '{{BaseURL}}/jolokia/version' matchers: - type: word words: - - "\"agent\":" + - '"agent":' - type: status status: - 200