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 93a9f47 commit 3333e7dCopy full SHA for 3333e7d
java/ql/src/Security/CWE/CWE-918/RequestForgery.qll
@@ -199,6 +199,10 @@ private class SpringRestTemplateUrlMethods extends Method {
199
/** A sanitizer for request forgery vulnerabilities. */
200
abstract class RequestForgerySanitizer extends DataFlow::Node { }
201
202
+private class PrimitiveSanitizer extends RequestForgerySanitizer {
203
+ PrimitiveSanitizer() { this.getType() instanceof PrimitiveType }
204
+}
205
+
206
private class HostnameSanitizingPrefix extends CompileTimeConstantExpr {
207
int offset;
208
0 commit comments