Skip to content

Security: validate profile and account tab input#445

Merged
polevaultweb merged 1 commit into
developfrom
security/lfi-tab-validation
May 30, 2026
Merged

Security: validate profile and account tab input#445
polevaultweb merged 1 commit into
developfrom
security/lfi-tab-validation

Conversation

@polevaultweb
Copy link
Copy Markdown
Contributor

Security Fix

Validates the tab query variable against the whitelist of registered tabs before using it in template loading or action hooks.

Changes:

  • wpum_get_active_profile_tab() — validates tab against wpum_get_registered_profile_tabs(), falls back to default
  • wpum_display_account_page_content() — validates tab against wpum_get_account_page_tabs(), falls back to default
  • 8 WPUnit tests covering valid tabs, traversal attempts, null bytes, unregistered values

Patch for a responsibly disclosed vulnerability report (thanks to Yat via Wordfence).

Validate the tab query variable against the whitelist of registered
profile/account tabs before using it in template loading or action
hooks. Unregistered values fall back to the default tab.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@polevaultweb polevaultweb merged commit aca3587 into develop May 30, 2026
19 checks passed
@polevaultweb polevaultweb deleted the security/lfi-tab-validation branch May 30, 2026 09:28
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.

1 participant