Picking apart an IOT Camera (Bloomsky)
The BloomSky weather camera uploads images and sensor data over plain HTTP without authentication, and the only identifier needed to post data is a non-random DeviceID. An attacker with a free account can enumerate all devices and their locations, and can modify any device's image and readings.
andrewmohawk.com
Published on andrewmohawk.com
A few years ago (many now as I see it was from 2014!) I got myself a pretty cool Kickstarter project called a BloomSky. Its a simple (but awesome!) device that you put on your balcony/somewhere with a solar panel (or connected into the all) and it connects to the WiFi.
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
The device upload endpoint lacks authentication and authorisation, relying solely on a non-random DeviceID as the only identifier.
Impact
An attacker could change any device's image and sensor readings, and could potentially cause a denial of service by uploading many images; the report notes the impact is low.
What the attacker needed
A free account (email not validated); knowledge of a DeviceID; network access to the backend
The fix
The developers should add authentication and authorisation to the device upload endpoint and other API endpoints.
How it was found
- Capture the camera's network traffic using port mirroring and Wireshark.
- Export HTTP objects from the capture to extract uploaded images.
- Set up a local proxy by redirecting the camera's backend domain to a controlled server.
- Modify the proxy to replace the uploaded image with a test image.
- Create a free account in the mobile app and use the search API to find device IDs and locations.
- Use the device ID to post arbitrary images and sensor data to the backend.
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.
This weather camera sends its pictures and sensor readings to the company's servers without any password or secret code. The only thing needed to send data for a camera is a long identifier called a DeviceID, which is not random and can be found through the company's mobile app. Because of this, anyone who creates a free account can find every camera's location and can also send fake pictures or readings for any camera.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.