From c6a6b0dbe3eb894215eb038edacaef4bee897c13 Mon Sep 17 00:00:00 2001 From: elsapet Date: Mon, 12 Feb 2024 10:17:43 +0200 Subject: [PATCH] fix: min version and test expectations --- rules/java/lang/apache_commons_collection.yml | 2 +- .../lang/apache_commons_collection/testdata/insecure/main.java | 2 +- .../lang/apache_commons_collection/testdata/secure/main.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rules/java/lang/apache_commons_collection.yml b/rules/java/lang/apache_commons_collection.yml index 7cd79cbd1..7737f2e32 100644 --- a/rules/java/lang/apache_commons_collection.yml +++ b/rules/java/lang/apache_commons_collection.yml @@ -6,7 +6,7 @@ patterns: dependency_check: true dependency: name: commons-collections3 - min_version: 3.2.2 + min_version: 3.2.1 filename: maven-dependencies.json languages: - java diff --git a/tests/java/lang/apache_commons_collection/testdata/insecure/main.java b/tests/java/lang/apache_commons_collection/testdata/insecure/main.java index 08d4b97d8..c56b7b771 100644 --- a/tests/java/lang/apache_commons_collection/testdata/insecure/main.java +++ b/tests/java/lang/apache_commons_collection/testdata/insecure/main.java @@ -2,7 +2,7 @@ public class Foo { public static void bad(String[] args) throws Exception { - // ok - version 3.2.2 + + // bearer:expected java_lang_apache_commons_collection InvokerTransformer transformer = new InvokerTransformer("exec", new Class[]{String.class}, new Object[]{"calc.exe"}); Object result = transformer.transform(null); } diff --git a/tests/java/lang/apache_commons_collection/testdata/secure/main.java b/tests/java/lang/apache_commons_collection/testdata/secure/main.java index c56b7b771..08d4b97d8 100644 --- a/tests/java/lang/apache_commons_collection/testdata/secure/main.java +++ b/tests/java/lang/apache_commons_collection/testdata/secure/main.java @@ -2,7 +2,7 @@ public class Foo { public static void bad(String[] args) throws Exception { - // bearer:expected java_lang_apache_commons_collection + // ok - version 3.2.2 + InvokerTransformer transformer = new InvokerTransformer("exec", new Class[]{String.class}, new Object[]{"calc.exe"}); Object result = transformer.transform(null); }