HTC refuses to fix Bluetooth FTP vulnerability

HTC devices running Windows Mobile 6 and Windows Mobile 6.1 are prone to a directory traversal vulnerability in the Bluetooth OBEX FTP Service. Exploiting this issue allows a remote authenticated attacker to list arbitrary directories, and write or read arbitrary files, via a ../ in a pathname. This can be leveraged for code execution by writing to a Startup folder. We wrote about this vulnerability in January this year, but since then HTC has done nothing to fix it.

The vulnerability is in a 3rd party driver developed by HTC and installed on HTC devices running Windows Mobile, so the vulnerability only affects HTC devices specifically. HTC devices running Windows Mobile 5.0 are not affected because the OBEX FTP service is not implemented in that OS version. Other vendors of Windows Mobile devices such as ASUS, Samsung, LG are not affected.

The only requirement is that the attacker must have authentication and authorization privileges over Bluetooth. Pairing up with the remote device should be enough to get it; however, more sophisticated attacks, such as sniffing the Bluetooth pairing, linkkey cracking and BD_ADDR address spoofing, can be used in order to avoid this. Devices must have Bluetooth enabled and File Sharing over Bluetooth service active when the attack is performed. In case the attacker succeeded in getting the proper privileges, further actions will be transparent to the user.

A remote attacker who previously owned authentication and authorization rights over Bluetooth can perform three risky actions on the device:

1) Browse directories located out of the limits of the default shared folder

An attacker can discover the structure of the file system and access to any directory within it, including:
- The flash hard drive
- The external storage card
- The internal mass storage memory, included in specific HTC devices

2) Download files without permission

An attacker can download sensitive files located anywhere in the file system, such as:
- personal pictures and documents located in \My Documents or any other directory
- Contacts, Calendar & Tasks information located in \PIM.vol
- Temporary internet cache and cookies located in \Windows\Profiles\guest\
- emails located in \Windows\Messaging

3) Upload malicious files

An attacker can replace third party or system executable files with malicious files as well as upload trojans to any place in the filesystem, such as \Windows\Startup and, therefore, shall be executed the next time Windows Mobile boots.

You can find a list of tested HTC devices proved to be vulnerable are available here.

The vulnerability was first disclosed on 2009/01/19 as a whole Microsoft Bluetooth Stack issue in Windows Mobile 6 Professional. Subsequent tests proved that several Windows Mobile 6 Standard and Windows Mobile 6.1 Professional devices were also vulnerable. Microsoft was contacted on 2009/01/22 and this information was not made public because last mobile phones manufactured were vulnerable.

Further investigations proved that the issue is in a 3rd party driver installed by HTC, this vulnerability only affects to HTC devices and other vendors Windows Mobile devices are not affected.

HTC Europe has been contacted since 2009/02/09 and provided with all the details concerning on the exploitation of the flaw. However, no patches are known to be released for this security flaw.

This vulnerability is a zero-day threat. This means that all devices shipped up to date (July 2009) may be vulnerable.

Mitigation by users would be not to accept pairing nor connection requests from unknown sources and delete old entries in the paired devices list.

Read more at Packetstormsecurity here.

4

About Surur

Site Admin and Windows Phone enthusiast, he has been using Windows Mobile devices since before they were called PocketPC’s. He is currently sporting a HTC 7 Trophy.

  • simbadogg

    so…in short, if you disable sharing over bluetooth you’re protected? doesn’t seem like rocket science to me.

    • admin

      Thats protection, but not a fix.

  • http://www.avianwaves.com Parrotlover77

    out of curiosity, do unofficial WM 6.5 ROMs for HTC devices suffer this vulnerability? Does anybody know? I would think it is likely since a lot of drivers are taken from earlier official builds.

    I would be interested to find out if this is related to the hacked up nature of HTC’s bluetooth stacks so that it is hardwired to TF3D? I installed an alternate bluetooth stack so I could get A2DP to work directly in PocketPlayer. I wonder if doing so “fixes” this issue?

    • Kapow

      Yes, you are still vulnerable. This is a Microsoft driver that offers the service, now if you replaced it with an alt bt driver stack, it is still OBEX enabled. Which is what the vulnerability is refering to.

Scan QR Codes, UPC, EAN, Code 39/128 or ITF barcodes on your Windows Phone 7 to find best prices online. Enjoy slots? Blackjack? Video Poker? Play Crazy Casino FREE! #1 FREE Solitaire on WP7 If your a fan of Pong then you will love this game. Heavenly Skies. Save the universe! Are you ready? A rewarding mix of match 3 and tetris gameplay Free, Live Tile support for Word Of The Day and so much more. Why NOT try it out? Set up reminders with only two taps. Supports also text reminders and voice reminders. Download the best puzzle game in WP7 Marketplace for FREE! Are you a good Alchemist ? Use your brain to discover Atomic Energy, Chuck Norris, Angry Birds and 1400 more ! Fun puzzle game with over 150 levels! Fully featured, beautifully designed WP7 YouTube app. u.n.i MEGA PACK (FREE), the ultimate addictive top GAMES bundle for Windows Phone 7! 7+ and growing! Highly addictive word game designed for adrenaline junkies. Practice locally, but then are you fast enough to compete online? Google RSS reader Windows Phone WP7 The smartest Google reader app. Air Soccer Tour Air Soccer Fever - Realtime Online Multiplayer casual soccer game for FREE Beat the Story Mode. When your done Bring your skill online. Rank up by winning online matches. Have 1 on 1's with anyone! Global Online Multiplayer! Newest devices leaks, online charts and ultimate performance benchmark for every Windows Phone. Every day, get great app deals from Windows Phone developers pushed to you! Quick Tiles, a fully featured live tile editor for Windows Phone. Great sports app for NFL, NBA, MLB, NHL. Pin scores/games to live tile on your home screen. MobileFax gives you the opportunity to send fax pages from your mobile phone anytime, anywhere ! WP7 Exclusive version of Hanging with Friends Fabulously fun, lovable, crazy! Bubble Pong Championship A remake of the classic snake game. The snake wants to grow so don't wait and help her!

Promote your app on WMPoweruser.com
Wholesale Cell Phones

Nokia LCD, Flex Cable,Wholesale phone partstrusted supplier.

Find the latest mobile phones at the cheapest prices at mobilephones.org.uk

Cell Phone Accessories

canon dslr cameras
See The Smartphone Database for the latest smartphone specs.

Windows Phone 7 Apps