From 9c8e154b5aedd1ffb4ec88d6341af41ccf027c20 Mon Sep 17 00:00:00 2001 From: PikPikcU <60111811+pikpikcu@users.noreply.github.com> Date: Tue, 20 Jul 2021 19:29:10 +0700 Subject: [PATCH 1/2] Update hadoop-unauth.yaml --- misconfiguration/hadoop-unauth.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misconfiguration/hadoop-unauth.yaml b/misconfiguration/hadoop-unauth.yaml index a897a6b0d7..e47e947914 100644 --- a/misconfiguration/hadoop-unauth.yaml +++ b/misconfiguration/hadoop-unauth.yaml @@ -10,9 +10,12 @@ requests: - method: GET path: - '{{BaseURL}}/ws/v1/cluster/info' + - '{{BaseURL}}/ws/v1/cluster/apps/new-application' + matchers: - type: word words: - 'hadoopVersion' - 'resourceManagerVersionBuiltOn' - condition: and \ No newline at end of file + - 'javax.ws.rs.WebApplicationException' + condition: and From 3fc86268747e5242af01f3350c85e7cc51264c9c Mon Sep 17 00:00:00 2001 From: sandeep Date: Mon, 26 Jul 2021 01:33:02 +0530 Subject: [PATCH 2/2] Update hadoop-unauth.yaml --- misconfiguration/hadoop-unauth.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misconfiguration/hadoop-unauth.yaml b/misconfiguration/hadoop-unauth.yaml index e47e947914..507e54a6f2 100644 --- a/misconfiguration/hadoop-unauth.yaml +++ b/misconfiguration/hadoop-unauth.yaml @@ -12,10 +12,14 @@ requests: - '{{BaseURL}}/ws/v1/cluster/info' - '{{BaseURL}}/ws/v1/cluster/apps/new-application' + matchers-condition: or matchers: - type: word words: - 'hadoopVersion' - 'resourceManagerVersionBuiltOn' - - 'javax.ws.rs.WebApplicationException' condition: and + + - type: word + words: + - 'javax.ws.rs.WebApplicationException'