-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROU-11001: Added sanitizeInputValues configuration (#431)
This PR is for adding the new `sanitizeInputValues` configuration. ### What was happening * When passing HTML to the Grid, mainly on Action and Image Columns and the ContextMenu., we opened a door to an XSS vulnerability. ### What was done * Added a new `sanitizeInputValues` configuration to allow the developer to control when to sanitize the Grid's data. * The default will be `sanitizeInputValues = true` so this will be a needed **breaking change**. ### Test Steps 1. Open a screen with a Link Column 2. On the Get From Other Sources add to the first position the following text `Test <img src=x onerror='alert(String.fromCharCode(88,83,83))'>` 3. Check that now we can see the text and no code is executed ### Screenshots - Before:  - After the fix:  ### Checklist * [X] tested locally * [X] documented the code * [X] clean all warnings and errors of eslint * [X] requires changes in OutSystems * [ ] requires new sample page in OutSystems
- Loading branch information
Showing
7 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters