Login Register

Vida CEM swapping

A mid-size luxury crossover SUV, the Volvo XC90 made its debut in 2002 at the Detroit Motor Show. Recognized for its safety, practicality, and comfort, the XC90 is a popular vehicle around the world. The XC90 proved to be very popular, and very good for Volvo's sales numbers, since its introduction in model year 2003 (North America). P2 platform.
Post Reply
User avatar
charlie13
Posts: 46
Joined: 23 March 2022
Year and Model: 2009 XC70
Location: Krakow
Has thanked: 8 times
Been thanked: 18 times

Re: Vida CEM swapping

Post by charlie13 »

vtl wrote: 22 Apr 2022, 13:08
charlie13 wrote: 22 Apr 2022, 13:06 No
Oh, pardon, change p1 to count from 20.
now great. thank you

User avatar
charlie13
Posts: 46
Joined: 23 March 2022
Year and Model: 2009 XC70
Location: Krakow
Has thanked: 8 times
Been thanked: 18 times

Post by charlie13 »

What can be changed? It stops in the same place.
SEED 93 7d cb, PIN 00 21 86 25 71, KEY 4e aa cc, 445 pins/s
reply: 02 67 02 00 00 00 00 00
hash collision found
SEED 6c 8c c5, PIN 00 21 86 28 06, KEY ff ba cd, 235 pins/s
Resetting all ECUs.
CAN_HS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
CAN_LS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00

vtl
Posts: 4727
Joined: 16 August 2012
Year and Model: 2005 XC70
Location: Boston
Has thanked: 114 times
Been thanked: 606 times

Post by vtl »

charlie13 wrote: 23 Apr 2022, 05:19 What can be changed? It stops in the same place.
SEED 93 7d cb, PIN 00 21 86 25 71, KEY 4e aa cc, 445 pins/s
reply: 02 67 02 00 00 00 00 00
hash collision found
SEED 6c 8c c5, PIN 00 21 86 28 06, KEY ff ba cd, 235 pins/s
Resetting all ECUs.
CAN_HS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
CAN_LS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
It is done. PIN is 00 21 86 28 06.

Power6
Posts: 14
Joined: 7 March 2022
Year and Model: 2019 S60
Location: MA
Has thanked: 1 time
Been thanked: 12 times

Post by Power6 »

Hey VTL, on P3 with seed/key, this is similar to SPA, how many PINs are you checking in the possible set? The SPA isn't limited to only BCD values within 5 bytes, but I've worked it down to only 3 bytes of unique PINs that are a single match for any possible seed/key. I implemented in the brute force cracker I built to pull encrypted seed/key sample from VIDA logs, will crack a PIN in less than a minute on a small Azure instance, PINMagic https://spaycetech.azurewebsites.net/LogMagic.html

I did much testing against this algorithm, to figure out the limitations. I still have 3 bytes of possibilities in the PIN, which is a problem for brute forcing against the CEM directly on the SPA, ECUs all have anti-hammering (timeout after 3 seed/key tries) so still far too long to check the ~17 million possibilities. But that beats the trillion or so possibilities of the full 40 byte PIN so it's progress.

It seems online VIDA logs using DiCE contain the same captured seed/key info (need to run "Test Configuration" software), so I am going to update PINMagic to work on a DiCE log format when I have a little time. Needing to capture a good seed/key sucks, but it's awfully convenient if you are in the US and have VIDA available, have a DiCE/VOC and a laptop.

User avatar
charlie13
Posts: 46
Joined: 23 March 2022
Year and Model: 2009 XC70
Location: Krakow
Has thanked: 8 times
Been thanked: 18 times

Post by charlie13 »

vtl wrote: 23 Apr 2022, 07:41
charlie13 wrote: 23 Apr 2022, 05:19 What can be changed? It stops in the same place.
SEED 93 7d cb, PIN 00 21 86 25 71, KEY 4e aa cc, 445 pins/s
reply: 02 67 02 00 00 00 00 00
hash collision found
SEED 6c 8c c5, PIN 00 21 86 28 06, KEY ff ba cd, 235 pins/s
Resetting all ECUs.
CAN_HS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
CAN_LS ---> ID=000ffffe data=ff c8 00 00 00 00 00 00
It is done. PIN is 00 21 86 28 06.
I didn't know how it works in P3, the first time I did it using a cracker. the pin works, but there are a few others that do. 1844518461 also works weird. Another time thank you very much for your help.

vtl
Posts: 4727
Joined: 16 August 2012
Year and Model: 2005 XC70
Location: Boston
Has thanked: 114 times
Been thanked: 606 times

Post by vtl »

charlie13 wrote: 23 Apr 2022, 10:09 I didn't know how it works in P3, the first time I did it using a cracker. the pin works, but there are a few others that do. 1844518461 also works weird. Another time thank you very much for your help.
This is how a hash function works (in principle, not only in P3): it takes a long argument(s) and reduces it to a short result. Because a part of argument has to be lost, the hash produces the same result for multiple input arguments.

https://en.wikipedia.org/wiki/Hash_function

In the P3 case, there are about 600-700 PINs that produces the same hash result for the same SEED/KEY pair.

vtl
Posts: 4727
Joined: 16 August 2012
Year and Model: 2005 XC70
Location: Boston
Has thanked: 114 times
Been thanked: 606 times

Post by vtl »

Power6 wrote: 23 Apr 2022, 08:29 Hey VTL, on P3 with seed/key, this is similar to SPA
Similar or the same? Working with a full range is not a problem, however does SPA use the exact same hash function?

User avatar
RickHaleParker
Posts: 7129
Joined: 25 May 2015
Year and Model: See Signature below.
Location: Kansas
Has thanked: 8 times
Been thanked: 958 times

Post by RickHaleParker »

vtl wrote: 23 Apr 2022, 10:23 Similar or the same? Working with a full range is not a problem, however does SPA use the exact same hash function?
It is the same algorithm. Initialized with the same constant.

Are you 100% sure the PIN on the P3 needs to be BCD? I noticed your seed and keys are Hex.
⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙⸙
1998 C70, B5234T3, 16T, AW50-42, Bosch Motronic 4.4, Special Edition package.
2003 S40, B4204T3, 14T twin scroll AW55-50/51SN, Siemens EMS 2000.
2004 S60R, B8444S TF80 AWD. Yamaha V8 conversion
2005 XC90 T6 Executive, B6294T, 4T65 AWD, Bosch Motronic 7.0.

vtl
Posts: 4727
Joined: 16 August 2012
Year and Model: 2005 XC70
Location: Boston
Has thanked: 114 times
Been thanked: 606 times

Post by vtl »

RickHaleParker wrote: 23 Apr 2022, 10:54 Are you 100% sure the PIN on the P3 needs to be BCD? I noticed your seed and keys are Hex.
For the hash function it does not matter, it works with the data in a binary form.

vtl
Posts: 4727
Joined: 16 August 2012
Year and Model: 2005 XC70
Location: Boston
Has thanked: 114 times
Been thanked: 606 times

Post by vtl »

vtl wrote: 23 Apr 2022, 11:02
RickHaleParker wrote: 23 Apr 2022, 10:54 Are you 100% sure the PIN on the P3 needs to be BCD? I noticed your seed and keys are Hex.
For the hash function it does not matter, it works with the data in a binary form.
Any real world examples of SPA pin + seed + key?

Post Reply
  • Similar Topics
    Replies
    Views
    Last post