I don't think what the author did was illegal. This is more of an ethical consideration where consent should have been requested from contract owner before doing a known risky operation.
The Copenhagen Interpretation of Ethics strikes again. OP tried to help and didn't actually make things worse, but they touched the situation so now it's their fault.