The country where I live, the process would be pretty much illegal. Most of the PHD holders are taking help from others this way. I think this is definitely legal in other places because they don't care how you source material as long as you do the work. But I think ethical grounds that sounds not acceptable in many places. So that needs to be watched out.