dangling-markup-injection

Exfiltrate CSRF tokens and session data via dangling HTML markup.

120|8|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/Prohao42/aimy-skill --skill dangling-markup-injection-prohao42
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dangling-markup-injection
Source: https://github.com/Prohao42/aimy-skill/tree/main/ai-mian/hack-skills/skills/dangling-markup-injection
Command: npx skills add https://github.com/Prohao42/aimy-skill --skill dangling-markup-injection-prohao42

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses scenarios where HTML injection is possible but JavaScript execution is blocked, allowing for exfiltration of sensitive data like CSRF tokens and session information.

Core Features & Use Cases

  • Dangling Markup Injection: Utilizes unclosed HTML tags to capture subsequent page content for exfiltration.
  • Exfiltration Vectors: Supports various methods such as image tags, form action hijack, base tag hijack, and meta refresh redirect.
  • Data Extraction: Steals CSRF tokens, pre-filled form values, session identifiers, and sensitive user content.
  • Browser-Specific Behavior: Details on how different browsers handle dangling markup.
  • Advanced Techniques: Provides strategies for selective consumption, textarea + form combo, and comment / style dangling.

Quick Start

Use the dangling-markup-injection skill to exfiltrate CSRF tokens from a vulnerable web application.

Frequently Asked Questions about dangling-markup-injection

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

FAQPage Schema
How can I exfiltrate CSRF tokens when JavaScript is blocked by CSP?

Dangling markup injection exfiltrates CSRF tokens in JavaScript-blocked scenarios by utilizing unclosed HTML tags to capture subsequent page content. This technique bypasses strict Content Security Policy restrictions without executing scripts.

What is a dangling markup injection and how does it work?

Dangling markup injection is an HTML injection technique using unclosed tags to capture sensitive page content. It works by leaving attributes open so subsequent page data is absorbed into the attacker's payload for exfiltration.

What vectors can I use for HTML injection exfiltration without JavaScript?

You can use image tags, form action hijacks, base tag hijacks, and meta refresh redirects as exfiltration vectors. These methods steal session data and pre-filled form values without relying on JavaScript execution.

How do different browsers handle dangling markup injection vectors?

Different browsers handle dangling markup in specific ways, affecting how unclosed tags consume subsequent page content. Understanding these browser-specific behaviors is crucial for successful HTML injection and data exfiltration.

What prerequisites do I need to use dangling markup injection?

Using dangling markup injection requires knowledge of HTML and browser behavior. The target application must have an HTML injection vulnerability where JavaScript execution is explicitly blocked by content security policies.

When should I use textarea or style tags for dangling markup instead of image tags?

Use textarea and form combos or comment and style dangling for advanced selective consumption of page content. These strategies provide better control over what sensitive data is captured compared to standard image tag exfiltration vectors.