Details
Alert ID 10020-4
Alert Type Passive
Status release
Risk Medium
CWE 1021
WASC 15
Technologies Targeted All
Tags CWE-1021
OWASP_2017_A06
OWASP_2021_A05
WSTG-V42-CLNT-09
More Info Scan Rule Help

Summary

An X-Frame-Options header was present in the response but the value was not correctly set.

Solution

Ensure a valid setting is used on all web pages returned by your site (if you expect the page to be framed only by pages on your server (e.g. it's part of a FRAMESET) then you'll want to use SAMEORIGIN, otherwise if you never expect the page to be framed, you should use DENY. Alternatively consider implementing Content Security Policy's "frame-ancestors" directive.

Other Info

References

Code

org/zaproxy/zap/extension/pscanrules/AntiClickjackingScanRule.java