Re:CVE-2024-54471: Leaking Passwords (and More!) on macOS
by retox on Thursday March 20, 2025 @04:54PM
(#43428839)
>NetAuthAgent has had a bug for years where you cannot connect to an FTP server if your username contains an `@` symbol.
Basic auth and FTP had a username password schema like
ftp://[email protected] and even
ftp://username:[email protected]
Re:CVE-2024-54471: Leaking Passwords (and More!) on macOS
by nmgycombinator on Thursday March 20, 2025 @06:59PM
(#43430032)
> I understand the technical reasons for that, but it is technically supported by the spec and other clients work with it just fine.
I am completely aware of that, but I am aware that other clients handle it just fine. The bug actually forced me to use a different client for when I actually needed an FTP client.
Re:CVE-2024-54471: Leaking Passwords (and More!) on macOS
by hunter2_ on Thursday March 20, 2025 @08:40PM
(#43430701)
I would've guessed that once it's established that the bug is caused by the app injecting the specified username into the USERINFO portion of a URL without the necessary percent-encoding, a workaround (other than using a different client) would be to manually percent-encode the username, i.e., replace the "@" with "%40" ... although this wouldn't work if the app actually did percent-encode an entered "%" despite not encoding an entered "@"!
Re:CVE-2024-54471: Leaking Passwords (and More!) on macOS
by nmgycombinator on Thursday March 20, 2025 @09:11PM
(#43430882)
Fascinating. I'll have to test that out!
It's funny, Apple themselves even suggest people use other apps for FTP: https://support.apple.com/guide/mac-help/servers-shared-comp...
> With read-only access, you can copy files from the server, but to copy files to the server, you may need another FTP app. Choose Apple menu > App Store to find FTP apps available for macOS.
Another funny note: NetAuthAgent has had a bug for years where you cannot connect to an FTP server if your username contains an `@` symbol. I understand the technical reasons for that, but it is technically supported by the spec and other clients work with it just fine. I'd dig up some old posts talking about it going back years, but I don't want to put in the effort, lol.