entrovyx/hermes-agent-offsec/cors-credential-wordpress
Claude Code and agent skill by entrovyx/hermes-agent-offsec
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Exploit WP CORS credential reflection for data theft.
Install
npx vskill@latest install entrovyx/hermes-agent-offsec/cors-credential-wordpressSKILL.md
The same SKILL.md was published earlier as entrovyx/hermes-agent-offsec/cors-credential-wordpress.
CORS Credential WordPress Skill
Detect, confirm, and exploit CORS credential reflection on WordPress REST API endpoints. CORS misconfiguration is one of the most common critical findings in US SMB WordPress sites (~7-8% of all WP targets), enabling cross-origin data exfiltration with victim cookies. Documents 8 CORS variants and full browser PoC construction.
When to Use
- After
wp-mass-reconflags a target withAccess-Control-Allow-Credentials: true. - Testing any WordPress site's REST API for cross-origin data access.
- Building attack chains: CORS → user enumeration → spear-phishing → ATO.
- Validating whether a CORS finding is exploitable (not just present).
Prerequisites
terminaltool with curl and python3.web_extractorbrowser_navigatefor browser PoC verification.- Target must have WordPress REST API accessible (
/wp-json/wp/v2/).
How to Run
Quick Reference
| Variant | Detection | Exploitability | |
|---|---|---|---|
| Origin reflection + creds | Access-Control-Allow-Credentials: true + mirror Origin | Critical — full data theft | |
| Null origin | Access-Control-Allow-Origin: null | High — sandboxed iframes | |
| Wildcard no creds | Access-Control-Allow-Origin: * (no creds) | Info — public data only | |
| Credentialed preflight | OPTIONS returns 200 + ACAC | High — if GET without preflight | |
| Auth-only leak | CORS only on auth-protected endpoints | High — cookie theft | |
| Multi-origin | Multiple origins reflected | Critical — broader attack surface | |
| Plugin-specific CORS | CORS only on plugin namespace | Medium — plugin data | |
| Staging-only CORS | Production has no CORS, staging does | Medium — dependent on staging access |
Procedure
Step 1 — Single-Endpoint Detection
Positive signals:
Access-Control-Allow-Origin: https://evil.com(mirrors attacker origin)Access-Control-Allow-Credentials: true(sends cookies cross-origin)Access-Control-Allow-Methods: GET(data exfiltration vector)- HTTP 200 on the endpoint itself (data is accessible)
Step 2 — Multi-Endpoint CORS Matrix
Step 3 — Browser PoC (save as poc.html)
Step 4 — Data Exfiltration Payloads
Attack Chains
Chain A: CORS → User Enum → Spear-Phish → ATO
- CORS exfiltrates all users with names/slugs
- Craft spear-phishing email to admin (
admin@target.com) - Link to CORS phishing page that steals WP session cookie
- Login as admin with stolen session → full site compromise
Chain B: CORS → Cookie Theft → API Access → ATO
- Victim visits attacker page while logged into target WP
- CORS fetch with
credentials: "include"sends WP auth cookie - Attacker replays cookie to access
/wp-admin/as victim - Change admin email, reset password → persistent access
Pitfalls
- Preflight blocking: Some servers require OPTIONS preflight for CORS requests with custom headers. Test with both simple GET (no preflight) and credentialed fetch (triggers preflight).
- SameSite cookies:
SameSite=LaxorSameSite=Strictcookies won't send cross-origin even with CORS. Check cookie attributes in browser. - WAF interference: Cloudflare may strip
Originheader or block cross-origin requests. Test from non-Cloudflare IP. - False positive: `Access-Control-Allow-Origin: *` without credentials — this is public data, not a vulnerability. The key is
Access-Control-Allow-Credentials: true.
Verification
- The curl command MUST show
Access-Control-Allow-Credentials: trueAND anAccess-Control-Allow-Originthat matches the attacker's origin (not*). - Browser PoC MUST successfully fetch data from a different origin with credentials.
- The exfiltrated data MUST contain non-public information (users, posts, settings — not just public WP metadata).
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/offsec/recon/cors-credential-wordpress/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/entrovyx/hermes-agent-offsec/cors-credential-wordpress)