Skip to content

X-Fields 1.0.1 — Security hardening

Choose a tag to compare

@github-actions github-actions released this 16 Nov 14:29
· 9 commits to main since this release

Security

  • Field groups and X-Fields Tools now require manage_options (filter xf_manage_capability); previously anyone with page capabilities (Editors) could create field groups.
  • Front-end form redirects are restricted to the same site (wp_safe_redirect), fixing an open redirect via protocol-relative REQUEST_URI (e.g. //evil.example). External confirmation URLs must be whitelisted with allowed_redirect_hosts.
  • Shortcodes submitted by anonymous visitors (field values and post content) are neutralized.
  • User field no longer exposes login names to users who can't list users.
  • Relationship field never shows titles of posts the current user can't read.
  • Select values are restricted to configured choices; True/False, Color and Date values are validated server-side.
  • Expired form sessions are purged (daily cron + on write), preventing unbounded table growth from public forms.

Fixed

  • Field option values were HTML-encoded again on every save (& → &…).

Tests

  • Smoke/security suite extended to 38 checks (roles, redirects, shortcodes, validation, sessions).

Install: download x-fields-v1.0.1.zip below and upload it from Plugins → Add New → Upload. Requires WordPress 6.0+ and PHP 7.4+.

Full changelog: v1.0.0...v1.0.1