AI coding platform's flaws allow BBC reporter to be hacked