Updates fix for stored cross-site scripting from 0.90.0, now applied to all tags. #526
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps version to 0.90.2
@klemens-st Another way to trigger an XSS with
script
was reported for different fields. As we've talked before, the vulnerabilites are present when WordPress has already been compromised, since the malintentioned user would need permision to publish content on the system to trigger them. But if it helps keeping a site safer, then why not... 🤷Ideally I think it's up to the users to use or not use
<script>
with the plugin, so eventually we could make this optional (warning the users they should really know what they're doing if they want to allow it). But I think it's also ok not to support thescript
tag.I think this is the best place in the code to remove support for
<script>
since it's the functionwrap
uses, and the timesto_html
is used in other places seems to be safe. Let me know what you think.