fix: security hardening from 2026-07 audit#1
Closed
arifulhoque7 wants to merge 2 commits into
Closed
Conversation
Security-only, feature-preserving fixes for the free-plugin findings from the 2026-07 audit (tracked with the pro findings on weDevsOfficial/wpuf-pro#1622). - URL custom-field output: esc_url/esc_attr/esc_html (stored XSS) (weDevsOfficial/wpuf-pro#1608) - wpuf_clear_schedule_lock: require edit_others_posts + absint (missing authz) (weDevsOfficial/wpuf-pro#1609) - custom-field labels esc_html, embed URL esc_url_raw, transaction query strict in_array + absint (weDevsOfficial/wpuf-pro#1610) - repeat-field submissions: per-element sanitize on storage (weDevsOfficial/wpuf-pro#1620) - JSON import: allowlist post_type/post_status (mass-assignment) (weDevsOfficial/wpuf-pro#1621) - Settings API: replace deprecated create_function with a closure No functional behaviour change for legitimate flows. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Reformat repeat-field sanitizer closures to WPCS style and restore the original single-line // phpcs:ignore on the settings-desc callback, so the security-fix changes introduce zero new PHPCS errors vs develop. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Owner
Author
|
Recreated against weDevsOfficial: weDevsOfficial#1903 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Security hardening — 2026-07 audit (free plugin)
Free-plugin fixes from the 2026-07 WPUF security audit. Findings are tracked alongside the pro set on weDevsOfficial/wpuf-pro#1622.
Security-only, feature-preserving.
php -lclean on all changed files.esc_url/esc_attr/esc_html.wpuf_clear_schedule_lockmissing authorization →current_user_can( 'edit_others_posts' )+absint.esc_url_raw, transaction query strictin_array+absint, deprecatedcreate_function→ closure.post_type/post_status(mass-assignment).No behaviour change for legitimate flows (rich text / shortcodes still render; storage-layer sanitization preserves multi-value data).
🤖 Generated with Claude Code