I have a normal Linux user say user1 , and it has sudo access to a command /usr/local/bin/command.sh .
/usr/local/bin/command.sh has 700 permission. So therefore the user1 is successfully able to run
sudo /usr/local/bin/command.sh
Now I was wondering that with sudo command the privilege escalation is happening. is there any possibility or even a remote possibility that he can read the contents of /usr/local/bin/command.sh ? Is sudo by design a very strict command based implementation?