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

Escaping HTML in Contact Users Nicknames #274

Closed
wants to merge 1 commit into from
Closed

Escaping HTML in Contact Users Nicknames #274

wants to merge 1 commit into from

Conversation

s-rah
Copy link
Member

@s-rah s-rah commented Oct 12, 2015

It turns out that if you enter html into a nickname it
doesn't get rendered during the initial contact request, but
if accepted, the html will render in the contacts column and
in the setting menu.

Mostly this isn't an issue (the odd style issue when users
set their nicks to be h1) however - it is possible, in the
limited 30 character space to construct an img tag which -
providing they can create a url short enough is enough to
automatically render the image and reveal the users IP
address to the server where the image is located.

This fix forces contact nick names to have html escaped.

image

It turns out that if you enter html into a nickname it
doesn't get rendered during the initial contact request, but
if requested, the html will render in the contacts column and
in the setting menu.

Mostly this isn't an issue (the odd style issue when users
set their nicks to be <h1>) however - it is possible, in the
limited 30 character space to construct an <img> tag which -
providing they can create a url short enough is enough to
automatically render the image and reveal the users IP
address.

This very simple fix forces contact nick names to have html escaped.
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