swat: Use X-Frame-Options header to avoid clickjacking
commite9cd10049e0b5c1e24e454cc3277eb4bea033dfb
authorKai Blin <kai@samba.org>
Fri, 18 Jan 2013 22:11:07 +0000 (18 23:11 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 29 Jan 2013 09:52:01 +0000 (29 10:52 +0100)
tree2f2b974fd3be4a4a56389801ad64049ee1c99f5d
parent4f0de0faf15e2c157ad88800a11648c181d82b65
swat: Use X-Frame-Options header to avoid clickjacking

Jann Horn reported a potential clickjacking vulnerability in SWAT where
the SWAT page could be embedded into an attacker's page using a frame or
iframe and then used to trick the user to change Samba settings.

Avoid this by telling the browser to refuse the frame embedding via the
X-Frame-Options: DENY header.

Signed-off-by: Kai Blin <kai@samba.org>
Fix bug #9576 - CVE-2013-0213: Clickjacking issue in SWAT.
source3/web/swat.c