Clickjacking
24A hidden frame or deceptive overlay can turn an innocent click into consent, or capture a password intended for the real login page.
Protect all relevant authentication and authorization screens.
Key idea: Protect the entire authorization interface.
Rules & examples
Protect the entire authorization interface.
- Authorization servers MUST prevent clickjacking.
- Servers SHOULD use CSP level 2 or greater, including frame-ancestors and appropriate script restrictions.
- Apply controls across authorization, login, device authorization, and error pages as applicable. Combine defenses for legacy agents unless they are explicitly unsupported.
Frame policy must fit legitimate embedding requirements. The RFC recommends configurable permitted origins per client; relying on one protected page leaves other authorization screens exposed.
Sources
New to this? Start hereA quick picture + helpful background
A key is different from permission.
An app, a person, and a server have different roles. Follow who asks, who grants permission, and who checks the credential. A key in the drawing is an analogy, not a literal protocol field.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.