| name | wstg-clnt-09 |
| description | Testing for Clickjacking |
| category | client-side |
| owasp_id | WSTG-CLNT-09 |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["client-side","javascript","dom","cors","wstg","clnt"] |
| tech_stack | [] |
| cwe_ids | ["CWE-922"] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
wstg-clnt-09
Test ID
WSTG-CLNT-09
Test Name
Testing for Clickjacking
High-Level Description
Clickjacking (UI redressing) tricks users into clicking hidden elements by overlaying transparent frames over legitimate UI. Attackers can make users unknowingly perform actions like changing settings, making purchases, or granting permissions.
What to Check
How to Test
Step 1: Check Headers
#!/bin/bash
TARGET="https://target.com"
curl -sI "$TARGET" | grep -iE "x-frame-options|content-security-policy"
Step 2: Clickjacking PoC
<!DOCTYPE html>
<html>
<head>
<title>Clickjacking PoC</title>
<style>
#target {
position: absolute;
: ;
: ;
: ;
: ;
}
{
: absolute;
: ;
: ;
: ;
}
{
: absolute;
: ;
: ;
: ;
: ;
}
Click to win a prize!
CLICK HERE TO WIN!