Skip to content

Conversation

@rvermeulen
Copy link

The diagnostic queries can be used to debug possible missing sources and sinks.

The suite sap-ui5-diagnostics.qls can be used to execute them and collect their results in a Sarif file.

Because the query set now contains non-security queries, the default behavior is changed using suites that follow the standard library convention.

The default suite sap-ui5-codescanning.qls only execute security queries with precision high and very-high. This will exclude the log injection query.

The suite sap-ui5-security-extended.qls will execute all security queries with precision medium to very high.

These list:

- Remote flow source.
- UI5 specific sinks for XSS.
- UI5 specific sinks for log injection.

These help with determining if we are missing any for a given codebase.
Because the pack now contains diagnostic queries we want to by default
only execute the security queries.

The suites follow the standard library convention where the default
suite is suited for running in code scanning. This means only security
queries with precision high or very high. Currently this excludes the
log injection query because its precision is medium.

The security extended suite includes the log injection query.
@rvermeulen rvermeulen force-pushed the rvermeulen/diagnostics branch from 893fbe7 to 53855a0 Compare October 6, 2023 23:25
Copy link
Contributor

@jeongsoolee09 jeongsoolee09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeongsoolee09 jeongsoolee09 merged commit 9d0492f into main Oct 6, 2023
@jeongsoolee09 jeongsoolee09 deleted the rvermeulen/diagnostics 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.

3 participants