Raw sockets need root privileges

Why do we need root privileges when using raw sockets?

+4
source share
3 answers

This is because you can spoof user packages that can interfere with inbound traffic. This is also bad.

+7
source

In short, raw sockets are limited by the root, because otherwise it will violate other rules for networks that are in place.

The long rule is that you cannot bind to a port below 1024 without a root blessing. With raw sockets, you can simulate a server on any port. (Naturally, the ability to receive on this port is another story that you would also need to sniff on the network, but perhaps this can be done using another machine.)

+3
source

Opening a raw socket allows you to read everything that is received in this interface, therefore, basically, you can read any package that is directed to any application, even if this application belongs to another user. This basically means that a user with this ability is able to read any messages from all users.

0
source

All Articles