A Singapore-based hacker was sentenced to two months in jail after he hacked into the Singapore prime minister's website and injected unauthorized code.

The Straits Times reports that Mohammad Azhar Tahir defaced the site in 2013 with messages and images from the hacktivist group Anonymous, including a Guy Fawkes mask. Tahir ultimately received a sentence of six months after tacking on separate sentences he'd received previously. These other incidents involved stealing a neighbor's wireless service and posting on a TV star's social media channels.

Tahir used a cross-site scripting (XSS) attack to alter the prime minister's website. He inputted HTML code into a Google search bar embedded on the site.

Similarly, a Singapore-based doctoral student identified a XSS vulnerability in The Weather Channel's website earlier this month that could have left up to 75 percent of its pages vulnerable.