News for hackers. Stuff that matters.
Re:Guile security vulnerability with listening on localhost ... by tedunangst on Friday October 14, 2016 @12:21AM (#12706126)
> the presumption that "localhost" is only accessible by local users

Why is there even a presumption that all local users are equally trusted?

Re:Guile security vulnerability with listening on localhost ... by cyphar on Friday October 14, 2016 @02:17AM (#12706407)
Their suggested methods (Unix sockets and named pipes) both use Unix filesystem ACLs which means they're resilient to this problem.

This is the main reason I've never liked binding to 127.0.0.1 rather than just using a socket -- you lose the access control you could have if you used sockets.

Re:Guile security vulnerability with listening on localhost ... by caf on Friday October 14, 2016 @05:24AM (#12706958)
It was once the case on BSD that filesystem DAC bits weren't applied to AF_UNIX sockets. Can that be universally relied upon now?
Re:Guile security vulnerability with listening on localhost ... by cyphar on Friday October 14, 2016 @11:07AM (#12708541)
I know it works on GNU/Linux, and I'm fairly sure it works on illumos (Solaris). I don't really use any of the BSDs, so I can't comment on that. Sounds like a nasty kernel bug though -- Linux implements AF_UNIX sockets as actual filesystem objects (so you go through VFS implicitly to interact with them).
Re:Guile security vulnerability with listening on localhost ... by caf on Saturday October 15, 2016 @09:04AM (#12713801)
It does work on FreeBSD now at least.

It wasn't a bug, though - just a questionable design (POSIX still doesn't mandate how filesystem permissions interact with connect() on AF_UNIX sockets AFAICS).

Re:Guile security vulnerability with listening on localhost ... by flukus on Friday October 14, 2016 @12:32AM (#12706150)
Someone logged in to the machine likely has enough access to make this attack irrelevant.
Re:Guile security vulnerability with listening on localhost ... by Arnt on Friday October 14, 2016 @03:01AM (#12706517)
Even HN has enough access to your machine. Your browser is showing you this page, the page may contain javascript (probably does, feh), and the javascript can retrieve http://localhost:43278/this/that.
Re:Guile security vulnerability with listening on localhost ... by tmsbrg on Friday October 14, 2016 @09:43AM (#12707986)
That doesn't even require JavaScript, does it? Just `<img src="http://localhost..."/>`.
Re:Guile security vulnerability with listening on localhost ... by Arnt on Saturday October 15, 2016 @05:44AM (#12713407)
I suppose you're right.

Although for the good stuff you want POST. With POST and an error-tolerant SMTP server you can send mail, I imagine other kinds of servers might be equally accommodating.

Re:Guile security vulnerability with listening on localhost ... by cheiVia0 on Friday October 14, 2016 @03:15AM (#12706554)
Not if you have noscript and the ABE protection turned on.
Re:Guile security vulnerability with listening on localhost ... by JoshTriplett on Friday October 14, 2016 @03:09AM (#12706537)
Not necessarily; unless they have root, they likely don't have permission to run as your user account, only their own.