Skip to content

Commit

Permalink
* Fixed reflection masking
Browse files Browse the repository at this point in the history
  • Loading branch information
katherine-hough committed Nov 28, 2023
1 parent 5a52ca4 commit 5552dd5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ private boolean shouldMask(String name) {
}

public static boolean isApplicable(String className, String methodName) {
return (className.equals("java/io/ObjectStreamClass") || className.equals("java/io/ObjectStreamField"))
return (className.startsWith("java/io/ObjectStreamClass") || className.equals("java/io/ObjectStreamField"))
&& Configuration.TAINT_THROUGH_SERIALIZATION
// TODO FIX
&& !methodName.equals("getDeclaredSerialFields$$PHOSPHORTAGGED");
}
}

0 comments on commit 5552dd5

Please sign in to comment.