Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gigaset elements devices research #1

Open
jurkov opened this issue Mar 28, 2024 · 16 comments
Open

Gigaset elements devices research #1

jurkov opened this issue Mar 28, 2024 · 16 comments

Comments

@jurkov
Copy link

jurkov commented Mar 28, 2024

Hello!

Could someone create a network traffic recording of the device pairing? It could be done using this https://httptoolkit.com/docs/guides/android/ instruction. It would help to understand how the app, the web, and the base station work together.

A network traffic recording while paring different devices to the base station would also be interesting.

@obruns
Copy link
Owner

obruns commented Mar 28, 2024

@jurkov, I don't think the client-facing traffic needs to be recorded anymore. We got plenty of implementations that use the JSON-based REST API already. It is also observable when using the Gigaset Elements Web App and running your browsers' Developer Tools (press F12).

My attempts using mitmproxy between the basestation and the "Gigaset Elements Cloud" have been unsuccessful so far. It suffers from the same problems that are described here. See the updated README.md in this repo.

@jurkov
Copy link
Author

jurkov commented Mar 28, 2024

Could be helpful:
/api/v1/me/elements/bs01/claim -> maybe POST with actiavtionCode -> claming a station
/api/v1/me/basestations/{bsId}/fw_upgrade -> maybe GET -> triggering a update?

@jurkov
Copy link
Author

jurkov commented Mar 28, 2024

@obruns
Copy link
Owner

obruns commented Mar 28, 2024

Did you see https://www.av-test.org/fileadmin/pdf/publications/avtest_2014-04_smart_home_deutsch.pdf#25 ?

Thanks for the pointer. Hadn't seen that one before. At a quick glance it appears like they have updated the product based on the reported findings (TLSv1.0 is now TLSv1.2, fwiw). I'll have a deeper look at pages 25pp nevertheless.

I'm not that hopeful to be able to peek at the traffic between the basestation and the cloud service. But I got a bunch of Wireshark captures starting with the boot of the basestation and including most of the sensors firing events.

@jurkov
Copy link
Author

jurkov commented Mar 29, 2024

Well, the game is not over until we have a look at this MX25??? SPI flash: https://osmocom.org/projects/misc-dect-hacks/wiki/Gigaset_Elements_Base
Maybe it's possible to read with an Arduino or esp32: https://github.com/adafruit/Adafruit_SPIFlash

@jurkov
Copy link
Author

jurkov commented Apr 4, 2024

I just found another blog post about api-bs... from 2014: https://lofidewanto.blogspot.com/2014/04/smart-home-sweet-home-with-gigaset.html but there is nothing new.

@l05r
Copy link

l05r commented Apr 7, 2024

The manual of the Y-Cam cameras mention the manual flashing of the firmware. I was unable to find such a firmware. Using the cameras locally could be as simple as flashing the original firmware. The original firmware seems to contain a local interface.

@jurkov jurkov changed the title Network traffic record of device pairing basestation and web Gigaset elements devices research Apr 8, 2024
@GitMuki
Copy link

GitMuki commented Apr 10, 2024

Hi, I am also interested in not having to throw my gigaset stuff in the garbage bin. What I have noticed is that power plugs still turn on/off according to the timer rules I had created for them. I haven't experimented with for example seeing if it depends on the base-station being on, or sniffing the network around the time they turn on/off. But I may if it might help someone that can do something useful with the information?

@l05r
Copy link

l05r commented Apr 10, 2024

I found this:

https://forum.smart-home-systeme.com/thread/528-gigaset-elements-abgeschaltet-was-geht-jetzt-noch/

It explains what still works and what does not. Everything relying on you an your app does not work because the servers are shut down. Things already set up (rules like timers for the plug or a motion sensor triggering a plug) do still work.

I have not tested turning the alarm on/off using the button. I already had rules set up for the button to arm/disarm the system before the servers got shut down.

@l05r
Copy link

l05r commented Apr 10, 2024

Our Model of camera seems to be the YCK004. Which is S range (not SD as it does not have a micro SD card slot)

@Tony23457
Copy link

Tony23457 commented Apr 25, 2024

Hi, I open a cam S30851-H2556-R101 which got a SD card on it. There is some pictures/video of the some Chinese guys form the factory, however, there is a file log call firmware_upgrade.log with the UTC and log of two functions:
check_sd_card()
check_new_version()
Try to reset the cam will power it on with the mfw file form YCAM didn't work. Can't follow the reset procedure form YCAM as that one doesn't have a RJ45 port but only a microUSB one.
Does some one know a tool to see if the microUSB port could to more then just power the CAM ?

Got a 2nd CAM S30851-H2557-R101 with nmap I saw some open UDP ports, try to get a rtsp flow out it but didn't work. The old CVE https://team-sik.org/sik-2016-045/ on the udp port didn't work either.

PORT STATE SERVICE VERSION
177/udp open|filtered xdmcp
998/udp open|filtered puparp
1524/udp open|filtered ingreslock
5001/udp open|filtered commplex-link
18987/udp open|filtered unknown
20031/udp open|filtered bakbonenetvault
20817/udp open|filtered unknown
30656/udp open|filtered unknown
32776/udp open|filtered sometimes-rpc16
41524/udp open|filtered unknown
44101/udp open|filtered unknown
49166/udp open|filtered unknown
49175/udp open|filtered unknown
58178/udp open|filtered unknown
58631/udp open|filtered unknown

I send a few random UDP packet but I didn't get a reply, does some one a tool to go deeper on those UDP port or another angle to check that cam ?

@jurkov
Copy link
Author

jurkov commented Apr 26, 2024

Are you sure that the camera is based on a Ycam model? Do you have any pictures of the internals?

@Tony23457
Copy link

Tony23457 commented Apr 26, 2024

No just followed the lead here for me it's look like a custom made for gigaset. Here are the pictures :
Mainboard
Mainboard1
Mainboard2
What do you think about the angle I should look a those two cams, I'm trying to see it in more local perspective without MIM the cloud setup connectivity?
One got rj45 port and wifi module, couldn't open it with out breaking it, I only got those udp port open after it got a IP., The second got wifi module, sd card and microUSB port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@obruns @jurkov @GitMuki @l05r @Tony23457 and others