Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Sudo tricks |
|---|---|
| Date: | Tue, 28 Mar 2006 15:27:25 +0200 |
John Richard Moser <nigelenki@comcast.net> writes:
My conclusion is that the only real way to protect against this is for bash to look for every binary in your path when you don't specify a path; and check to see if any of those binaries is SUID. If even one is, it should FLAT OUT IGNORE any aliases or non-SUID matches (to avoid PATH=$HOME attacks). What do you all think?
It won't work. If your non-root account is compromised you can't use sudo, su (or anything that changes access rights) safely. For example, you can't be sure what shell are you using. The password check (or other challenge) does only make sense if the terminal (on which it's entered: shell and user account count too) and the machine which checks it (the system) are both secure. I usually use a term "security level" to show what could in theory be safe and what can never be safe. For instance, root have higher security level than others on the same machine. "Trusted" machines (such as admin's terminal) have higher levels than non-trusted (multi-user, servers etc.): I can safely ssh from my non-root account on my secure terminal to root@some.server but the reverse is forbidden. Switching to higher level is never safe. Switching to lower level _can_ be safe - under conditions. One can consider root and non-root admin account to have the same security level, though (with non-root account used instead of root to limit accidental damage only). -- Krzysztof Halasa
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [eVuln] Skull-Splitter's PHP Downloadcounter for Wallpapers SQL Injection, alex |
|---|---|
| Next by Date: | Re: Re: phpBB 2.06 search.php SQL injection, fritz-li |
| Previous by Thread: | Re: Sudo tricks, Thomas M. Payerle |
| Next by Thread: | RE: Sudo tricks, Burton Strauss |
| Indexes: | [Date] [Thread] [Top] [All Lists] |