Hackers Can Reveal, Change Passwords in OS X Lion

Recommended Videos

Security researcher Patrick Dunstan has released his findings on Apple’s latest operating system OS 10.7, aka Lion, and it doesn’t look good. He found that if provided with physical access, a nefarious person could recover administrator passwords, or even change those passwords, without any special privileges.

Here’s how password security is supposed to work on a Mac: Passwords are stored in “shadow files” which are buried deep in the system’s file structure, and only accessible by someone logged in with an administrator password. Dunstan’s research has shown, however, that in the new version of the operating system, these files can be accessed by any user and passwords extracted. More troubling is his discovery that, with a little prodding, someone with access to the computer’s Terminal command line app can change the administrator’s password themselves.

According to CNET, this last and most troubling security oversight can be executed thusly:

In addition to being able to extract the password hashes for a user, any user can also directly change another user’s password, including those of system admins, merely by supplying the following command in the Terminal (substituting USERNAME for the short name of the target account):

dscl localhost -passwd /Search/Users/USERNAME

When run, this command will appear to give an error, but if you enter the same new password at all prompts then the target account’s password will be changed.

If an intruder was able to forcibly change the administrator password in this manner, he or she would then be able to log in with full admin privileges and be able to do just about anything to the computer.

There’s some obvious limitations to this security issue. First and foremost, any would-be hacker would need physical access to your computer. Keeping it in sight, turning off automatic login, and setting a password to wake from screen saver/sleep is a good precautionary step. However, simply having a guest account available on the computer could, in this case, allow an intruder access.

Hopefully, this issue will be addressed in future security updates from Apple. Until then, keep your friends close and your MacBook Pros closer.

(Defence in Depth via CNet, original image via Elke Sisco)


The Mary Sue is supported by our audience. When you purchase through links on our site, we may earn a small affiliate commission. Learn more
related content
Read Article ‘Mamma Mia!’ Star Sara Poyzer Says a BBC Production Replaced Her With AI
Sara Poyzer performs at the Magic at the Musicals event in 2019
Read Article In Moment of Unbelievable Irony, Midjourney Accuses Stability AI of Image Theft
Spider-Man pointing at another Spider-Man, who is pointing back.
Read Article Elon Musk May Be the Lesser of Two Evils in This Legal Battle With OpenAI
Elon Musk at the 2022 Met Gala
Read Article A.I. Scammers Are Impersonating Real Authors to Sell Fake Books
A robotic hand holds a pencil.
Read Article Sexist Trolls Drive Away Twitch’s Top Female Streamer After 10 Years
Imane "Pokimane" Anys at the 2023 Green Carpet Fashion Awards
Related Content
Read Article ‘Mamma Mia!’ Star Sara Poyzer Says a BBC Production Replaced Her With AI
Sara Poyzer performs at the Magic at the Musicals event in 2019
Read Article In Moment of Unbelievable Irony, Midjourney Accuses Stability AI of Image Theft
Spider-Man pointing at another Spider-Man, who is pointing back.
Read Article Elon Musk May Be the Lesser of Two Evils in This Legal Battle With OpenAI
Elon Musk at the 2022 Met Gala
Read Article A.I. Scammers Are Impersonating Real Authors to Sell Fake Books
A robotic hand holds a pencil.
Read Article Sexist Trolls Drive Away Twitch’s Top Female Streamer After 10 Years
Imane "Pokimane" Anys at the 2023 Green Carpet Fashion Awards
Author