| Summary: | if authorized keys exchanged, regular user can gain | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Curtis Maurand <curtis> |
| Component: | ssh | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> |
| Status: | CLOSED INVALID | ||
| Severity: | security | ||
| Priority: | P2 | ||
| Version: | 3.6.1p2 | ||
| Hardware: | ix86 | ||
| OS: | Linux | ||
| URL: | http://www.mainelinesys.com | ||
|
Description
Curtis Maurand
2003-11-13 15:29:58 AEDT
Please attach (note: use "create attachment", don't paste into a comment) the output of "ssh -vvv -l root machine2" from your last step. Also, is your ssh program setuid root? Can you reproduce with the current version (3.7.1p2)? I can't reproduce this on any platform I own. $ echo ~/ /home/mouring/ $ id uid=1001(mouring) gid=1001(mouring) groups=1001(mouring), 0(wheel), 1000(cvs) $ su Password: # ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): Check your ~user/.ssh/ vs check your ~root/.ssh/ ssh being setuid or not will not make a bit of difference because such a case is already handled by ssh.c:main(). - Ben I can't reproduce this on Linux (Redhat 9, Fedora Core1 and Gentoo) at all: jason@sith jason $ pwd /home/jason jason@sith jason $ id uid=500(jason) gid=100(users) groups=100(users),10(wheel) jason@sith jason $ su - Password: sith root # cd .ssh/ sith .ssh # ls known_hosts sith .ssh # ssh-keygen -b 2048 -t dsa sith .ssh # ls id_dsa id_dsa.pub known_hosts sith .ssh # scp id_dsa.pub root@banshee:/root root@banshee's password: id_dsa.pub 100% 1111 0.0KB/s 00:00 sith .ssh # exit [root@banshee root]# ls anaconda-ks.cfg id_dsa.pub install.log install.log.syslog mail sslcert [root@banshee root]# cat id_dsa.pub >> .ssh/authorized_keys2 [root@banshee root]# jason@sith jason $ ssh root@banshee root@banshee's password: Last login: Thu Nov 13 19:45:03 2003 from sith.devrandom.org [root@banshee root]# Are you sure you're not somehow still logged in as root or have root's key somehow stored in your SSH Agent? No followup = closed bug. Mass change of RESOLVED bugs to CLOSED |