Vulnerabilities > CVE-2013-6075 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Strongswan
Summary
The compare_dn function in utils/identification.c in strongSwan 4.3.3 through 5.1.1 allows (1) remote attackers to cause a denial of service (out-of-bounds read, NULL pointer dereference, and daemon crash) or (2) remote authenticated users to impersonate arbitrary users and bypass access restrictions via a crafted ID_DER_ASN1_DN ID, related to an "insufficient length check" during identity comparison. Per http://www.strongswan.org/blog/2013/11/01/strongswan-denial-of-service-vulnerability-%28cve-2013-6075%29.html 'Affected are strongSwan versions 4.3.3 and newer, up to 5.1.0.'
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Overflow Buffers Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
- Client-side Injection-induced Buffer Overflow This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
- Filter Failure through Buffer Overflow In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
- MIME Conversion An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
Nessus
NASL family SuSE Local Security Checks NASL id SUSE_11_STRONGSWAN-131101.NASL description This strongswan update fixes security issues and bugs : - Specially crafted XAuth usernames and EAP identities could cause a crash in strongswan. (CVE-2013-5018) - A crafted ID packet can be used by remote attackers to crash the server or potentially gain authentication privileges under certain circumstances. (CVE-2013-6075) Additionally, a bug in route recursion limits was fixed : - Charon segfaults when left=%any / recursion limit. (bnc#840826) last seen 2020-06-05 modified 2013-12-13 plugin id 71392 published 2013-12-13 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/71392 title SuSE 11.2 / 11.3 Security Update : strongswan (SAT Patch Numbers 8488 / 8489) NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_EFA663EB875411E39A4700163E1ED244.NASL description strongSwan Project reports : A DoS vulnerability triggered by crafted IKEv1 fragmentation payloads was discovered in strongSwan last seen 2020-06-01 modified 2020-06-02 plugin id 72156 published 2014-01-28 reporter This script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/72156 title FreeBSD : strongswan -- multiple DoS vulnerabilities (efa663eb-8754-11e3-9a47-00163e1ed244) NASL family Fedora Local Security Checks NASL id FEDORA_2014-0516.NASL description This is a major update that includes a version bump, build configuration changes and security updates. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2014-01-27 plugin id 72120 published 2014-01-27 reporter This script is Copyright (C) 2014-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/72120 title Fedora 20 : strongswan-5.1.1-4.fc20 (2014-0516) NASL family Debian Local Security Checks NASL id DEBIAN_DSA-2789.NASL description A vulnerability has been found in the ASN.1 parser of strongSwan, an IKE daemon used to establish IPsec protected links. By sending a crafted ID_DER_ASN1_DN ID payload to a vulnerable pluto or charon daemon, a malicious remote user can provoke a denial of service (daemon crash) or an authorization bypass (impersonating a different user, potentially acquiring VPN permissions she doesn last seen 2020-03-17 modified 2013-11-02 plugin id 70733 published 2013-11-02 reporter This script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/70733 title Debian DSA-2789-1 : strongswan - Denial of service and authorization bypass NASL family Fedora Local Security Checks NASL id FEDORA_2014-0567.NASL description This is a major update that includes a version bump, build configuration changes and security updates. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2014-01-27 plugin id 72121 published 2014-01-27 reporter This script is Copyright (C) 2014-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/72121 title Fedora 19 : strongswan-5.1.1-4.fc19 (2014-0567) NASL family SuSE Local Security Checks NASL id OPENSUSE-2013-826.NASL description - Applied upstream fix for a denial-of-service and authorization bypass vulnerability via crafted ID payload in strongswan 4.3.3 up to 5.1.0 (CVE-2013-6075, bnc#847506). [0005-strongswan-4.3.3_5.1.0-bnc-847506-CVE-2013-6075.pa tch] - Added missed references to patch file 0003. last seen 2020-06-05 modified 2014-06-13 plugin id 75193 published 2014-06-13 reporter This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/75193 title openSUSE Security Update : strongswan (openSUSE-SU-2013:1646-1)