A shark mauled a boy swimming in Sydney Harbour on Sunday, leaving him in a critical condition with serious leg injuries.