We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3167af2 commit 6b76f42Copy full SHA for 6b76f42
java/ql/src/semmle/code/java/security/RequestForgery.qll
@@ -215,7 +215,11 @@ private class SpringRestTemplateUrlMethodAccess extends MethodAccess {
215
abstract class RequestForgerySanitizer extends DataFlow::Node { }
216
217
private class PrimitiveSanitizer extends RequestForgerySanitizer {
218
- PrimitiveSanitizer() { this.getType() instanceof PrimitiveType }
+ PrimitiveSanitizer() {
219
+ this.getType() instanceof PrimitiveType or
220
+ this.getType() instanceof BoxedType or
221
+ this.getType() instanceof NumberType
222
+ }
223
}
224
225
private class HostnameSanitizingPrefix extends CompileTimeConstantExpr {
0 commit comments