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

cors-credential-wordpress

Skill by uphiago

Detects and validates CORS credential reflection on WordPress REST API endpoints. It also builds browser proof-of-concept pages and exfiltration commands, aimed at security testers checking WordPress sites for cross-origin data access.

  • Score 77
  • 1.4k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install cors-credential-wordpress

Built from the published package, never by AI.

git clone --depth 1 https://github.com/uphiago/recon-skills /tmp/recon-skills && mkdir -p ~/.claude/skills && cp -r /tmp/recon-skills/recon/cors-credential-wordpress ~/.claude/skills/cors-credential-wordpress

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

Step-by-step: install cors-credential-wordpress in Claude Code

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

About

This skill checks WordPress REST API endpoints for CORS misconfigurations that reflect an attacker origin with credentials enabled. It uses curl to send an Origin header and inspect the Access-Control-Allow-Origin and Access-Control-Allow-Credentials responses. A multi-endpoint script covers users, posts, pages, media, comments, WooCommerce, Gravity Forms, Elementor and Revolution Slider routes.

The source also includes a sample browser page that fetches data with credentials included, plus curl commands that pull users, posts and WooCommerce products. It documents eight CORS variants and two attack chains that move from data access to account takeover. The source is written for security testers who need to confirm whether a CORS finding is exploitable.

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

What it can do

  • Single-endpoint CORS detectionSends an evil.com Origin header to the users endpoint and reads the CORS response headers.
  • Multi-endpoint CORS matrixTests a list of WordPress, WooCommerce and plugin REST routes for credentialed CORS responses.
  • Browser PoC constructionProvides a sample HTML page that fetches REST data with credentials from another origin.
  • Data exfiltration payloadsGives curl and Python commands to pull users, posts and WooCommerce products.
  • CORS variant referenceLists eight CORS variants with detection signals and exploitability ratings.
  • Attack chain guidesDescribes two chains from CORS data access to admin account takeover.

What you need

  • curl
  • python3
  • nmap
  • masscan
  • subfinder
  • httpx

Try asking

  • Check this WordPress site for CORS credential reflection on /wp-json/wp/v2/users.
  • Run the multi-endpoint CORS matrix against example.com and list credentialed routes.
  • Build a browser PoC page that fetches WordPress posts with credentials from another origin.

Good to know

  • Listed as Linux only.
  • Target must expose the WordPress REST API at /wp-json/wp/v2/.
  • SameSite cookie settings and Cloudflare Origin stripping can block the attack.
  • The source does not state any authorization requirement for testing targets.

Security check

A

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

Checked automatically: recon/cors-credential-wordpress/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to cors-credential-wordpress

All alternatives →

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

cors-credential-wordpress: common questions

What does this skill check for?

It checks whether WordPress REST endpoints reflect a supplied Origin header and return Access-Control-Allow-Credentials: true. The source says a wildcard origin without credentials is not treated as a vulnerability.

Which tools does it need?

The source lists curl, nmap, python3, masscan, subfinder, httpx and nuclei as requirements. Browser PoC checks use web_extract or browser_navigate.

Does it only detect the issue or also use it?

The source covers both. It includes detection steps, browser PoC code, data exfiltration commands and attack chains that lead to account takeover.

How do I install cors-credential-wordpress?

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

Is cors-credential-wordpress free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is cors-credential-wordpress safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality A. 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 cors-credential-wordpress?

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

cors-credential-wordpress Install

Add to stack

Loading.