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.
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-exposureRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install wp-password-protected-exposure in Claude Code
git clone --depth 1 https://github.com/WPDevelopers/essential-addons-for-elementor-lite /tmp/essential-addons-for-elementor-lite && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/essential-addons-for-elementor-lite/.claude/skills/wp-password-protected-exposure ~/.gemini/antigravity-cli/skills/wp-password-protected-exposureAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install wp-password-protected-exposure in Antigravity CLI
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
