Skip to content

Escape server and user names in the status HTML#381

Merged
corrados merged 1 commit intojamulussoftware:masterfrom
atsampson:escapestatus
Jun 20, 2020
Merged

Escape server and user names in the status HTML#381
corrados merged 1 commit intojamulussoftware:masterfrom
atsampson:escapestatus

Conversation

@atsampson
Copy link
Copy Markdown
Contributor

Escape server and user names in the status HTML - currently if I set my username to something like <i>AdamS then it'll be passed through as is.

The security impact of this is limited by the name size limit that CProtocol enforces, and by this feature not being used on most servers anyway. (At worst, though, if somebody's ignored the sensible advice in the Tips page and directly included the output in a PHP file, it might be possible to execute arbitrary code on the webserver using crafted channel names.)

@corrados
Copy link
Copy Markdown
Contributor

Thank you!

@corrados corrados merged commit f25a204 into jamulussoftware:master Jun 20, 2020
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