Skip to content

Conversation

@knewbury01
Copy link
Contributor

@knewbury01 knewbury01 commented Nov 10, 2025

What This PR Contributes

adds -

  • sap/m/DatePicker to the ui5 input modelling
  • Testing for additional input types (the sap/m/___ components)

The testing did not previously include full coverage of types that could be included, testing additions were made for both the remote flow source aspect and full path of alerts involving those types (the UI5 Xss query)

Future Works

none at this time

@data-douser data-douser mentioned this pull request Nov 25, 2025
18 tasks
@knewbury01 knewbury01 marked this pull request as ready for review November 26, 2025 16:29
@knewbury01 knewbury01 requested a review from mbaluda November 26, 2025 16:29
@mbaluda mbaluda requested a review from Copilot November 26, 2025 16:34
Copilot finished reviewing on behalf of mbaluda November 26, 2025 16:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends UI5 XSS detection capabilities by adding sap/m/DatePicker to the input control model and expanding test coverage for various UI5 input components. The changes ensure that DatePicker controls are recognized as potential user input sources for XSS vulnerabilities.

Key changes:

  • Added sap/m/DatePicker to the UI5InputControl model definition
  • Expanded test coverage to include 9 different UI5 input control types (ComboBoxTextField, DatePicker, TextArea, ComboBoxBase, SearchField, MultiInput, FeedInput, InputBase, and the original Input)
  • Updated expected test results for the UI5 view source test to reflect new input sources

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
javascript/frameworks/ui5/ext/ui5.model.yml Adds sap/m/DatePicker to UI5InputControl model to recognize it as a user input source
javascript/frameworks/ui5/test/queries/UI5Xss/xss-html-control/webapp/view/app.view.xml Adds test cases for 8 additional UI5 input control types to validate XSS detection
javascript/frameworks/ui5/test/models/source/source1.xml Adds comprehensive test cases for 10 UI5 input control types including MaskEnabler and MaskInput
javascript/frameworks/ui5/test/models/source/UI5ViewSourceTest.expected Updates expected test results to include all new input source detections

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

value="{/input}" /> <!--User input source sap.m.FeedInput.value -->
<InputBase placeholder="Enter InputBase Payload"
value="{/input}" /> <!--User input source sap.m.InputBase.value -->
<core:HTML content="{/input}"/> <!--XSS sink sap.ui.core.HTML.content -->
Copy link

Copilot AI Nov 26, 2025

Choose a reason for hiding this comment

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

The addition of new input controls in this file causes the <core:HTML> element to move from line 8 (where it was previously) to line 24. However, the expected test results file UI5Xss.expected in this test directory has not been updated and still references line 8 for the HTML content binding. This will cause the test to fail. The expected file needs to be regenerated or manually updated to reflect the new line numbers (line 24 instead of line 8 for content={/input}).

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@mbaluda mbaluda left a comment

Choose a reason for hiding this comment

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

LGTM!
You need to update the .expected files in xss-html-control and .github/workflows

@knewbury01 knewbury01 requested a review from mbaluda November 26, 2025 21:46
@knewbury01 knewbury01 merged commit baee7ed into main Nov 28, 2025
5 checks passed
@knewbury01 knewbury01 deleted the knewbury01/update-ui5-models branch November 28, 2025 00:38
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