Skip to content
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

dm-4881 dom text reinterpret / xss codeql warning 3 #1133

Merged

Conversation

PhilipDeFraties
Copy link
Collaborator

JIRA issue link

https://agile6.atlassian.net/browse/DM-4881

Description - what does this code do?

updates innovation show page js function setMoreLessHTML to properly escape potentially harmful chars to prevent xss vulnerability

Testing done - how did you test it/steps on how can another person can test it

On an innovation show page leave a long comment, verify that once persisted the comment text properly paginates with the "See more" / "See less" buttons.

Screenshots, Gifs, Videos from application (if applicable)

Link to mock-ups/mock ups (image file if you have it) (if applicable)

Acceptance criteria

  • [ ]

Definition of done

  • Unit tests written (if applicable)
  • e2e/accessibility tests written (if applicable)
  • Events are logged appropriately
  • Documentation has been updated, if applicable
  • A link has been provided to the originating JIRA issue
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs

@PhilipDeFraties PhilipDeFraties changed the title update innovation show page js function setMoreLessHTML to properly e… dm-4881 dom text reinterpret / xss codeql warning 3 Nov 22, 2024
@PhilipDeFraties PhilipDeFraties self-assigned this Nov 22, 2024
Copy link
Collaborator

@camillevilla camillevilla left a comment

Choose a reason for hiding this comment

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

See related tests in CI

@camillevilla camillevilla force-pushed the dm-4881-fix-dom-text-reinterpret-codeql-warning-3 branch from ae9a3b6 to 0c923d2 Compare December 6, 2024 01:43
…scape potentially harmful chars to prevent xss vulnerability
@camillevilla camillevilla force-pushed the dm-4881-fix-dom-text-reinterpret-codeql-warning-3 branch from 0c923d2 to 10bbac5 Compare December 6, 2024 02:54
@camillevilla camillevilla merged commit 6df982d into master Dec 6, 2024
3 of 4 checks passed
@camillevilla camillevilla deleted the dm-4881-fix-dom-text-reinterpret-codeql-warning-3 branch December 6, 2024 18:59
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