Skip to content

Conversation

@xecdev
Copy link
Collaborator

@xecdev xecdev commented Apr 20, 2025

This PR fixes #53, #51 and #50 (as they are all related to the same issue in a way) by escaping variables when echo'ed, hardening payment_trigger(): cap JSON body size and whitelisting expected fields plus sanitizing data stored.

Test plan:

  • Install the updated plugin
  • Make a paywall payment and quickly click elsewhere on the screen to enable the Payment_Trigger
  • Check either the Customers page on Dashboard or DB and confirm that the paywall tx has been recorded

@xecdev xecdev added the enhancement (behind the scenes) Stuff that users won't see label Apr 20, 2025
@xecdev xecdev requested a review from Klakurka April 20, 2025 08:54
@xecdev xecdev self-assigned this Apr 20, 2025
@xecdev
Copy link
Collaborator Author

xecdev commented Apr 20, 2025

WIP

@xecdev
Copy link
Collaborator Author

xecdev commented Apr 20, 2025

Ready for review

@Klakurka Klakurka merged commit 8b3a334 into master Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement (behind the scenes) Stuff that users won't see

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Variables and options must be escaped when echo'd

3 participants