1. Attachments are working again! Check out this thread for more details and to report any other bugs.

Hacking the Infotainment system, WIP thread (it runs Linux)

Discussion in 'Prime Accessories and Modifications' started by zorrobyte, Apr 5, 2019.

  1. YourStandardPriusOwner

    Joined:
    Mar 17, 2021
    1
    3
    0
    Location:
    Earth
    Vehicle:
    2021 Prius Prime
    Model:
    LE
    Dumping some of my notes on this:

    First - the .kwi update files that you can download from Toyota have proven a bit useful towards identifying what these devices run (past just AGL). The format is proprietary, but `binwalk` and `strings` still managed to spit out some interesting findings.

    I think the best non-physical weakness would probably be in the Bluetooth implementation, as Bluetooth itself is a mess. From investigating the strings of some kwi file, I found that they use the BlueSDK Bluetooth Stack. Sadly most Bluetooth vulnerabilities in Linux are for BlueZ, which will be ineffective here.

    However, I did find this vulnerability that enables arbitrary code execution with BlueSDK: CVE-2018-20378 (also known as Hell2CAP). Sadly, the author doesn't give a full proof of concept, so I think the next step is to fully understand the vulnerability, and craft my own.

    Even though BlueSDK has since patched it, I do not trust that Toyota or whomever is responsible for updating head unit firmware would ever get around to integrating the patch.

    If Hell2CAP or another vulnerability can get code execution on the head unit, escalating to root shouldn't be too difficult due to CVE-2021-33909.

    I'd post relevant links here, but of course the forum won't let me. Mods pls.
     
    alinica2001, Nate_F and bisco like this.
  2. bisco

    bisco cookie crumbler

    Joined:
    May 11, 2005
    108,678
    49,378
    0
    Location:
    boston
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Base
    you need more posts
     
  3. Nate_F

    Nate_F Junior Member

    Joined:
    Dec 30, 2016
    25
    7
    0
    Location:
    Idaho
    Vehicle:
    2017 Prius Prime
    Model:
    Prime Premium
    #23 Nate_F, Sep 8, 2021
    Last edited: Sep 8, 2021