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

Strip HTML tags #141

Open
missinglink opened this issue Jun 24, 2021 · 0 comments
Open

Strip HTML tags #141

missinglink opened this issue Jun 24, 2021 · 0 comments

Comments

@missinglink
Copy link
Member

missinglink commented Jun 24, 2021

It was brought up today that it could be possible for data providers to return HTML within name strings.

In particular, malicious tags such as <script src="attack.js" /> could cause problems for browsers consuming the data who are not following security best practices (eg. using dangerouslySetInnerHTML in React).

It might be worth us stripping HTML from all fields which could be rendered in the browser.

A SQL query against WOF didn't find any HTML elements, I also tried to check OSM but didn't find any, although I don't doubt nefarious people edit OSM for this purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant