Yoshihiro Ishikawa discovered that the Samba Web Administration Tool (SWAT)
was vulnerable to cross-site request forgeries (CSRF). If a Samba
administrator were tricked into clicking a link on a specially crafted web
page, an attacker could trigger commands that could modify the Samba
configuration. (CVE-2011-2522)

Nobuhiro Tsuji discovered that the Samba Web Administration Tool (SWAT) did
not properly sanitize its input when processing password change requests,
resulting in cross-site scripting (XSS) vulnerabilities. With cross-site
scripting vulnerabilities, if a user were tricked into viewing server
output during a crafted server request, a remote attacker could exploit
this to modify the contents, or steal confidential data, within the same
domain. (CVE-2011-2694)

Update instructions:

The problem can be corrected by updating your system to the following
package versions:

Ubuntu 11.04:
swat 2:3.5.8~dfsg-1ubuntu2.3

Ubuntu 10.10:
swat 2:3.5.4~dfsg-1ubuntu8.5

Ubuntu 10.04 LTS:
swat 2:3.4.7~dfsg-1ubuntu3.7

Ubuntu 8.04 LTS:
swat 3.0.28a-1ubuntu4.15

In general, a standard system update will make all the necessary changes.