CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
Vulnerability Feeds & WidgetsNew   www.itsecdb.com  

Vulnerability Details : CVE-2012-5958

Stack-based buffer overflow in the unique_service_name function in ssdp/ssdp_server.c in the SSDP parser in the portable SDK for UPnP Devices (aka libupnp, formerly the Intel SDK for UPnP devices) before 1.6.18 allows remote attackers to execute arbitrary code via a UDP packet with a crafted string that is not properly handled after a certain pointer subtraction.
Publish Date : 2013-01-31 Last Update Date : 2017-11-02
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
10.0
Confidentiality Impact Complete (There is total information disclosure, resulting in all system files being revealed.)
Integrity Impact Complete (There is a total compromise of system integrity. There is a complete loss of system protection, resulting in the entire system being compromised.)
Availability Impact Complete (There is a total shutdown of the affected resource. The attacker can render the resource completely unavailable.)
Access Complexity Low (Specialized access conditions or extenuating circumstances do not exist. Very little knowledge or skill is required to exploit. )
Authentication Not required (Authentication is not required to exploit the vulnerability.)
Gained Access None
Vulnerability Type(s) Execute CodeOverflow
CWE ID 119

- Related OVAL Definitions

Title Definition Id Class Family
DSA-2614-1 libupnp - several oval:org.mitre.oval:def:19870 unix
DSA-2615-1 libupnp4 - several oval:org.mitre.oval:def:18527 unix
OVAL (Open Vulnerability and Assessment Language) definitions define exactly what should be done to verify a vulnerability or a missing patch. Check out the OVAL definitions if you want to learn what you should do to verify a vulnerability.

- Products Affected By CVE-2012-5958

# Product Type Vendor Product Version Update Edition Language
1 Application Libupnp Project Libupnp 1.4.0 Version Details Vulnerabilities
2 Application Libupnp Project Libupnp 1.4.1 Version Details Vulnerabilities
3 Application Libupnp Project Libupnp 1.4.2 Version Details Vulnerabilities
4 Application Libupnp Project Libupnp 1.4.3 Version Details Vulnerabilities
5 Application Libupnp Project Libupnp 1.4.4 Version Details Vulnerabilities
6 Application Libupnp Project Libupnp 1.4.5 Version Details Vulnerabilities
7 Application Libupnp Project Libupnp 1.4.6 Version Details Vulnerabilities
8 Application Libupnp Project Libupnp 1.4.7 Version Details Vulnerabilities
9 Application Libupnp Project Libupnp 1.6.0 Version Details Vulnerabilities
10 Application Libupnp Project Libupnp 1.6.1 Version Details Vulnerabilities
11 Application Libupnp Project Libupnp 1.6.2 Version Details Vulnerabilities
12 Application Libupnp Project Libupnp 1.6.3 Version Details Vulnerabilities
13 Application Libupnp Project Libupnp 1.6.4 Version Details Vulnerabilities
14 Application Libupnp Project Libupnp 1.6.5 Version Details Vulnerabilities
15 Application Libupnp Project Libupnp 1.6.6 Version Details Vulnerabilities
16 Application Libupnp Project Libupnp 1.6.7 Version Details Vulnerabilities
17 Application Libupnp Project Libupnp 1.6.8 Version Details Vulnerabilities
18 Application Libupnp Project Libupnp 1.6.9 Version Details Vulnerabilities
19 Application Libupnp Project Libupnp 1.6.10 Version Details Vulnerabilities
20 Application Libupnp Project Libupnp 1.6.11 Version Details Vulnerabilities
21 Application Libupnp Project Libupnp 1.6.12 Version Details Vulnerabilities
22 Application Libupnp Project Libupnp 1.6.13 Version Details Vulnerabilities
23 Application Libupnp Project Libupnp 1.6.14 Version Details Vulnerabilities
24 Application Libupnp Project Libupnp 1.6.15 Version Details Vulnerabilities
25 Application Libupnp Project Libupnp 1.6.16 Version Details Vulnerabilities
26 Application Libupnp Project Libupnp 1.6.17 Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
Libupnp Project Libupnp 26

- References For CVE-2012-5958

http://tsd.dlink.com.tw/temp/PMD/12966/DSR-150_A1_A2_Release_Notes_FW_v1.08B44_WW.pdf CONFIRM
http://tsd.dlink.com.tw/temp/PMD/13039/DSR-250_250N_A1_A2_Release_Notes_FW_v1.08B44_WW_RU.pdf CONFIRM
https://community.rapid7.com/servlet/servlet.FileDownload?file=00P1400000cCaFb
http://www.securityfocus.com/bid/57602
BID 57602 libupnp Multiple Buffer Overflow Vulnerabilities Release Date:2015-12-07
https://community.rapid7.com/community/infosec/blog/2013/01/29/security-flaws-in-universal-plug-and-play-unplug-dont-play
https://www.tenable.com/security/research/tra-2017-10
https://community.rapid7.com/servlet/JiveServlet/download/2150-1-16596/SecurityFlawsUPnP.pdf
http://lists.opensuse.org/opensuse-updates/2013-02/msg00013.html
SUSE openSUSE-SU-2013:0255
http://pupnp.sourceforge.net/ChangeLog CONFIRM
http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20130129-upnp
CISCO 20130129 Portable SDK for UPnP Devices Contains Buffer Overflow Vulnerabilities
https://wiki.mageia.org/en/Support/Advisories/MGASA-2013-0037 CONFIRM
http://www.debian.org/security/2013/dsa-2615
DEBIAN DSA-2615
http://www.kb.cert.org/vuls/id/922681
CERT-VN VU#922681
http://www.mandriva.com/security/advisories?name=MDVSA-2013:098
MANDRIVA MDVSA-2013:098
http://www.debian.org/security/2013/dsa-2614
DEBIAN DSA-2614
http://tsd.dlink.com.tw/temp/PMD/12879/DSR-500_500N_1000_1000N_A1_Release_Notes_FW_v1.08B77_WW.pdf CONFIRM
http://tsd.dlink.com.tw/temp/PMD/12960/DSR-150N_A2_Release_Notes_FW_v1.05B64_WW.pdf CONFIRM

- Metasploit Modules Related To CVE-2012-5958

Portable UPnP SDK unique_service_name() Remote Code Execution
This module exploits a buffer overflow in the unique_service_name() function of libupnp's SSDP processor. The libupnp library is used across thousands of devices and is referred to as the Intel SDK for UPnP Devices or the Portable SDK for UPnP Devices. Due to size limitations on many devices, this exploit uses a separate TCP listener to stage the real payload.
Module type : exploit Rank : normal Platforms : Unix
UPnP SSDP M-SEARCH Information Discovery
Discover information from UPnP-enabled systems
Module type : auxiliary Rank : normal


CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.