News for hackers. Stuff that matters.
Re:PuTTY 0.68 has been released by caf on Tuesday February 21, 2017 @07:07PM (#13701546)
Isn't this "DLL hijacking" thing a bit overblown? The directory an application runs from on Windows has always been considered part of the security perimeter of the application.

If you can drop a malicious DLL where putty.exe lives, can't you just drop a malicious putty.exe?

Re:PuTTY 0.68 has been released by JohnTHaller on Tuesday February 21, 2017 @07:50PM (#13701835)
It's bad if you use an insecure browser like Chrome. Chrome allows any website you visit to download DLLs directly to your Downloads directory without user interaction. Then, any installer you download and run will use the infected DLLs unless specifically keyed to look in system32 for them.

Additionally, something can infect your PC and alter your PATH. Then PuTTY might pick up a fake Windows DLL from elsewhere on your machine. But if your machine is infected and something is messing with the Windows path, you have bigger problems.

Re:PuTTY 0.68 has been released by lupin_sansei on Tuesday February 21, 2017 @08:12PM (#13701981)
Thankfully Chrome has fixed this issue. I just tried this and Chrome actually warns you about downloading DLLs and requires further user interaction to actually download DLL to the downloads folder:

Screenshot: https://i.imgur.com/MvRwZBi.png

Re:PuTTY 0.68 has been released by JohnTHaller on Tuesday February 21, 2017 @08:53PM (#13702204)
All DLLs or just specific ones? I'd heard a while ago they were going to blacklist specific ones instead of just making it so a user has to purposely decide to download a file.

I'm surprised they finally did something since we've been warning people not to use Chrome because of this issue for years.

Re:PuTTY 0.68 has been released by Sunset on Wednesday February 22, 2017 @01:52AM (#13703655)
>blacklist specific ones

Enumerating badness has always been a very bad idea.

Re:PuTTY 0.68 has been released by Crespyl on Wednesday February 22, 2017 @09:28AM (#13705691)
I'll add that to my list of bad ideas.
Re:PuTTY 0.68 has been released by __jal on Tuesday February 21, 2017 @07:12PM (#13701582)
Not a windows person, so I can't speak to how the directory is treated, but I've watched enough people run applications from the Downloads directory to wonder about it.
Re:PuTTY 0.68 has been released by chris0x00 on Tuesday February 21, 2017 @10:32PM (#13702775)
That's an interesting point, otherwise I'd say it's basically the Windows equivalent of LD_PRELOAD. Running executables from the "downloads" directory is certainly a thing though, never realized the security implication there (beyond trusting the download natch)
Re:PuTTY 0.68 has been released by beachstartup on Tuesday February 21, 2017 @07:14PM (#13701592)
with putty i would be surprised if most didn't run it straight from the desktop. i would be a dirty liar if i said i haven't, countless times.
Re:PuTTY 0.68 has been released by monk_e_boy on Tuesday February 21, 2017 @07:49PM (#13701826)
This. Without an installer that puts a link into the start menu, everyone I've ever worked with just dumps it on the desktop. I used to throw a symlink into the start menu, but when other devs used my machine they expected it to be on the desktop. Just one of those quirks of using PUTTY
Re:PuTTY 0.68 has been released by marvy on Tuesday February 21, 2017 @10:38PM (#13702802)
But why not just use the installer?
Re:PuTTY 0.68 has been released by hermitdev on Tuesday February 21, 2017 @11:47PM (#13703082)
For a long time, there wasn't an installer for putty, so a lot of us became accustomed to just dropping the binary on our desktop or "bin" folder", but there is an installer now. Also, certain corporate environments that preclude the installer from working correctly, but won't mind you "installing" a program to your desktop/local app data.
Re:PuTTY 0.68 has been released by marvy on Wednesday February 22, 2017 @02:09AM (#13703750)
I find the corporate environment thing suspicious. I could imagine that if you don't have admin access, you can't install to Program Files, but couldn't you still install to your home directory, and still get those lovely start menu shortcuts?
Re:PuTTY 0.68 has been released by Jaruzel on Wednesday February 22, 2017 @02:39AM (#13703878)
Not really.

Windows, by default requests elevated rights from the user (the UAC dialog) if you run any exe that has 'setup' or 'install' in the name, or if the manifest inside/alongside the exe defines a requirement for elevated rights.

You can spot these files as they have a little Windows 'shield' overlay on their icons (Windows overlays that itself if it detects a file needing elevated rights).

So, unless you can elevate your rights (i.e. be admin, or type in admin credentials), you can't run most installers.

However, prior to Windows 7 your personal start menu folder wasn't locked down - and as a non-admin you could easily add/remove shortcuts from it. Since Windows 7 onwards it's now protected, so you need to elevate to be able to write to it.

Windows allows you to run (by default) software from ANY folder you like, but you can only (by default, again) write to some of your user folders and the the %TEMP% location.

So downloading the PuTTY exe and running it from the downloads folder or desktop is perfectly legitimate, although not good practice.

As an aside: I'm not sure if Chrome still does it, but I recall that if you try to install it and you don't have admin rights, it just puts an icon on your desktop, and installs all the chrome files into a folder under ProgramData which resides in your user hierarchy, instead of the locked down Program Files area. Which is one way of getting around the lack of admin-rights.

Re:PuTTY 0.68 has been released by marvy on Wednesday February 22, 2017 @05:31PM (#13709858)
Huh. I think that's a poor design choice on the part of the Windows folks, but they probably know things I don't.
Re:PuTTY 0.68 has been released by Jaruzel on Thursday February 23, 2017 @07:24AM (#13713333)
You know in order to secure an old house, you just nail boards over all the openings? Well, yeah, that's the Windows security model that is. :)
Re:PuTTY 0.68 has been released by marvy on Thursday February 23, 2017 @05:20PM (#13718374)
ouch
Re:PuTTY 0.68 has been released by gasda on Tuesday February 21, 2017 @11:04PM (#13702924)
I was going to say putty does not have an installer, but TIL putty now has an installer..
Re:PuTTY 0.68 has been released by YSFEJ4SWJUVU6 on Tuesday February 21, 2017 @07:54PM (#13701871)
Can't say anything definitive about “overblown”, but I like the change.

Windows security model is inadequate, but it's good to work around it anyway.

Re:PuTTY 0.68 has been released by Keluri on Tuesday February 21, 2017 @09:32PM (#13702417)
How is Window's security model inadequate?
Re:PuTTY 0.68 has been released by wruza on Wednesday February 22, 2017 @04:47AM (#13704374)
You can download/put different modules into the same folder and they will interact without any checks because of name clashes. Programs should be complete packages that depend only on known, protected system32-like locations.