-
Notifications
You must be signed in to change notification settings - Fork 3
Model sap/ui/core/EventBus
#258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
fbc4be8
d7a8b30
77c96b1
969c218
3e5255a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import javascript | ||
| import DataFlow | ||
|
|
||
| module TypeTrackers { | ||
| private SourceNode hasDependency(TypeTracker t, string dependencyPath) { | ||
| t.start() and | ||
| exists(UserModule d | | ||
| d.getADependency() = dependencyPath and | ||
| result = d.getRequiredObject(dependencyPath).asSourceNode() | ||
| ) | ||
| or | ||
| exists(TypeTracker t2 | result = hasDependency(t2, dependencyPath).track(t2, t)) | ||
| } | ||
|
|
||
| SourceNode hasDependency(string dependencyPath) { | ||
| result = hasDependency(TypeTracker::end(), dependencyPath) | ||
| } | ||
|
|
||
| private MethodCallNode getOwnerComponentRef(TypeTracker t, CustomController customController) { | ||
| customController.getAThisNode() = result.getReceiver() and | ||
| result.getMethodName() = "getOwnerComponent" | ||
| or | ||
| exists(TypeTracker t2 | result = getOwnerComponentRef(t2, customController).track(t2, t)) | ||
|
Comment on lines
+20
to
+23
Check warningCode scanning / CodeQL-Community Var only used in one side of disjunct.
The [variable t](1) is only used in one side of disjunct.
|
||
| } | ||
|
|
||
| /* owner component ref */ | ||
Check warningCode scanning / CodeQL-Community Block comment that is not QLDoc
Block comment could be QLDoc for [the below code](1).
|
||
| MethodCallNode getOwnerComponentRef(CustomController customController) { | ||
| result = getOwnerComponentRef(TypeTracker::end(), customController) | ||
| } | ||
|
|
||
| private class ObjFieldStep extends SharedTypeTrackingStep { | ||
Check warningCode scanning / CodeQL-Community Dead code
This code is never used, and it's not publicly exported.
|
||
| override predicate step(DataFlow::Node start, DataFlow::Node end) { | ||
| exists(SapExtendCall sapExtendCall, ObjectLiteralNode wrappedObject, string name | | ||
| wrappedObject = sapExtendCall.getContent() and | ||
| start = getAnAlias(wrappedObject).getAPropertyWrite(name).getRhs() and | ||
| end = getAnAlias(wrappedObject).getAPropertyRead(name) | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| private DataFlow::SourceNode getAnAlias(DataFlow::SourceNode object) { | ||
Check warningCode scanning / CodeQL-Community Dead code
This code is never used, and it's not publicly exported.
|
||
| result = object | ||
| or | ||
| result = getAnAlias(object).getAPropertySource().(DataFlow::FunctionNode).getReceiver() | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| nodes | ||
| | webapp/controller/app.controller.js:26:11:26:15 | value | | ||
| | webapp/controller/app.controller.js:26:19:26:35 | oInput.getValue() | | ||
| | webapp/controller/app.controller.js:27:45:27:62 | { message: value } | | ||
| | webapp/controller/app.controller.js:27:56:27:60 | value | | ||
| | webapp/controller/app.controller.js:30:34:30:38 | model | | ||
| | webapp/controller/app.controller.js:32:30:32:34 | model | | ||
| | webapp/controller/app.controller.js:32:30:32:42 | model.message | | ||
| | webapp/view/app.view.xml:5:3:8:29 | value={/input} | | ||
| | webapp/view/app.view.xml:11:3:12:37 | content={/output1} | | ||
| edges | ||
| | webapp/controller/app.controller.js:15:9:15:19 | input: null | webapp/view/app.view.xml:5:3:8:29 | value={/input} | | ||
| | webapp/controller/app.controller.js:16:9:16:21 | output1: null | webapp/view/app.view.xml:11:3:12:37 | content={/output1} | | ||
| | webapp/controller/app.controller.js:18:20:18:39 | new JSONModel(oData) | webapp/view/app.view.xml:11:3:12:37 | content={/output1} | | ||
| | webapp/controller/app.controller.js:26:11:26:15 | value | webapp/controller/app.controller.js:27:56:27:60 | value | | ||
| | webapp/controller/app.controller.js:26:19:26:35 | oInput.getValue() | webapp/controller/app.controller.js:26:11:26:15 | value | | ||
| | webapp/controller/app.controller.js:27:45:27:62 | { message: value } | webapp/controller/app.controller.js:30:34:30:38 | model | | ||
| | webapp/controller/app.controller.js:27:56:27:60 | value | webapp/controller/app.controller.js:27:45:27:62 | { message: value } | | ||
| | webapp/controller/app.controller.js:30:34:30:38 | model | webapp/controller/app.controller.js:32:30:32:34 | model | | ||
| | webapp/controller/app.controller.js:32:30:32:34 | model | webapp/controller/app.controller.js:32:30:32:42 | model.message | | ||
| | webapp/view/app.view.xml:5:3:8:29 | value={/input} | webapp/controller/app.controller.js:15:9:15:19 | input: null | | ||
| | webapp/view/app.view.xml:5:3:8:29 | value={/input} | webapp/controller/app.controller.js:18:20:18:39 | new JSONModel(oData) | | ||
| | webapp/view/app.view.xml:11:3:12:37 | content={/output1} | webapp/controller/app.controller.js:16:9:16:21 | output1: null | | ||
| #select | ||
| | webapp/controller/app.controller.js:32:30:32:42 | model.message | webapp/controller/app.controller.js:26:19:26:35 | oInput.getValue() | webapp/controller/app.controller.js:32:30:32:42 | model.message | XSS vulnerability due to $@. | webapp/controller/app.controller.js:26:19:26:35 | oInput.getValue() | user-provided value | |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| UI5Xss/UI5Xss.ql | ||
Check warningCode scanning / CodeQL-Community Query test without inline test expectations
Query test does not use inline test expectations.
|
||
Uh oh!
There was an error while loading. Please reload this page.