Vulnerabilities > CVE-2013-5018 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in multiple products
Attack vector
NETWORK Attack complexity
MEDIUM Privileges required
NONE Confidentiality impact
NONE Integrity impact
NONE Availability impact
PARTIAL Summary
The is_asn1 function in strongSwan 4.1.11 through 5.0.4 does not properly validate the return value of the asn1_length function, which allows remote attackers to cause a denial of service (segmentation fault) via a (1) XAuth username, (2) EAP identity, or (3) PEM encoded file that starts with a 0x04, 0x30, or 0x31 character followed by an ASN.1 length value that triggers an integer overflow.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 6 | |
OS | 3 |
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 Fedora Local Security Checks NASL id FEDORA_2013-14481.NASL description rhbz#981429: New upstream release Fixes CVE-2013-5018: rhbz#991216, rhbz#991215 Fixes rhbz#991859 failed to build in rawhide Updated local patches and removed which are not needed Fixed errors around charon-nm Added plugins libstrongswan-pkcs12.so, libstrongswan-rc2.so, libstrongswan-sshkey.so Added utility imv_policy_manager 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 2013-08-21 plugin id 69404 published 2013-08-21 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/69404 title Fedora 19 : strongswan-5.1.0-1.fc19 (2013-14481) 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 Gentoo Local Security Checks NASL id GENTOO_GLSA-201309-02.NASL description The remote host is affected by the vulnerability described in GLSA-201309-02 (strongSwan: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in strongSwan. Please review the CVE identifiers referenced below for details. Impact : A remote attacker could use ECDSA to authenticate as another user with an invalid signature. Additionally, a remote attacker could send a specially crafted request, possibly resulting in a Denial of Service. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 69539 published 2013-09-02 reporter This script is Copyright (C) 2013-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/69539 title GLSA-201309-02 : strongSwan: Multiple vulnerabilities NASL family SuSE Local Security Checks NASL id OPENSUSE-2013-643.NASL description This update of strongswan fixed a denial-of-service vulnerability, that could be triggered by special XAuth usernames and EAP identities. last seen 2020-06-05 modified 2014-06-13 plugin id 75115 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/75115 title openSUSE Security Update : strongswan (openSUSE-SU-2013:1332-1) NASL family SuSE Local Security Checks NASL id OPENSUSE-2013-645.NASL description This update of strongswan fixed a denial-of-service vulnerability, that could be triggered by special XAuth usernames and EAP identities. last seen 2020-06-05 modified 2014-06-13 plugin id 75117 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/75117 title openSUSE Security Update : strongswan (openSUSE-SU-2013:1333-1) NASL family Fedora Local Security Checks NASL id FEDORA_2013-14510.NASL description rhbz#981429: New upstream release Fixes CVE-2013-5018: rhbz#991216, rhbz#991215 Fixes rhbz#991859 failed to build in rawhide Updated local patches and removed which are not needed Fixed errors around charon-nm Added plugins libstrongswan-pkcs12.so, libstrongswan-rc2.so, libstrongswan-sshkey.so Added utility imv_policy_manager 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 2013-08-21 plugin id 69405 published 2013-08-21 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/69405 title Fedora 18 : strongswan-5.1.0-2.fc18 (2013-14510)
References
- http://lists.opensuse.org/opensuse-updates/2013-08/msg00021.html
- http://lists.opensuse.org/opensuse-updates/2013-08/msg00022.html
- http://lists.opensuse.org/opensuse-updates/2013-08/msg00050.html
- http://secunia.com/advisories/54315
- http://secunia.com/advisories/54524
- http://strongswan.org/blog/2013/08/01/strongswan-5.1.0-released.html
- http://strongswan.org/blog/2013/08/01/strongswan-denial-of-service-vulnerability-%28cve-2013-5018%29.html
- http://www.securityfocus.com/bid/61564
- https://lists.strongswan.org/pipermail/users/2013-July/009540.html