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

Escape Form-values #252

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Escape Form-values #252

merged 2 commits into from
Mar 13, 2024

Conversation

heiglandreas
Copy link
Owner

This should eliminate the risk of injecting JS into form field values.

Adding backslashes or quotes in any of the fields will result in a backslash-escaped value. SHould these values be stored more than once the amount of backslashes will exponentially grow. This is a sideeffect of these values not being expected in the fields in the first place.

This should also fix CVE-2023-41655 as now injecting JS will no longer result in that being executed in the UI.

For more discussion around this CVE see
#237

This should eliminate the risk of injecting JS into form field values.

Adding backslashes or quotes in any of the fields will result in a
backslash-escaped value. SHould these values be stored more than once
the amount of backslashes will exponentially grow. This is a sideeffect
of these values not being expected in the fields in the first place.

This should also fix CVE-2023-41655 as now injecting JS will no longer
result in that being executed in the UI.

For more discussion around this CVE see
#237
@heiglandreas heiglandreas merged commit 3aa04e0 into master Mar 13, 2024
24 of 25 checks passed
@heiglandreas heiglandreas deleted the escapeFormValues branch March 13, 2024 17:08
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.

1 participant