-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathUI5LogsToHttp.ql
More file actions
31 lines (26 loc) · 1.08 KB
/
UI5LogsToHttp.ql
File metadata and controls
31 lines (26 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* @name UI5 Log injection in outbound network request
* @description Building log entries from user-controlled sources is vulnerable to
* insertion of forged log entries by a malicious user.
* @kind path-problem
* @problem.severity warning
* @security-severity 6.5
* @precision medium
* @id js/ui5-log-injection-to-http
* @tags security
* external/cwe/cwe-117
*/
import javascript
import advanced_security.javascript.frameworks.ui5.UI5LogsToHttpQuery
module UI5LogsToHttpFlow = TaintTracking::GlobalWithState<UI5LogEntryToHttp>;
module UI5LogsToHttpUI5PathGraph =
UI5PathGraph<UI5LogsToHttpFlow::PathNode, UI5LogsToHttpFlow::PathGraph>;
import UI5LogsToHttpUI5PathGraph
from
UI5LogsToHttpUI5PathGraph::UI5PathNode source, UI5LogsToHttpUI5PathGraph::UI5PathNode sink,
UI5LogsToHttpUI5PathGraph::UI5PathNode primarySource
where
UI5LogsToHttpFlow::flowPath(source.getPathNode(), sink.getPathNode()) and
primarySource = source.getAPrimarySource()
select sink, primarySource, sink, "Outbound network request depends on $@ log data.", primarySource,
"user-provided"