Skip to content
Back to skills

Xpath Injection

ASecurity

XPath / XQuery injection — breaking out of XPath queries over XML data to bypass authentication, alter logic, or blind-extract nodes (no privilege model, so the whole document is reachable). Tier 1. Payloads: payloads/ldap-xpath-xslt.md. Use when input reaches an XPath/XQuery (XML-backed auth/search).

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
securitynodeexpressbackend

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill xpath-injection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Xpath Injection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Xpath Injection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-xpath-injection/badge)](https://www.skillsdirectory.com/skills/anandjogawade-xpath-injection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: xpath-injection
description: "XPath / XQuery injection — breaking out of XPath queries over XML data to bypass authentication, alter logic, or blind-extract nodes (no privilege model, so the whole document is reachable). Tier 1. Payloads: payloads/ldap-xpath-xslt.md. Use when input reaches an XPath/XQuery (XML-backed auth/search)."
---

# XPath / XQuery Injection

XML has no per-node access control, so a working injection can read the entire document. Payloads: `${CLAUDE_PLUGIN_ROOT}/payloads/ldap-xpath-xslt.md`.

## Trigger phrases
`xpath injection, xquery injection, xml query injection, xpath auth bypass`

## Method
1. **Probe/auth bypass:** `' or '1'='1`, `" or "1"="1`, `x' or name()='username' or 'x'='y`, `']|//user/*|a['`.
2. **Blind extraction:** `substring((//user[1]/password),N,1)='X'` with a boolean oracle; enumerate node names with `name(//*[N])`, counts with `count(//user)`.
3. **Errors:** malformed expressions to leak engine/structure.

## Escalation
Auth bypass → access; full-document extraction → credential/data disclosure.

## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or headless browser for client-side; Windows-local last resort. If a Burp MCP is present, route requests through Burp proxy for visibility and send manual PoCs to Repeater (see `zazy-orchestrator`).

## Verification (background, before reporting)
Re-confirm independently (second payload/tool/vantage or OAST callback) and reproduce before marking CONFIRMED. For blind cases use OAST (Collaborator/interactsh) before concluding negative. Report true positives only.

## Evidence
The injected expression, the bypass or extracted nodes, and the affected query.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.