OPM - can I open a shell under root using a VI session that was invoked by pimsu?

OPM - can I open a shell under root using a VI session that was invoked by pimsu?

83
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 12:56 PM


Question


There is a feature in "VI" on Linux, with which you can run commands under the name of the process owner. So if you run pimsu vi and then type :!/bin/bash it will open a shell under the root user and then you can act in the name of root. How can this be prevented?

Environment


11.5;11.7;12.0;12.1;12.2;12.6;13.0;13.2 Privileged Access Manager (PAM, self-hosted) OPM For Unix

Answer


To prevent this you can configure the PreventShellEscape. You can give permission to run vi to anyone that needs it (Allow rule), and add this restriction to the ACL.

Additional Information


Details

Q:
There is a feature in "VI" on Linux, with which you can run commands under the name of the process owner. So if you run pimsu vi and then type :!/bin/bash it will open a shell under the root user and then you can act in the name of root. How can this be prevented?

A:

To prevent this you can configure the PreventShellEscape. You can give permission to run vi to anyone that needs it (Allow rule), and add this restriction to the ACL.




Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001RNyCAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail