From 89b4fea40971dbea4e307424882fbdfc9db425ed Mon Sep 17 00:00:00 2001 From: Ritik Chaddha Date: Thu, 28 Jul 2022 14:05:52 +0530 Subject: [PATCH] Update springboot-env.yaml --- misconfiguration/springboot/springboot-env.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/misconfiguration/springboot/springboot-env.yaml b/misconfiguration/springboot/springboot-env.yaml index bd51134c8f..a13d6f7bc0 100644 --- a/misconfiguration/springboot/springboot-env.yaml +++ b/misconfiguration/springboot/springboot-env.yaml @@ -12,6 +12,8 @@ requests: path: - "{{BaseURL}}/env" - "{{BaseURL}}/actuator/env" + + stop-at-first-match: true matchers-condition: and matchers: - type: word @@ -28,14 +30,15 @@ requests: - "local.server.port" condition: or - - type: status - status: - - 200 - type: word + part: header words: - "application/json" - "application/vnd.spring-boot.actuator" - "application/vnd.spring-boot.actuator.v1+json" - "application/vnd.spring-boot.actuator.v2+json" condition: or - part: header + + - type: status + status: + - 200