Skip to content

Conversation

rvermeulen
Copy link

@rvermeulen rvermeulen commented Oct 6, 2023

We currently aren't enabling standard queries to use UI5 remote flow sources. This is changed in this PR where we move the UI5 sources into the generic remote flow source concept to enable all queries to be able to use them.

This also means we can no longer differentiate between between the origin of sources, so our UI5 specific queries become more general in that any remote flow source to a UI5 specific sink is reported.

This changes the definition of a UI5 specific query such that it is the sink that differentiate it from our standard library query. This allows use to provide UI5 specific remediations in the documentation. Since a remediation will be sink depended this is fine. The use of data (it's context) determines how it must be encoded and that will be UI5 specific.

@rvermeulen rvermeulen force-pushed the rvermeulen/generic-sources branch from a3c74fa to f995666 Compare October 6, 2023 23:40
@@ -4,7 +4,7 @@
// source is ui5-specific
function ui5loginjectionXss() {
let value = jQuery.sap.syncGet("url", "param")
console.info(`[INFO] User: ${value}`); //UI5 log-injection
console.info(`[INFO] User: ${value}`); // log-injection

Check failure

Code scanning / CodeQL

Log injection

Log entry depends on a [user-provided value](1).
@@ -1,7 +1,7 @@
// source is ui5-specific
function testXss1() {
var value = jQuery.sap.syncGet("url", "param")
$('myId').html(value) //UI5 Xss
$('myId').html(value) // Xss

Check warning

Code scanning / CodeQL

Client-side cross-site scripting

Cross-site scripting vulnerability due to [user-provided value](1).
We currently aren't enabling standard queries to use UI5 remote flow
sources.
This is changed in this commit where we move the UI5 sources into the
generic remote flow source concept to enable all queries to be able to
use them.

This also means we can no longer differentiate between between the
origin of sources,
so our UI5 specific queries become more general in that any remote flow
source to a UI5 specific sink is reported.

This changes the definition of a UI5 specific query such that it is the
sink that differentiate it from our standard library query so we can
keep providing UI5 specific remediations in the documentation.
@rvermeulen rvermeulen force-pushed the rvermeulen/generic-sources branch from f995666 to 20605e2 Compare October 7, 2023 00:02
@jeongsoolee09
Copy link
Contributor

LGTM

@jeongsoolee09 jeongsoolee09 merged commit c36bab3 into main Oct 9, 2023
@jeongsoolee09 jeongsoolee09 deleted the rvermeulen/generic-sources branch January 26, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants