From: Tom Horsley <tomhorsley@adelphia.net>
To: Andreas Schwab <schwab@suse.de>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: ptrace and setuid problem
Date: Sun, 06 Mar 2005 07:54:14 -0500 [thread overview]
Message-ID: <422AFD76.7050005@adelphia.net> (raw)
In-Reply-To: <jeu0npkm5m.fsf@sykes.suse.de>
Andreas Schwab wrote:
>Tom Horsley <tomhorsley@adelphia.net> writes:
>
>
>
>>If I exec a setuid program under ptrace, I can read the image via
>>PEEKDATA requests.
>>
>>
>
>Only CAP_SYS_PTRACE capable processes get suid/sgid semantics under
>ptrace, or can attach to a privileged processes.
>
>Andreas.
>
>
>
I realize the program under ptrace is no longer running setuid, but it
is still running,
and the debugger can examine the process memory. With most setuid programs
being installed execute-only with no read access, isn't it a security
problem that
I can get read access anyway (at least to the parts of the file that are
in LOAD
segments)?
(Although I do notice that my suse 9.2 system has /usr/bin/sudo
installed readable -
it is only my fedora core 3 system that has it execute only - just to
pick a sample
setuid program).
Maybe setuid shouldn't even be the question, maybe the issue should be that
ptrace can read parts of program files that have no read access.
prev parent reply other threads:[~2005-03-06 12:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-06 1:57 ptrace and setuid problem Tom Horsley
2005-03-06 12:13 ` Andreas Schwab
2005-03-06 12:54 ` Tom Horsley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=422AFD76.7050005@adelphia.net \
--to=tomhorsley@adelphia.net \
--cc=linux-kernel@vger.kernel.org \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox