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

Search: Escape remotely supplied data just to be safe #8477

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

Viper007Bond
Copy link
Contributor

@Viper007Bond Viper007Bond commented Jan 6, 2018

We output debug data that comes from a remote source and even though that remote source is us, this makes it unsafe to be trusted. As a result, this data should be escaped for safety. For example if the result contained -->, it could be used to output arbitrary HTML.

@Viper007Bond Viper007Bond added the [Feature] Search For all things related to Search label Jan 6, 2018
@Viper007Bond Viper007Bond requested a review from a team as a code owner January 6, 2018 07:21
@oskosk oskosk added the [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. label Jan 8, 2018
@oskosk oskosk added this to the 5.8 milestone Jan 8, 2018
@oskosk
Copy link
Contributor

oskosk commented Jan 8, 2018

LGTM!

@oskosk oskosk added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. labels Jan 8, 2018
@gravityrail gravityrail merged commit 700dd14 into master Jan 8, 2018
@gravityrail gravityrail deleted the fix/search/escape-debug-data branch January 8, 2018 18:43
@kraftbj kraftbj removed the [Status] Ready to Merge Go ahead, you can push that green button! label Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Search For all things related to Search Touches WP.com Files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants