CVE-2013-0213
NoneCVSS
—
EPSS
3.2%
Published
Feb 2, 2013
CISA due date
—
Cloudanix analysis
An older web tool used to manage file sharing on servers can be hidden inside another web page, allowing attackers to trick administrators into making changes without realizing it.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Other
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The Samba Web Administration Tool (SWAT) fails to set X-Frame-Options or equivalent frame-busting controls, permitting remote embedding of its interface inside attacker-controlled FRAME or IFRAME elements.
Why it matters to the business
Administrators visiting a malicious page may unknowingly change Samba configuration, expose shares, or grant elevated access, resulting in unauthorized data exposure or service disruption.
How an attack unfolds
An attacker builds a page that loads the target SWAT instance inside a transparent or off-screen frame, then lures an authenticated administrator to the page; clicks on the attacker page are relayed into SWAT, executing configuration changes without the administrator's knowledge.
How to fix it
Upgrade Samba 3.x to 3.5.21 or later, 3.6.x to 3.6.12 or later, and 4.x to 4.0.2 or later; disable SWAT when not required; enforce X-Frame-Options: DENY on any remaining administrative interfaces.
How to confirm the fix worked
Verify the deployed Samba version against the fixed releases listed in the advisory; inspect HTTP responses from SWAT for the presence of X-Frame-Options or Content-Security-Policy frame-ancestors directives; attempt to load SWAT inside an iframe from a different origin and confirm the attempt is blocked.
Typical attack path
- Identify an internet-facing or internally reachable SWAT instance
- Host a malicious site embedding the SWAT URL in a hidden frame
- Social-engineer an authenticated administrator to visit the malicious site
- Capture and replay clicks to alter Samba settings or credentials
How to detect it
Search web-server access logs for SWAT endpoints with referrers outside the expected administrative domain; inspect browser or proxy logs for pages embedding SWAT in frames; review Samba configuration change history for unexpected modifications during the same time window as suspicious web requests.
What your security team should do
- Immediately upgrade all affected Samba packages to the versions containing the frame-busting fix
- Disable or firewall-off SWAT unless it is explicitly required
- Add web-application firewall rules that strip or block framing of administrative endpoints
- Audit recent administrative changes made through SWAT for signs of unauthorized modification
The record
The Samba Web Administration Tool (SWAT) in Samba 3.x before 3.5.21, 3.6.x before 3.6.12, and 4.x before 4.0.2 allows remote attackers to conduct clickjacking attacks via a (1) FRAME or (2) IFRAME element.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | samba | 0 | 2:3.6.6-5 |
| Debian:12 | samba | 0 | 2:3.6.6-5 |
| Debian:13 | samba | 0 | 2:3.6.6-5 |
| Debian:6.0 | samba | 0 | 2:3.5.6~dfsg-3squeeze9 |
| Red Hat:enterprise_linux:5::client | libsmbclient | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client | libsmbclient-devel | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client | samba | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client | samba-client | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client | samba-common | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client | samba-debuginfo | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client | samba-swat | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client | samba3x | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client | samba3x-client | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client | samba3x-common | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client | samba3x-debuginfo | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client | samba3x-doc | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client | samba3x-domainjoin-gui | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client | samba3x-swat | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client | samba3x-winbind | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client | samba3x-winbind-devel | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client_workstation | libsmbclient | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client_workstation | libsmbclient-devel | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client_workstation | samba | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client_workstation | samba-client | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client_workstation | samba-common | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client_workstation | samba-debuginfo | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client_workstation | samba-swat | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::client_workstation | samba3x | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client_workstation | samba3x-client | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client_workstation | samba3x-common | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client_workstation | samba3x-debuginfo | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client_workstation | samba3x-doc | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client_workstation | samba3x-domainjoin-gui | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client_workstation | samba3x-swat | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client_workstation | samba3x-winbind | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::client_workstation | samba3x-winbind-devel | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::server | libsmbclient | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::server | libsmbclient-devel | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::server | samba | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::server | samba-client | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::server | samba-common | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::server | samba-debuginfo | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::server | samba-swat | 0 | 0:3.0.33-3.40.el5_10 |
| Red Hat:enterprise_linux:5::server | samba3x | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::server | samba3x-client | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::server | samba3x-common | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::server | samba3x-debuginfo | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::server | samba3x-doc | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::server | samba3x-domainjoin-gui | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::server | samba3x-swat | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::server | samba3x-winbind | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:5::server | samba3x-winbind-devel | 0 | 0:3.6.6-0.136.el5 |
| Red Hat:enterprise_linux:6::client | libsmbclient | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::client | libsmbclient-devel | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::client | samba | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::client | samba-client | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::client | samba-common | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::client | samba-debuginfo | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::client | samba-doc | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::client | samba-domainjoin-gui | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::client | samba-swat | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::client | samba-winbind | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::client | samba-winbind-clients | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::client | samba-winbind-devel | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::client | samba-winbind-krb5-locator | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | libsmbclient | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | libsmbclient-devel | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | samba | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | samba-client | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | samba-common | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | samba-debuginfo | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | samba-doc | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | samba-domainjoin-gui | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | samba-swat | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | samba-winbind | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | samba-winbind-clients | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | samba-winbind-devel | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::computenode | samba-winbind-krb5-locator | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | libsmbclient | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | libsmbclient-devel | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | samba | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | samba-client | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | samba-common | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | samba-debuginfo | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | samba-doc | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | samba-domainjoin-gui | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | samba-swat | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | samba-winbind | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | samba-winbind-clients | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | samba-winbind-devel | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::server | samba-winbind-krb5-locator | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | libsmbclient | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | libsmbclient-devel | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | samba | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | samba-client | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | samba-common | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | samba-debuginfo | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | samba-doc | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | samba-domainjoin-gui | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | samba-swat | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | samba-winbind | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | samba-winbind-clients | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | samba-winbind-devel | 0 | 0:3.6.9-164.el6 |
| Red Hat:enterprise_linux:6::workstation | samba-winbind-krb5-locator | 0 | 0:3.6.9-164.el6 |
| Ubuntu:14.04:LTS | samba | 0 | 2:4.1.6+dfsg-1ubuntu2.14.04.13 |
| openSUSE:Tumbleweed | samba | 0 | 4.5.0-1.1 |
Related vulnerabilities
- CVE-2020-1472 An elevation of privilege vulnerability exists when an attacker establishes a vulnerable… Also affects samba
- CVE-2017-15275 Samba before 4.7.3 might allow remote attackers to obtain sensitive information by… Also affects samba
- CVE-2017-14746 Use-after-free vulnerability in Samba 4.x before 4.7.3 allows remote attackers to execute… Also affects samba
- CVE-2017-11103 Heimdal before 7.4 allows remote attackers to impersonate services with Orpheus' Lyre… Also affects samba
- CVE-2017-9461 smbd in Samba before 4.4.10 and 4.5.x before 4.5.6 has a denial of service vulnerability… Also affects samba
- CVE-2017-7494 Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote… Also affects samba
- CVE-2016-2119 libcli/smb/smbXcli_base.c in Samba 4.x before 4.2.14, 4.3.x before 4.3.11, and 4.4.x… Also affects samba
- CVE-2016-2115 Samba 3.x and 4.x before 4.2.11, 4.3.x before 4.3.8, and 4.4.x before 4.4.2 does not… Also affects samba