esi-injection

Detect and exploit ESI and SSI injection vulnerabilities in CDN-cached web applications.

11|1|Updated May 4, 2026
One-click install
npx skills add https://github.com/dreadnode/capabilities --skill esi-injection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: esi-injection
Source: https://github.com/dreadnode/capabilities/tree/main/capabilities/web-security/skills/esi-injection
Command: npx skills add https://github.com/dreadnode/capabilities --skill esi-injection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Application-level security controls like web application firewalls cannot detect or block ESI and SSI injection attacks, as these tags are processed by CDN or cache layers before reaching the target application. This Skill enables security testers to exploit this gap to bypass defenses and achieve impact such as cross-site scripting, session cookie theft, and server-side request forgery.

Core Features & Use Cases

  • ESI/SSI Detection: Identify vulnerable targets via response headers, file extensions, blind injection tests, and out-of-band callback checks.
  • Multi-Vector Exploitation: Construct payloads for XSS (with WAF bypass techniques), HttpOnly cookie theft, SSRF to internal services, header injection, and chaining with XSLT injection for XXE escalation.
  • Software-Specific Guidance: Includes capability matrices for common ESI processors (Squid, Varnish, Fastly, Akamai) to tailor payloads to the target's cache layer.
  • Use Case: A red teamer testing an e-commerce application behind Akamai can use this Skill to confirm ESI processing, then exfiltrate admin session cookies to an attacker-controlled server via an ESI include tag.

Quick Start

Use the esi-injection skill to test if the target web app behind its CDN processes ESI tags and exfiltrate session cookies to your external callback server.

Frequently Asked Questions about esi-injection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does ESI injection bypass WAFs and web application firewalls?

ESI injection bypasses WAFs because Edge Side Include tags are processed by CDN or cache layers like Varnish and Akamai before traffic reaches the application, making them invisible to application-level security controls.

How do I test for SSI injection vulnerabilities in .shtml files?

You can test for SSI injection by checking response headers, file extensions, and running blind injection tests with out-of-band callback checks to confirm if the target server processes Server Side Include tags.

Can I use ESI injection to steal HttpOnly session cookies?

Yes, ESI injection enables the theft of HttpOnly session cookies by constructing payloads that force the cache layer to exfiltrate cookies to an attacker-controlled server via an ESI include tag.

Does this ESI exploitation method work with Fastly and Squid cache layers?

Yes, ESI exploitation applies to Fastly and Squid, along with Varnish and Akamai, providing software-specific capability matrices to tailor payloads for each specific cache layer processor.

How can I perform SSRF using ESI injection during red teaming?

You can perform SSRF by constructing ESI injection payloads that force the cache layer to issue server-side requests to internal services, bypassing application-level restrictions to access protected endpoints.

Can ESI injection be chained with XSLT injection for XXE attacks?

Yes, ESI injection can be chained with XSLT injection to escalate into XML External Entity attacks, extending exploitation beyond initial cache layer processing to achieve deeper server-side impact.