The online hack that led to the posting of hundreds of explicit photos of some of Hollywood's most famous female stars could have been down to an attack on their passwords.
Stars including actress Jennifer Lawrence and model Kate Upton saw intimate photos posted on forum site 4chan on Sunday evening, with some reports initially concluding that Apple's iCloud service had been compromised to access the images.
A piece of computer code that repeatedly guesses passwords has been found online. The script was posted to software site GitHub, but a message has since appeared saying that Apple has issued a "patch" or fix for the bug.
"The end of the fun, Apple has just patched," read an update on the post. The technology giant is yet to make any comment on the incident.
According to the post, the script uses the top 500 most common passwords approved by Apple in order to try and gain access to user accounts. If successful, it would give the hacker full access to the iCloud account, and therefore photos.
Owen Williams from technology site The Next Web, who discovered the bug, said: "The Python script found on GitHub appears to have allowed a malicious user to repeatedly guess passwords on Apple's 'Find my iPhone' service without alerting the user or locking out the attacker.
"Given enough patience and the apparent hole being open long enough, the attacker could use password dictionaries to guess common passwords rapidly. Many users use simple passwords that are the same across services so it's entirely possible to guess passwords using a tool like this.
"If the attacker was successful and gets a match by guessing passwords against Find my iPhone, they would be able to, in theory, use this to log into iCloud and sync the iCloud Photo Stream with another Mac or iPhone in a few minutes, again, without the attacked user's knowledge. We can't be sure that this is related to the leaked photos, but the timing suggests a possible correlation."
Experts have pointed to the weakness of many internet users' passwords, and basic security knowledge as being the cause for the widespread leak.
iCloud is Apple's own cloud service, a wireless storage facility that can be used to access files remotely. Other notable services include Dropbox and Google Drive, which enable users to keep more of their files close to hand without taking up huge amounts of memory on their devices.
Rob Cotton, CEO at web security experts NCC Group said: "Cyber security is not just a technology problem, humans are very much key to its success. In our day-to-day work we see too many cases of employees divulging sensitive information without first verifying the legitimacy of the request.
"People often point the finger at technology when they've been the victim of a cyber attack, but poor password choices or naivety in the face of a seemingly innocent email is regularly to blame."
Human error, in a variety of ways, said Cotton, often played a part.
Other stars said to have been affected by the nude picture leak include Avril Lavigne, Cara Delevingne and Rihanna, with actress Mary Elizabeth Winstead, whose movies include A Good Day to Die Hard, already acknowledging pictures in which she is featured are genuine.
She wrote online: "To those of you looking at photos I took with my husband years ago in the privacy of our home, hope you feel great about yourselves."
However representatives for the former Coronation Street star Michelle Keegan, who was reportedly on a list of stars whose pictures had been obtained, say she does not appear to have affected.
A spokeswoman for the actress said: "There's no evidence that her phone or computer has been hacked, and nothing has appeared online to suggest otherwise either."