Skip to content

Commit

Permalink
Add smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
jandro996 committed Feb 16, 2024
1 parent ffada9c commit 11583a1
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
}



}

0 comments on commit 11583a1

Please sign in to comment.