mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Add sources for Jax-RS filters
This commit is contained in:
@@ -544,11 +544,17 @@ private class UriInfoModel extends SummaryModelCsv {
|
||||
override predicate row(string row) {
|
||||
row =
|
||||
[
|
||||
"javax.ws.rs.core;UriInfo;true;getAbsolutePath;;;Argument[-1];ReturnValue;taint",
|
||||
"javax.ws.rs.core;UriInfo;true;getAbsolutePathBuilder;;;Argument[-1];ReturnValue;taint",
|
||||
"javax.ws.rs.core;UriInfo;true;getPath;;;Argument[-1];ReturnValue;taint",
|
||||
"javax.ws.rs.core;UriInfo;true;getPathParameters;;;Argument[-1];ReturnValue;taint",
|
||||
"javax.ws.rs.core;UriInfo;true;getPathSegments;;;Argument[-1];ReturnValue;taint",
|
||||
"javax.ws.rs.core;UriInfo;true;getQueryParameters;;;Argument[-1];ReturnValue;taint",
|
||||
"javax.ws.rs.core;UriInfo;true;getRequestUri;;;Argument[-1];ReturnValue;taint",
|
||||
"javax.ws.rs.core;UriInfo;true;getRequestUriBuilder;;;Argument[-1];ReturnValue;taint",
|
||||
"jakarta.ws.rs.core;UriInfo;true;getAbsolutePath;;;Argument[-1];ReturnValue;taint",
|
||||
"jakarta.ws.rs.core;UriInfo;true;getAbsolutePathBuilder;;;Argument[-1];ReturnValue;taint",
|
||||
"jakarta.ws.rs.core;UriInfo;true;getPath;;;Argument[-1];ReturnValue;taint",
|
||||
"jakarta.ws.rs.core;UriInfo;true;getPathParameters;;;Argument[-1];ReturnValue;taint",
|
||||
"jakarta.ws.rs.core;UriInfo;true;getPathSegments;;;Argument[-1];ReturnValue;taint",
|
||||
"jakarta.ws.rs.core;UriInfo;true;getQueryParameters;;;Argument[-1];ReturnValue;taint",
|
||||
@@ -955,3 +961,17 @@ private class VulnerableEntity extends XssSinkBarrier {
|
||||
).getArgument(0)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Model sources stemming from `ContainerRequestContext`.
|
||||
*/
|
||||
private class ContainerRequestContextModel extends SourceModelCsv {
|
||||
override predicate row(string s) {
|
||||
s =
|
||||
["javax", "jakarta"] + ".ws.rs.container;ContainerRequestContext;true;" +
|
||||
[
|
||||
"getAcceptableLanguages", "getAcceptableMediaTypes", "getCookies", "getEntityStream",
|
||||
"getHeaders", "getHeaderString", "getUriInfo"
|
||||
] + ";;;ReturnValue;remote"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user