clickjacking_test
Test websites for clickjacking vulnerabilities by checking X-Frame-Options and CSP headers, then generate proof-of-concept HTML if protections are missing.
Instructions
Check X-Frame-Options and CSP frame-ancestors headers; generate PoC iframe HTML. Fetches response headers and checks for framing protections. If protections are missing, generates a ready-to-use PoC HTML page that embeds the target in a transparent iframe with a decoy button overlay. Returns: {headers, x_frame_options, csp_frame_ancestors, vulnerable, poc_html}. Side effects: Single HEAD/GET request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_url | Yes | URL to test for clickjacking vulnerability, e.g. https://target/my-account |