I hacked my washing machine
The washing machine's local API returned encrypted data that could be decrypted with a brute-forced XOR key, allowing an attacker on the same network to read the machine's state. The author used this to build a notification bot, not to cause harm.
nexy.blog
Published on nexy.blog
If you've known me for some amount of time you knew this was something that was bound to happen eventually. Yesterday (and technically today), me and a friend went on an endeavor to hack our washing machine, partially for the fun of it, and partially because there's actually a practical use for it.
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 device used a weak, home-grown XOR cipher with a short key to protect local API responses, and the key could be brute-forced.
Impact
An attacker on the same network could read the washing machine's state, but the device was isolated on a guest network, limiting the blast radius.
What the attacker needed
Access to the same network as the washing machine; knowledge of the API endpoint; ability to brute-force the XOR key
How it was found
- Set up a router to capture traffic from the washing machine.
- Notice the app and machine communicate over HTTP on port 80.
- Find the /http-read.json?encrypted=1 endpoint returning hex-encoded data.
- Brute-force the XOR key using known plaintext strings.
- Decrypt the response to read the machine's state.
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 washing machine with Wi-Fi has a small web server that the phone app talks to. The data it sends back is scrambled with a simple repeating key, and because the key was short, it could be guessed by trying many possibilities. Once unscrambled, anyone on the same network could see what the machine was doing.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.