Skip to content

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

@cculianu

Description

@cculianu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions