Ethereum allows for smart contracts which are programs stored on the blockchain that execute automatically based on predefined rules. Smart contracts are vulnerable to hacking through bugs and exploits like integer overflows. Major hacks have occurred on smart contracts, like The DAO hack which stole $50 million worth of ether. Writing secure smart contracts is challenging as seen through continued hacks, showing the technology is still immature.