XP

xpath-injection-testing

A security testing toolkit for detecting and mitigating XPath injection vulnerabilities.

Install

mkdir -p .claude/skills/xpath-injection-testing && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6523" && unzip -o skill.zip -d .claude/skills/xpath-injection-testing && rm skill.zip

Installs to .claude/skills/xpath-injection-testing

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

XPath注入漏洞测试的专业技能和方法论
20 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Identify XPath injection entry points in login and search functions
  • Execute boolean-based and time-based blind injection attacks
  • Bypass authentication using logical operators and comment injection
  • Extract XML node data through substring enumeration
  • Apply URL and HTML entity encoding to evade input filters

How it works

The skill identifies vulnerabilities where user input is directly concatenated into XPath queries, allowing attackers to manipulate query logic using operators like 'or' and 'and'. It then uses techniques such as boolean inference or time-based delays to extract data or bypass authentication checks.

Inputs & outputs

You give it
User-supplied string containing XPath syntax characters
You get back
Extracted XML node data or successful authentication bypass

When to use xpath-injection-testing

  • Test login endpoints for injection
  • Validate xml data processing
  • Identify blind xpath vulnerability
  • Prevent authentication bypass

About xpath-injection-testing

Identifies entry points vulnerable to XPath injection by testing input handling. It provides payloads to check for logic bypass and information disclosure.

XPath注入漏洞测试的专业技能和方法论

When not to use it

  • Unauthorized environments without explicit testing permission
  • Systems where XPath queries are fully parameterized or use variable resolvers

Prerequisites

Access to an application that processes user input via XPath queries

Limitations

  • Requires knowledge of the target application's XPath implementation
  • Dependent on the specific XPath version syntax supported by the target

How it compares

Unlike manual testing which requires guessing query structures, this method systematically uses XPath functions like substring() and count() to programmatically extract data from XML nodes.

Compared to similar skills

xpath-injection-testing side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
xpath-injection-testing (this skill)17moNo flagsIntermediate
springboot-security55moNo flagsIntermediate
deserialization-testing27moReviewAdvanced
jar-audit-agent17moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry