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

Purify guides search terms before using them #3230

Merged
merged 1 commit into from
Jun 17, 2019

Conversation

kennyadsl
Copy link
Member

Description

We had an XSS vulnerability that allows injecting code in the page. Purifying the string that is passed to the search engine fixes the issue.

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)
  • I have added tests to cover this change (if needed)

We had an XSS vulnerability that allows to inject code using an URL
like:

https://guides.solidus.io/search/?inputSearch=%22%3Ciframe+src%3Djavascript%26colon%3Balert%26lpar%3B%22H%26period%3Backed%22%26rpar%3B%3E%22

Purifying the string that is passed to the search engine fixes the issue.
@kennyadsl kennyadsl self-assigned this Jun 17, 2019
Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔐 thank you @kennyadsl 👍

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@kennyadsl
Copy link
Member Author

Merging without respecting the 24-hour waiting policy for security reasons.

@kennyadsl kennyadsl merged commit 3b343c4 into solidusio:master Jun 17, 2019
@kennyadsl kennyadsl deleted the kennyadsl/purify-guides-search branch June 17, 2019 10:32
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.

3 participants