-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
OSM username isn't escaped properly #8813
Comments
This regression was introduced in 32f8274 for #7998. That PR effectively removed much of the string sanitization from the codebase, including for this part of the UI. Some of the sanitization may have been unnecessary, but it’s hard to say with such a large change. Unfortunately, there are also some places where the fix will be less straightforward, like in |
Only affects currently logged in user who has put HTML in their display name. openstreetmap#8813
Only affects currently logged in user who has put HTML in their display name. #8813
This regressed in 43fe6e9 |
URL
No response
How to reproduce the issue?
Test <hr> McTesty
I realise this won't come up in many circumstances, but the unusual name on my development machine is a side-effect of some XSS testing for website that I was doing a few months ago. Although unlikely to be exploitable (since the username within iD is only shown to the user, not to anyone else, and due to limitations on the characters permitted in the OSM username) it's probably worth addressing anyway, and might indicate other places where "user supplied" information from the API isn't being escaped.
Screenshot(s) or anything else?
Note how the username in the rails port (circled green, top right) is properly escaped, but within iD it is not escaped (circled red, bottom left)
Which iD Editor versions do you see the issue on?
Released version at openstreetmap.org/edit
Which browsers are you seeing this problem on?
Firefox
The text was updated successfully, but these errors were encountered: