Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

wp-password-protected-exposure

Skill by WPDevelopers

Audits and fixes WordPress and WooCommerce plugins that leak password-protected post content through AJAX handlers or listing widgets. Aimed at plugin developers and security reviewers.

  • Score 56
  • 54 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install wp-password-protected-exposure

Built from the published package, never by AI.

git clone --depth 1 https://github.com/WPDevelopers/essential-addons-for-elementor-lite /tmp/essential-addons-for-elementor-lite && mkdir -p ~/.claude/skills && cp -r /tmp/essential-addons-for-elementor-lite/.claude/skills/wp-password-protected-exposure ~/.claude/skills/wp-password-protected-exposure

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install wp-password-protected-exposure in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill checks WordPress and WooCommerce plugins for a gap in visibility checks. Password-protected posts keep post_status set to publish, so draft and private guards do not stop them. The skill explains why single-post AJAX handlers and listing widgets can expose title, price, SKU, description and permalink to unauthenticated visitors.

It gives two fixes. For single-post AJAX handlers, it adds a post_password_required() check that skips users who can edit the post. For listing widgets, it sets has_password to false for users without edit_others_posts. It also includes grep recipes to find the affected code, a curl-based reproduction, and a WP-CLI regression matrix. It is written for plugin maintainers and security reviewers.

Written from the project's SKILL.md and checked against it.

What it can do

  • Single-post AJAX gateAdds a post_password_required() check to wp_ajax_nopriv handlers that return one post or product.
  • Listing widget filterSets has_password to false on WP_Query for visitors in public listing widgets.
  • Audit grep recipesShell commands that find nopriv handlers, WP_Query calls, and existing password checks.
  • Reproduction stepsCurl request to confirm a protected product's data is returned before the patch.
  • Regression matrixWP-CLI script that tests anonymous, subscriber and administrator access to protected and normal products.
  • Common pitfalls listNotes on capability checks, gate placement, archive branches and title leakage.

What you need

  • WordPress site with the affected plugin installed
  • WP-CLI for the regression test script
  • curl for the reproduction request

Try asking

  • Audit this WordPress plugin for password-protected product leaks through AJAX handlers.
  • Show me where my listing widget builds WP_Query and add the has_password filter.
  • Add a post_password_required() check to my wp_ajax_nopriv quickview handler.

Good to know

  • Targets WordPress and WooCommerce plugins, not other platforms.
  • Does not change the global $wp_query archive branch, which the source says should be left alone.
  • Title leakage depends on how a widget prints titles and must be verified per widget.
  • The shop page lists protected products by default, so hiding them in widgets is a defense-in-depth choice.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/wp-password-protected-exposure/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to wp-password-protected-exposure

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

wp-password-protected-exposure: common questions

Why do password-protected posts leak through AJAX?

Protected posts keep post_status set to publish, and the password is enforced only through the_content and the_excerpt filters. Code that reads post fields or product data directly skips those filters.

Which capability should bypass the password check?

The source recommends edit_post with the post ID for single fetches and edit_others_posts for listings. It warns against plain read, which subscribers also have.

Does the skill hide protected products from the shop page?

No. The source says WooCommerce lists protected products on the shop page by default, and hiding them in widgets is a maintainer decision.

How do I install wp-password-protected-exposure?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is wp-password-protected-exposure free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is wp-password-protected-exposure safe to use?

It scores 56 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to wp-password-protected-exposure?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

wp-password-protected-exposure Install

Add to stack

Loading.