s3 swat: Fix possible XSS attack (bug #8289)
commit0be407ad30cb9e02b47a8caaa8497ad1525a6f97
authorKai Blin <kai@samba.org>
Thu, 7 Jul 2011 08:03:33 +0000 (7 10:03 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Jul 2011 19:54:43 +0000 (26 21:54 +0200)
treef886fef44e961bbb9e91501f22cf56c929f57a37
parent69ceb111a498fd206f86883e06eef63f791f592d
s3 swat: Fix possible XSS attack (bug #8289)

Nobuhiro Tsuji of NTT DATA SECURITY CORPORATION reported a possible XSS attack
against SWAT, the Samba Web Administration Tool. The attack uses reflection to
insert arbitrary content into the "change password" page.

This patch fixes the reflection issue by not printing user-specified content on
the website anymore.

Signed-off-by: Kai Blin <kai@samba.org>
(cherry picked from commit d88744f460a2a65d4e0cfb6c944f90f09e15d3b4)
source3/web/swat.c