I don't know about illegalness, I pressed "Get your games" button accidentally and it immediately deducted 12,99€ from my Paypal account without confirmation. What the hell.
Definitely illegal in Germany at least as any payment button needs to be clearly labeled as buying/paying for something. Probably illegal in more places as that button description doesn't really indicate that you are agreeing to a purchase.
If they don't have any presence in and don't actively target your region, your local laws and regulations might not be the ones that govern the transaction, though. Not sure if Humble Bundle has crossed that threshold yet for most of their non-US markets.