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

fix: html injection on search page if there is no result #1575

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

SGrueber
Copy link
Collaborator

@SGrueber SGrueber commented Jan 11, 2024

PR Type

[x] Bugfix
[x] Feature

What Is the Current Behavior?

If the user enters a search term in the search bar, that contains HTML it is rendered on the search-no-result page. This represents a security risk.

What Is the New Behavior?

The search term is not rendered as HTML but as an encoded string on the search-no-result page.

image

Does this PR Introduce a Breaking Change?

[x] No

Other Information

AB#92726
AB#92341

@SGrueber SGrueber self-assigned this Jan 11, 2024
@SGrueber SGrueber added the bug Something isn't working label Jan 11, 2024
@SGrueber SGrueber added this to the 5.1 milestone Jan 11, 2024
shauke added a commit that referenced this pull request Jan 15, 2024
* introduce `htmlEncode` pipe to encode potentially malicious HTML code
* add documentation note
@shauke shauke force-pushed the bugfix/search_html_injection branch from 2d7bd69 to dcccfbb Compare January 16, 2024 10:43
@shauke shauke merged commit 3066250 into develop Jan 16, 2024
22 checks passed
@shauke shauke deleted the bugfix/search_html_injection branch January 16, 2024 12:14
shauke added a commit that referenced this pull request Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants