Apple Inc's next software update for its iPhones and iPads will fix a security flaw that allows hackers to engage in spying and cyber crimes when the victim connects the device to a fake charging station, the company said on Wednesday.
Apple's devices are vulnerable to attacks until the company releases its iOS 7 software update, which is slated for this fall.
Three computer scientists, who alerted Apple to the problem earlier this year, demonstrated the security vulnerability at the Black Hat hacking convention in Las Vegas on Wednesday where some 7,000 security professionals are learning about the latest threats posed by computer hacking.
Apple said the issue had been fixed in the latest beta of iOS 7, which has already been released to software developers.
"We would like to thank the researchers for their valuable input," Apple spokesman Tom Neumayr said.
The work was done by Billy Lau, a research scientist at the Georgia Institute of Technology, and graduate students Yeongjin Jang and Chengyu Song.
In a demonstration at the hacking conference, they plugged an iPhone into a custom-built charger they equipped with a tiny Linux computer that was programmed to attack iOS devices. They said it cost about $45 to buy and a week to design.
It infected the phone with a computer virus designed to dial the phone of one of the researchers, which it did.
They said that real-world cyber criminals might build viruses that would give them remote control of the devices. That would enable them to take screen shots for stealing banking passwords and credit card numbers. They could also access emails, texts and contact information or track the location of the phone's owner, Lau said.
"It can become a spying tool," said Lau.
Lau said they were publicizing the issue in the spirit of "white hat" hacking, which is finding security bugs so that manufacturers can fix them before criminals exploit them.
"Security doesn't work if you bury problems," he told Reuters on the sidelines of the press conference.
Lau said that devices running Google Inc's Android operating system are not vulnerable to the same types of attack because they warn users if they plug devices into a computer, even one posing as a charging station.
After Apple's iOS 7 software update, a message will pop up to alert the user that they are connecting to a computer, not an ordinary charger, he said.