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

Buffer overflow / remote code execution possible with this software #13

Open
cculianu opened this issue May 22, 2020 · 0 comments
Open

Comments

@cculianu
Copy link

A malicious pool can send a coinbase1 that is > 8192 bytes which will overflow this static buffer:

https://github.com/bitmaintech/bmminer-mix/blob/master/driver-btm-c5.c#L347

When it gets filled here:

memcpy(last_job_buffer,tmp_buf,buf_len);

A malicious pool can inject arbitrary code onto the stack, taking control of the miner and doing whatever they want with it, including causing it to catch fire.

Please plug this hole.

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

1 participant