1717package com .example ;
1818
1919import com .code_intelligence .jazzer .api .FuzzerSecurityIssueHigh ;
20- import java .lang .reflect .InvocationTargetException ;
2120import java .io .ByteArrayInputStream ;
2221import java .io .File ;
2322import java .io .IOException ;
@@ -34,15 +33,6 @@ public static void triggerReflectiveCallSanitizer() {
3433 }
3534 }
3635
37- public static void triggerExpressionLanguageInjectionSanitizer () throws Throwable {
38- try {
39- Class .forName ("jaz.Zer" ).getMethod ("el" ).invoke (null );
40- } catch (InvocationTargetException e ) {
41- throw e .getCause ();
42- } catch (IllegalAccessException | ClassNotFoundException | NoSuchMethodException ignore ) {
43- }
44- }
45-
4636 public static void triggerDeserializationSanitizer () {
4737 byte [] data =
4838 Base64 .getDecoder ().decode ("rO0ABXNyAAdqYXouWmVyAAAAAAAAACoCAAFCAAlzYW5pdGl6ZXJ4cAEK" );
@@ -68,11 +58,6 @@ public void enableDeserializationSanitizer() {
6858 triggerDeserializationSanitizer ();
6959 }
7060
71- @ Test (expected = FuzzerSecurityIssueHigh .class )
72- public void enableExpressionLanguageInjectionSanitizer () throws Throwable {
73- triggerExpressionLanguageInjectionSanitizer ();
74- }
75-
7661 @ Test
7762 public void disableReflectiveCallSanitizer () {
7863 System .setProperty (
@@ -87,14 +72,6 @@ public void disableDeserializationSanitizer() {
8772 triggerDeserializationSanitizer ();
8873 }
8974
90- @ Test
91- public void disableExpressionLanguageSanitizer () throws Throwable {
92- System .setProperty (
93- "jazzer.disabled_hooks" ,
94- "com.code_intelligence.jazzer.sanitizers.ExpressionLanguageInjection" );
95- triggerExpressionLanguageInjectionSanitizer ();
96- }
97-
9875 @ Test (expected = FuzzerSecurityIssueHigh .class )
9976 public void disableReflectiveCallAndEnableDeserialization () {
10077 System .setProperty (
@@ -111,7 +88,6 @@ public void disableAllSanitizers() throws Throwable {
11188 + File .pathSeparatorChar
11289 + "com.code_intelligence.jazzer.sanitizers.Deserialization" );
11390 triggerReflectiveCallSanitizer ();
114- triggerExpressionLanguageInjectionSanitizer ();
11591 triggerDeserializationSanitizer ();
11692 }
11793}
0 commit comments