Re: Where should I put my own perl command scripts ?
- From: JoB <nomail@xxxxxxxx>
- Date: Tue, 20 Nov 2007 20:51:50 -0500
Dan Espen wrote:
Central Scrutinizer <nomail@xxxxxxxxxxxx> writes:
Bit Twister wrote:
On Tue, 20 Nov 2007 03:47:06 GMT, Robert M. Riches Jr. wrote:
Nonsense. $HOME/bin should be _before_ the other paths.
Downside is, the security hole which that provides the black hat. Bad
juju can happen there after.
What "security hole"??
Assume a hacker can gain write access to a users file system.
They can't read or execute anything, just write there.
If an attacker can gain write access to a user's files they can change
that path so it doesn't matter. At the very most, they'd have to wait
for a subsequent login.
If they assume the user has a "bin" directory, they can put a trojan
in ~/bin (~/bin/ls) and get the user to execute commands using that users
privileges.
Why assume? If you have write access simply create it. In some
scenarios this itself is enough to get your bogus executable into the
$PATH. Even if it's not the attacker could write/append a modified path
that included any directory they wanted, including $HOME. Which they
know hast to exist, so they can drop their bogus files there.
If ~/bin is at the end of the path, it's harder to get the user
to run the command. They need to rely on typos.
If an attacker has invaded user space to the extent they can write
arbitrary files they can pretty much make the user do anything their
evil heart desires. :-(
.
- Follow-Ups:
- Re: Where should I put my own perl command scripts ?
- From: Dan Espen
- Re: Where should I put my own perl command scripts ?
- References:
- Re: Where should I put my own perl command scripts ?
- From: Keith Keller
- Re: Where should I put my own perl command scripts ?
- From: Robert M. Riches Jr.
- Re: Where should I put my own perl command scripts ?
- From: Bit Twister
- Re: Where should I put my own perl command scripts ?
- From: Central Scrutinizer
- Re: Where should I put my own perl command scripts ?
- From: Dan Espen
- Re: Where should I put my own perl command scripts ?
- Prev by Date: Re: probs with tar/ssh from server to server
- Next by Date: Re: Fedora 8 Questions
- Previous by thread: Re: Where should I put my own perl command scripts ?
- Next by thread: Re: Where should I put my own perl command scripts ?
- Index(es):
Relevant Pages
|