Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can a hacker do with a non-root user (Linux)? [closed]

Let's say I let my friend "Stuart" have an account on my VPS with very limited privileges because he asked very nicely. Since Stuart isn't so bright, he accidentally posts his password in an IRC chatroom, and now everyone and his/her grandma can ssh into his account. My question is, in the hands of an experienced hacker, what kind of damage can be done to the system?

Could someone just write a simple C program to intentionally manipulate a buffer overflow in strcpy and serve up a root shell for full control of the system, or are there built-in protections against that in the OS?

like image 997
xjtian Avatar asked Oct 17 '25 15:10

xjtian


1 Answers

There are any number of attackers an attacker with local privileges could perform including but not limited to:

  • Fork Bombs
  • Accessing services bound to 127.0.0.1
  • Using your server as a proxy for malicious attacks
  • Serving malicious files from your server
  • Local exploits
  • Information Leakage
  • Mail relaying
  • etc

The attack you describe however is not possible as the file would have to have to be owned by root and have the setuid or setgid bits set.

like image 66
0x90 Avatar answered Oct 20 '25 05:10

0x90