Google has successfully patched a security hole on its main search-engine website, closing the chances of a a cross-site scripting attack. The vulnerability, which was found by security company Finjan in September, could have allowed a remote attack to take over Google accounts. It could also have been used to deceive computer users into going to a bogus site and giving up personal information.

Two Google.com sub-sites contained forms that did not validate and filter input. Because of the lack of data validation and filtering, the vulnerability could have allowed an attacker to inject content and scripts and steal Google.com users' cookies. When users were logged on, an attacker could then gain access to Google services such as account information, saved searches, Google alerts and the user's Google Groups identity, Finjan said.