A hacker successfully attacked a webpage within Microsoft’s U.K. domain on Wednesday, resulting in the display of a photograph of a child waving the flag of Saudi Arabia.It was “unfortunate” that the site was vulnerable, said Roger Halbheer, chief security adviser for Microsoft in Europe, the Middle East and Africa, on Friday.The problem has since been fixed. However, the hack highlights how large software companies with technical expertise can still prove vulnerable to hackers.The hacker, who posted his name as “rEmOtEr,” exploited a programming mistake in the site by using a technique known as SQL injection to get unauthorized access to a database, Halbheer said. The site took SQL queries of a particular form, embedded in URLs, and passed them to a database. By embedding a query with an unexpected form in the requested URL, the hacker prompted the server to return error messages, Halbheer said. From those error messages, a hacker can get an idea of how the database is structured and refine a SQL query that the database will process as an instruction to insert, rather than retrieve, data. Eventually, the hacker found the right combination and inserted a link to an external website into the database.That meant when the normal webpage was called into a browser, the database would download data from an external link. In this case, it was two photos and a graphic, a screen shot of which is available on Zone-H.org, which tracks hacked websites. There are two ways to avoid this style of attack. First, the database should not be allowed to return error messages, Halbheer said. Second, the Web application should have validated the URL the hacker entered and rejected ones that should not be processed, he said. If a programmer makes a mistake, “the bad guy can leverage it,” Halbheer said.SQL injection attacks are on the rise overall, since valuable data is held within databases, said Paul Davie, founder and chief operating officer of Secerno, a security vendor that develops technology to protect databases from SQL attacks.“I don’t think Microsoft are unique in this respect and shouldn’t be held up as particularly slipshod,” Davie said. “This could have happened to practically anybody.” —Jeremy Kirk, IDG News Service (London Bureau) Related content news UK government plans 2,500 new tech recruits by 2025 with focus on cybersecurity New apprenticeships and talent programmes will support recruitment for in-demand roles such as cybersecurity technologists and software developers By Michael Hill Sep 29, 2023 4 mins Education Industry Education Industry Education Industry news UK data regulator orders end to spreadsheet FOI requests after serious data breaches The Information Commissioner’s Office says alternative approaches should be used to publish freedom of information data to mitigate risks to personal information By Michael Hill Sep 29, 2023 3 mins Government Cybercrime Data and Information Security feature Cybersecurity startups to watch for in 2023 These startups are jumping in where most established security vendors have yet to go. By CSO Staff Sep 29, 2023 19 mins CSO and CISO Security news analysis Companies are already feeling the pressure from upcoming US SEC cyber rules New Securities and Exchange Commission cyber incident reporting rules don't kick in until December, but experts say they highlight the need for greater collaboration between CISOs and the C-suite By Cynthia Brumfield Sep 28, 2023 6 mins Regulation Data Breach Financial Services Industry Podcasts Videos Resources Events SUBSCRIBE TO OUR NEWSLETTER From our editors straight to your inbox Get started by entering your email address below. Please enter a valid email address Subscribe