73 points · by mmastrac · 10y ago · 33 comments
http://stackoverflow.com/questions/15029615/how-to-turn-off-...
return "PROXY 127.0.0.1:80";}I don't think Windows Firewall lets you listen on *:80, but localhost:80 is just fine.
The article did not touch on this subject, but I believe that for this to work, the admin will have to either switch off the firewall or create a rule authorizing the program to use the port (or the port to be used by any program)
No modifications were made from default config.
Crappy admins shouldn't be administering critical systems and crappy developers should be writing neither security-critical code, nor code that runs as root.
> ...stopping non root users from listening on low ports probably causes more security issues than it solves...
Requiring root privs to bind to low ports prevents the following attack:
* Attacker knows of a way to crash $SERVICE
* Attacker has a non-root shell on $MACHINE, which runs an instance of $SERVICE
* Attacker crashes $SERVICE and stands up his own malicious instance
The ability to prevent an attacker from turning a service crash bug + an unprivved shell into a malicious instance of that service is a good property to have. The only way it could get better is if you could dictate that only processes with a given set of UIDs or GIDs could bind to a given interface and port.
I'm not willing to give up that property in order to make an incompetent sysadmin or developer slightly less likely to run an exploit as root.
I saw one such commment earlier today.
Thought experiment:
What about exploits like this one, among so many others over the years, in Microsft Windows?
In many cases it sure looks like the user is "running a server".
There is a port open and listening, waiting for connections. And some remote client can connect and issue commands.
What that is about is that most consumer level internet connections do not have a fix IP address. Thus you can't (easily) aim a DNS reference at it etc.