security risk: ktrace(2) in FreeBSD prior to -current.

From: Darren Reed (avalon@coombs.anu.edu.au)
Date: 06/30/02


From: Darren Reed <avalon@coombs.anu.edu.au>
To: security@freebsd.org
Date: Mon, 1 Jul 2002 04:17:22 +1000 (Australia/ACT)


The bug in ktrace(2) is present in all FreeBSD's that don't have
p_candebug() in the kernel. In short, this is 4-stable, etc.

What's the risk ?

With OpenSSH 3.4, ssh-keysign gets installed setuid-root.
Using the ktrace(2) bug, you can ktrace the ssh-keysign process
after it resets its uid's and watch it read your ssh host keys,
be they RSA or DSA.

I'm working on a patch for FreeBSD that doesn't break either FreeBSD
or ktrace(2) working the way it should.

In the meantime:

chmod 555 `which ssh-keysign`

Darren

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message



Relevant Pages

  • RE: Anthonys drive issues.Re: ssh password delay
    ... The dmesg you sent indicated that the 2 disks were negotiating at ... > possible cause in the universe before blaming it on FreeBSD. ... to take the risk of it being hardware, ... believe is that it's a bug in the FreeBSD driver. ...
    (freebsd-questions)
  • Re: What do you dislike about OSX?
    ... is is when you claim that OS X is derivative of FreeBSD. ... about *other people* not needing to have all windows visible at all times. ... Most end users don't even know the bug exists. ... offer reasons for me to change my mind. ...
    (comp.sys.mac.advocacy)
  • Re: Support for 5.x (Was: Re: What about BIND 9.3.4 in FreeBSD in base system ?)
    ... Handling other people's send-pr bug input would be boring ... I've filed some send-pr diffs years back & not seen action, ... so if the FreeBSD Foundation ever has spare ...
    (FreeBSD-Security)
  • Re: Do we need this junk?
    ... I have an 1742A if any developer needs it for bug chasing. ... It's a full length card. ... To counter Nikolas' `stats' argument to abandon much hardware support: ... There's scanners with FreeBSD embedded inside: ...
    (freebsd-current)
  • cvs-src summary for November 8-15
    ... It is intended to help the FreeBSD community keep up with the fast-paced ... You can get old summaries, and an HTML version of this one, at ... sf driver gets polling and ALTQ support ... Xin Li committed a fix to pppd, the PPP daemon, to a bug ...
    (freebsd-current)