mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Add models for getLanguage, getMediaType
This commit is contained in:
@@ -977,7 +977,7 @@ private class ContainerRequestContextModel extends SourceModelCsv {
|
||||
["javax", "jakarta"] + ".ws.rs.container;ContainerRequestContext;true;" +
|
||||
[
|
||||
"getAcceptableLanguages", "getAcceptableMediaTypes", "getCookies", "getEntityStream",
|
||||
"getHeaders", "getHeaderString", "getUriInfo"
|
||||
"getHeaders", "getHeaderString", "getLanguage", "getMediaType", "getUriInfo"
|
||||
] + ";;;ReturnValue;remote"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@ public class JakartaContainerRequestContextSources {
|
||||
sink(buf); // $ hasTaintFlow
|
||||
sink(context.getHeaders().getFirst("someKey")); // $ hasTaintFlow
|
||||
sink(context.getHeaderString("someKey")); // $ hasValueFlow
|
||||
sink(context.getLanguage()); // $ hasValueFlow
|
||||
sink(context.getMediaType().getType()); // $ hasTaintFlow
|
||||
sink(context.getUriInfo().getPath()); // $ hasTaintFlow
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,8 @@ public class JaxRsContainerRequestContextSources {
|
||||
sink(buf); // $ hasTaintFlow
|
||||
sink(context.getHeaders().getFirst("someKey")); // $ hasTaintFlow
|
||||
sink(context.getHeaderString("someKey")); // $ hasValueFlow
|
||||
sink(context.getLanguage()); // $ hasValueFlow
|
||||
sink(context.getMediaType().getType()); // $ hasTaintFlow
|
||||
sink(context.getUriInfo().getPath()); // $ hasTaintFlow
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user