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

Fix: sanitize give_form shortcode args #7375

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Fix: sanitize give_form shortcode args #7375

merged 1 commit into from
Apr 30, 2024

Conversation

alaca
Copy link
Member

@alaca alaca commented Apr 29, 2024

Description

This PR adds sanitization to give_form shortcode args.

Affects

Legacy form template

Testing Instructions

Install and activate plugin Give
Admin create at least 1 Form with the type "Legacy Form"
Create new Post and add shortcode
[give_form id="13721" display_style='abcdef"onmouseover=alert(123) b=']
Replace id by your form id
Open post and move mouse on button

Pre-review Checklist

  • Relevant @unreleased tags included in DocBlocks
  • Self Review of code and UX completed

@alaca alaca requested a review from kjohnson April 29, 2024 08:16
@alaca alaca changed the title Fix: Legacy form XSS vulnerability Fix: sanitize give_form shortcode args Apr 29, 2024
@alaca alaca merged commit b7aae2e into develop Apr 30, 2024
20 checks passed
@alaca alaca deleted the fix/xss-GIVE-646 branch April 30, 2024 16:06
@alaca alaca restored the fix/xss-GIVE-646 branch May 2, 2024 06:02
@alaca alaca deleted the fix/xss-GIVE-646 branch May 2, 2024 06:14
@alaca alaca mentioned this pull request May 2, 2024
2 tasks
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