Recently I needed to peruse my site's raw FTP log. Not finding this in the cpanel web interface, I fire up ssh, only to discover that the logs are inaccessible from the jailshell since they're symlinked to outside my home directory.
Not a problem -- a file upload and a browser click later,
gets me what I need.
But it leaves me wondering... what is the point of jailshell (besides annoying users)? It seems to me that if your server is securely configured, an ordinary shell is just as secure as jailshell... and if your server is not, jailing ssh connections does nothing to stop malicious customers from exploiting those vulnerabilities. Is there a security benefit I'm not grokking?
Not a problem -- a file upload and a browser click later,
Code:
<?php
passthru("cat ../apache-logs/redacted");
?>
But it leaves me wondering... what is the point of jailshell (besides annoying users)? It seems to me that if your server is securely configured, an ordinary shell is just as secure as jailshell... and if your server is not, jailing ssh connections does nothing to stop malicious customers from exploiting those vulnerabilities. Is there a security benefit I'm not grokking?