-
Notifications
You must be signed in to change notification settings - Fork 3
UI5 client side log-injection improvements #136
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
Conversation
.../ui5/test/queries/UI5LogInjection/log-entry-flows-to-remote/webapp/utils/LogEntriesToHttp.js
Fixed
Show fixed
Hide fixed
| const http = new XMLHttpRequest(); | ||
| const url = "https://some.remote.server/location"; | ||
| http.open("POST", url); | ||
| http.send(oEvent.message); // js/ui5-log-injection-to-http |
Check warning
Code scanning / CodeQL
UI5 Log injection in outbound network request
| const url = "https://some.remote.server/location"; | ||
| http.open("POST", url); | ||
| http.send(oEvent.message); | ||
| http.send(message); // js/ui5-log-injection-to-http |
Check warning
Code scanning / CodeQL
UI5 Log injection in outbound network request
| constructor: function () { | ||
| Log.addLogListener(this); | ||
| }, | ||
| onLogEntry: function (oEvent) { |
Check warning
Code scanning / CodeQL
Access to user-controlled UI5 Logs
| Log.addLogListener(this); | ||
| }, | ||
| onLogEntry: function (oEvent) { | ||
| let message = Log.getLogEntries()[0].message; |
Check warning
Code scanning / CodeQL
Access to user-controlled UI5 Logs
| http.send(oEvent.message); // js/ui5-log-injection-to-http | ||
|
|
||
| $('myId').html(oEvent.message) //Xss | ||
| jQuery.sap.globalEval(oEvent.message); //UI5 Xss |
Check warning
Code scanning / CodeQL
UI5 Client-side cross-site scripting
|
At first glance, it looks good overall. I wonder why you removed the condition that states "two locations must be in a same application"? |
I just replaced it with a predicate doing the same thing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The queries are robust, and I have nothing to point out about their structures. I left some comments mainly on naming.
Adds dataflow step so that existing queries can follow the path through log handlers 6874
Implements 2 new queries
getLogEntriesis present 6873Test cases
Help
.mdfiles