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

QA: more output escaping #216

Merged
merged 2 commits into from
Dec 16, 2023
Merged

QA: more output escaping #216

merged 2 commits into from
Dec 16, 2023

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Dec 16, 2023

Summary

This PR can be summarized in the following changelog entry:

  • Code QA/consistency

Relevant technical choices:

Downgrader: output escape exception arguments

When an exception isn't caught, it is likely to end up on the end-user's screen. While we obviously hope this will never happen, we should make sure that those exception messages are then not subject to XSS attacks, which could be hidden in translations.

This hardens the code in the Downgrader class against these type of issues.

CS/QA: always escape the complete value

Milestone

  • I've attached the next release's milestone to this pull request.

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

  • N/A No functional changes.

When an exception isn't caught, it is likely to end up on the end-user's screen. While we obviously hope this will never happen, we should make sure that those exception messages are then not subject to XSS attacks, which could be hidden in translations.

This hardens the code in the `Downgrader` class against these type of issues.
@jrfnl jrfnl added this to the 1.19 milestone Dec 16, 2023
@jrfnl jrfnl merged commit 80bb7bb into develop Dec 16, 2023
9 checks passed
@jrfnl jrfnl deleted the JRF/qa-escape-output branch December 16, 2023 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant