From 11583a1b679b94fdf3adf3680ce45e9520ae4f57 Mon Sep 17 00:00:00 2001 From: Alejandro Gonzalez Date: Fri, 16 Feb 2024 10:58:38 +0100 Subject: [PATCH] Add smoke test --- .../smoketest/AbstractIastSpringBootTest.groovy | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dd-smoke-tests/iast-util/src/testFixtures/groovy/datadog/smoketest/AbstractIastSpringBootTest.groovy b/dd-smoke-tests/iast-util/src/testFixtures/groovy/datadog/smoketest/AbstractIastSpringBootTest.groovy index 21beb16c5762..6dee00b4b192 100644 --- a/dd-smoke-tests/iast-util/src/testFixtures/groovy/datadog/smoketest/AbstractIastSpringBootTest.groovy +++ b/dd-smoke-tests/iast-util/src/testFixtures/groovy/datadog/smoketest/AbstractIastSpringBootTest.groovy @@ -943,6 +943,18 @@ abstract class AbstractIastSpringBootTest extends AbstractIastServerSmokeTest { && vul.location.method == 'reflectionInjectionField'} } + void "Check session rewriting"() { + setup: + String url = "http://localhost:${httpPort}/greeting;jsessionid=1234" + def request = new Request.Builder().url(url).get().build() + + when: + client.newCall(request).execute() + + then: + hasVulnerability { vul -> vul.type == 'SESSION_REWRITING'} + } + }