There is no explicit law which considers CAPTCHA typing to be illegal. However, by working with CAPTCHA typing websites, you are helping the hackers and spammers to continue their unethical, and in some cases illegal activities. So, although not illegal, CAPTCHA typing are the most unethical way to make money online.