News for hackers. Stuff that matters.
Re:PuTTY 0.68 has been released by based2 on Tuesday February 21, 2017 @04:28PM (#13700199)
Release Notes:

    Security fix: an integer overflow bug in the agent forwarding code. See vuln-agent-fwd-overflow.
    Security fix: the Windows PuTTY binaries should no longer be vulnerable to hijacking 
      by specially named DLLs in the same directory (on versions of Windows where they previously were). 
      See vuln-indirect-dll-hijack.
    Windows PuTTY no longer sets a restrictive process ACL by default, because this turned out 
      to inconvenience too many legitimate applications such as NVDA and TortoiseGit. 
      You can still manually request a restricted ACL using the command-line option -restrict-acl.
    The Windows PuTTY tools now come in a 64-bit version.
    The Windows PuTTY tools now have Windows's ASLR and DEP security features turned on.
    Support for elliptic-curve cryptography (the NIST curves and 25519), for host keys, 
     user authentication keys, and key exchange.
    Support for importing and exporting OpenSSH's new private key format.
    Host key preference policy change: PuTTY prefers host key formats for which it already knows the key.
    Run-time option (from the system menu / Ctrl-right-click menu) to retrieve other host keys from the same server 
        (which cross-certifies them using the session key established using an already-known key) 
        and add them to the known host-keys database.

    The Unix GUI PuTTY tools can now be built against GTK 3.
    There is now a Unix version of Pageant.
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.
Re:PuTTY 0.68 has been released by Cogito on Tuesday February 21, 2017 @05:33PM (#13700760)
Thank so much for posting this. Perchance, could you remove the quote formatting as it makes it nearly impossible to read on mobile?
Re:PuTTY 0.68 has been released by Cyphase on Tuesday February 21, 2017 @05:44PM (#13700858)
Security fix: an integer overflow bug in the agent forwarding code. See vuln-agent-fwd-overflow.

Security fix: the Windows PuTTY binaries should no longer be vulnerable to hijacking by specially named DLLs in the same directory (on versions of Windows where they previously were). See vuln-indirect-dll-hijack.

Windows PuTTY no longer sets a restrictive process ACL by default, because this turned out to inconvenience too many legitimate applications such as NVDA and TortoiseGit. You can still manually request a restricted ACL using the command-line option -restrict-acl.

The Windows PuTTY tools now come in a 64-bit version.

The Windows PuTTY tools now have Windows's ASLR and DEP security features turned on.

Support for elliptic-curve cryptography (the NIST curves and 25519), for host keys, user authentication keys, and key exchange.

Support for importing and exporting OpenSSH's new private key format.

Host key preference policy change: PuTTY prefers host key formats for which it already knows the key.

Run-time option (from the system menu / Ctrl-right-click menu) to retrieve other host keys from the same server (which cross-certifies them using the session key established using an already-known key) and add them to the known host-keys database.

The Unix GUI PuTTY tools can now be built against GTK 3.

There is now a Unix version of Pageant.

Re:PuTTY 0.68 has been released by Cogito on Tuesday February 21, 2017 @06:11PM (#13701095)
Cheers. A couple of nice features here, might even start using the 64 bit version though I doubt it will have much impact.
Re:PuTTY 0.68 has been released by 0x0 on Tuesday February 21, 2017 @05:43PM (#13700851)
Re:PuTTY 0.68 has been released by Cogito on Tuesday February 21, 2017 @06:09PM (#13701082)
Thanks, this is probably a better landing page for HN than the linked release page!

I had a quick hunt for it but couldn't see it on the release page.

Re:PuTTY 0.68 has been released by MrRadar on Tuesday February 21, 2017 @06:21PM (#13701169)
This release also adds support for the ChaCha20 AEAD cipher and encrypt-then-MAC modes for non-AEAD ciphers. Not sure why those aren't included in the release notes.
Re:PuTTY 0.68 has been released by zer0t3ch on Tuesday February 21, 2017 @07:06PM (#13701536)
> Support for importing and exporting OpenSSH's new private key format

What new private key format is that?

Re:PuTTY 0.68 has been released by jwilk on Tuesday February 21, 2017 @07:19PM (#13701621)
Re:PuTTY 0.68 has been released by james_a_craig on Wednesday February 22, 2017 @02:54AM (#13703949)
Buried in the FAQ and not in the changelog for some reason:-

As of 0.68, PuTTY will no longer fall back to SSH-1 if the server doesn't appear to support SSH-2; you must explicitly ask for SSH-1.

Re:PuTTY 0.68 has been released by JonRB on Tuesday February 21, 2017 @05:30PM (#13700726)
This is the information I came to find. Thanks!
Re:PuTTY 0.68 has been released by xs on Tuesday February 21, 2017 @07:00PM (#13701489)
Why would such a small, simple program need to be 64 bit? Exactly what changes when moving puTTY from 32 bit to 64 bit? It now takes up more memory?
Re:PuTTY 0.68 has been released by gfody on Tuesday February 21, 2017 @08:40PM (#13702139)
We are well beyond moving to 64bit on a needs-only basis. At this point it's about dropping legacy and future proofing. There's also no reason 64bit apps should have a larger memory footprint; the ISA and addressing modes are actually much tidier.
Re:PuTTY 0.68 has been released by executesorder66 on Wednesday February 22, 2017 @12:39AM (#13703301)
Here are the reasons they now provide a 64bit version: http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/w...
Re:PuTTY 0.68 has been released by rb12345 on Tuesday February 21, 2017 @07:53PM (#13701863)
The most likely reason is ASLR support, since you have more address space available for randomisation. Other than that, you can probably get a slight boost in performance from the differences between x64 and x86, but lose out if the code is particularly pointer-heavy.