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

Improved escaping of user-provided values when generating shortcode markup #93

Merged
merged 3 commits into from
Sep 4, 2023

Conversation

boonebgorges
Copy link
Contributor

Hello and thanks for your work on this plugin!

I'd like to use it for a client, but on review, I noticed some issues with the way that user-provided data is being used to generate markup. To protect against XSS and other vulnerabilities, I've reviewed hyperaudio.php and put into place some best practices for escaping when building markup.

(I realize there's a handful of places where the values are not really user-provided and the escaping might be overkill, but for consistency it's generally recommend in WordPress-world to default to escaping everywhere possible.)

@maboa
Copy link
Member

maboa commented Sep 1, 2023

Sorry for only getting around to replying now. Like you say this does make most sense when values are user provided, but as long as it doesn't cause issues I'm happy to merge this PR.

As a matter of formality can you sign our Contributors License Agreement here https://hyperaud.io/cla/ ? Many thanks!

@boonebgorges
Copy link
Contributor Author

Sure thing. I've just signed the CLA.

@maboa maboa merged commit fe0be61 into hyperaudio:main Sep 4, 2023
@maboa
Copy link
Member

maboa commented Sep 4, 2023

This looks good. Many thanks @boonebgorges

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