It's not simply vulnerable code: it's an actual backdoor. That is malware distribution (without permission) and is therefore illegal.
Some people would say that most drm software would act like malware/ransomware.
And tricking people to install such software is only matter of an ambiguously worded checkbox.