Skip to content
Crypto Write-up Advanced

Unlocking a Subaru with a Raspberry Pi, a 433MHz Radio, and an Unpatched Exploit

The rolling code used in some Subaru key fobs is predictable because it is incremental rather than random. An attacker who samples data and knows the algorithm can lock and unlock the car without the key fob, and can also brick the owner's fob with an integer overrun.

blog.hackster.io

Published on blog.hackster.io

It’s easy to get worn down with security news. Today a major protocol level flaw in WPA2 WiFi encryption was announced.

Alasdair Allan, on blog.hackster.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the rolling code is generated by a simple counter rather than a random or cryptographic process, making it predictable once the algorithm is known.

Impact

An attacker could unlock and lock the car without the key fob, and could also brick the owner's key fob, rendering it useless; the exploit is unpatched and Subaru has not commented.

What the attacker needed

Physical proximity to the car; knowledge of the secret algorithm; hardware costing about $40

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A key fob sends a changing code each time you press a button, so an attacker cannot simply record and replay it. Here the code changes in a predictable way (it just goes up by one), so someone who listens to a few presses can work out the next code and open the car. The attacker also can send a code that breaks the owner's fob so it no longer works.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.