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

Hot fix replace '<' with unicode equivalent from script tag #1233

Merged
merged 3 commits into from
Nov 26, 2019

Conversation

OtterleyW
Copy link
Contributor

@OtterleyW OtterleyW commented Nov 26, 2019

Fix XSS-vulnerability on SearchPage where URL param 'address' was exposed directly to schema, which is just a script tag: <script type="application/ld+json">. On server-side, this could leak malformed HTML through to browsers and made it possible to inject own script tags.

However, CSP prevents any data breach: injected JS can't send data to unknonwn 3rd party sites.

NOTE: Check that REACT_APP_CSP is in block mode on your production environment. You can read more from Flex Docs: https://www.sharetribe.com/docs/guides/how-to-set-up-csp-for-ftw/

@OtterleyW OtterleyW force-pushed the hot-fix-replace-tag-starts-from-script-tag branch from 4c575fd to dbe7583 Compare November 26, 2019 11:52
@OtterleyW OtterleyW merged commit d576bf8 into master Nov 26, 2019
@OtterleyW OtterleyW deleted the hot-fix-replace-tag-starts-from-script-tag branch November 26, 2019 11:54
@himynameisubik
Copy link

Was highlighted to us (adventurent) by Nicolas Surribas (https://www.openbugbounty.org/researchers/devl00p/) via Open Bug Bounty.

Thanks for applying the fix to the ftw-template! :)

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