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

EscapeHTML: Fix potentially vulnerable missing semicolon #109

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

ori-sky
Copy link
Contributor

@ori-sky ori-sky commented Aug 14, 2024

This patch fixes a missing semicolon in stringtools:EscapeHTML, specifically in the entity code for forward slash characters.

This is theoretically exploitable in some way, as the following payload:

test/81;string

will be escaped as:

test⾁string

Whenever this is unescaped, whether on the server, client, as a result of a server admin investigating log file, or in any other relevant circumstances, it will result in the following string:

test⾁string

This is a contrived example but there are many other code points in Unicode, meaning that it's difficult to fully eliminate the possibility of this being exploitable in some context, for example in a situation where a code point may affect the terminal being outputted to in some way.


Additionally, line ending mismatches in getStreamFile have been updated automatically by the GitHub edit or, so these are included in the patch.

This patch fixes a missing semicolon in stringtools:EscapeHTML, specifically in the entity code for forward slash characters.

This is theoretically exploitable in some way as the following payload:

test/81;string

will be escaped as:

test⾁string

Whenever this is unescaped, whether on the server, client, as a result of a server admin investigating log file, or in any other relevant circumstances, it will result in the following string:

test⾁string

This is a contrived example but there are many other code points in Unicode, meaning that it's difficult to fully eliminate the possibility of this being exploitable in some context, for example in a situation where a code point may affect the terminal being outputted to in some way.
@uroni uroni merged commit cfa2748 into uroni:dev Nov 2, 2024
1 check passed
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