Skip to content

Commit 4d4f899

Browse files
committed
Add generic 'browser' as a kind
1 parent fc5c389 commit 4d4f899

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

javascript/ql/lib/semmle/javascript/security/dataflow/RemoteFlowSources.qll

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,17 @@ class ClientSideRemoteFlowKind extends string {
5353
ClientSideRemoteFlowKind() {
5454
this =
5555
[
56-
"browser-url-query", "browser-url-fragment", "browser-url-path", "browser-url",
56+
"browser", "browser-url-query", "browser-url-fragment", "browser-url-path", "browser-url",
5757
"browser-window-name", "browser-message-event"
5858
]
5959
}
6060

61+
/**
62+
* Holds if this is the `browser` kind, indicating a remote source in a browser context, that does not fit into one
63+
* of the more specific kinds.
64+
*/
65+
predicate isGenericBrowserSourceKind() { this = "browser" }
66+
6167
/**
6268
* Holds if this is the `browser-url-query` kind, describing sources derived from the query parameters of the browser URL,
6369
* such as `location.search`.

0 commit comments

Comments
 (0)