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); }