Welcome back fellow cybersecurity enthusiasts! It’s me Rocky! Today, I want to share with you an important topic: how I discovered a clickjacking bug using simple HTML script. During my recon phase, I initially conducted various tests such as Open redirect, XSS and BAC but unfortunately, I couldn’t find anything interesting.
However, while reviewing the headers, I noticed that the X-Frame-Options header was missing. This missing header made the website vulnerable to clickjacking, also known as UI Redressing. Clickjacking is a dangerous technique used to deceive users into clicking on something other than what they think they’re clicking on. This can potentially lead to the disclosure of private information or allow attackers to take control of their computers, all while interacting with seemingly harmless objects like websites.
For the purpose of POC, I used this simple script:
<html>
<head>
<title>Clickjack test page</title>
</head>
<body>
<iframe src="https://example.com" width="500" height="500"></iframe> <!-- Change the src attribute to the target URL -->
</body>
</html>
To mitigate clickjacking attacks, it is crucial to enable the X-Frame-Options header and implement Content Security Policy (CSP) headers. These measures help protect against UI Redressing attacks.
If you’re interested in learning more about cybersecurity, Stay tuned for upcoming articles where we’ll explore various cybersecurity topics. Thank you for joining me today!
Frequently Asked Questions
What is a clickjacking attack?
How do you test a site for clickjacking?
How can developers prevent clickjacking?
Related Articles
SSH DDoS Attack Simulation Using Python: A Comprehensive Guide
Hey guys! 👋 Rocky here. Let’s talk about something wild but super important: DDoS attacks targeting SSH —and how Python
ViewCapture Android Traffic Remotely With Wireshark
As the world becomes increasingly mobile, capturing and analyzing Android traffic remotely has become a critical skill f
ViewThe Ultimate Nmap Guide: Master Network Scanning, Scripting, and Security Audits
Hey guys, Rocky here! 👋 Welcome to your ultimate guide to Nmap —the Swiss Army knife of networking tools! Whether you’r
ViewMastering SQL Injection Recon – Step-by-Step Guide for Bug Bounty Hunters
Picture this: You’re testing a website, and with a simple tweak to a login form— BAM! —you trick the database into spill
ViewHow To Bypass OTP Using Burp Suite | OTP Bypass Using BurpSuite
Ever wondered how those pesky One-Time Passwords (OTPs) that safeguard our online accounts can be bypassed? Well, you're
ViewBypass Google Two-Factor Authentication
Hey Folks, today’s article is going to be very interesting because we are going to talk about a method using which we ca
ViewCOMMENTS (0)
Sign in to post intel on this briefing.
