CLICKJACKING CONTROL MISSING
Clickjacking, also known as a "UI redress attack", is when an attacker uses multiple transparent or opaque layers to trick a user into clicking on a button or link on another page when they were intending to click on the top level page. Thus, the attacker is "hijacking" clicks meant for one page and routing them to another, most likely owned by another application, domain, or both.
Using a similar technique, keystrokes can also be hijacked. With a carefully crafted combination of stylesheets, iframes, and text boxes, a user can be led to believe they are typing in the password to their email or bank account, but instead they are typing into an invisible frame controlled by the attacker.
How to solve it
There are two main ways to prevent clickjacking:
- Sending the proper
X-Frame-OptionsHTTP response headers that instruct the browser not to allow framing from other domains
- Employing defensive code in the UI to ensure that the current frame is the very top level window
For more information on Clickjacking defense, please see the Clickjacking Defense Cheat Sheet.