Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

Attack via OTA update server #2

Closed
Moritzw opened this issue Dec 7, 2020 · 2 comments
Closed

Attack via OTA update server #2

Moritzw opened this issue Dec 7, 2020 · 2 comments
Assignees

Comments

@Moritzw
Copy link
Collaborator

Moritzw commented Dec 7, 2020

Setup OTA update webserver (with a security issue)

  • webserver will be abused and a manipulated binary will be uploaded
  • secure boot denies an update of a binary with a wrong signature and sends an error / alarm message to openhab
@Moritzw Moritzw added this to the Implementation der Angriffe milestone Dec 7, 2020
@leonPreus leonPreus self-assigned this Dec 14, 2020
@leonPreus
Copy link
Collaborator

leonPreus commented Jan 8, 2021

  • fixed http 400 error and got OTA Update to work(7934fe8)
  • updated wiki on how to enable OTA on the ESP
  • ESP only updates if newer version is available defined by APP_VERSION_CODE. (b091abe)
  • updated wiki on how to enable soft secure boot(signed app images) on the ESP

at this point, ota update works and "secure boot" is enabled, now we need a nice demonstration. plan is to have the ESP send its error messages to the PI over another mqtt channel. In case an unsigned image gets pushed the openHab UI displays it

@leonPreus leonPreus changed the title Angriff über Webserver Angriff über Update-Server Jan 12, 2021
@leonPreus
Copy link
Collaborator

ESP now sends ota errors back to Pi via an mqtt topic (9166741)
The name of the topic is "ota". add it as another channel to the mqtt broker in the openhab interface and the openhab log viewer should should read something like 2021-01-15 13:53:14.856 [INFO ] [openhab.event.ChannelTriggeredEvent ] - mqtt:broker:11406479cf:otaErrors triggered 9 when OTA update fails because of secure boot

@HendrikVE HendrikVE changed the title Angriff über Update-Server Attack via OTA update server Jan 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants