From: Vasiliy Kulikov <segoon@openwall.com>
To: kernel-hardening@lists.openwall.com
Subject: [kernel-hardening] procfs io and taskstats infoleaks, proc/pid/* threats
Date: Sat, 25 Jun 2011 21:35:01 +0400 [thread overview]
Message-ID: <20110625173430.GA3079@albatros> (raw)
(Bringing the subject to the list)
While implementing HARDEN_PROC and arguing with LKML folks about
usefullness of the feature, I've discovered /proc/pid/io and taskstats
interfaces can be used to gather rather sensitive information, like
password length:
http://www.openwall.com/lists/oss-security/2011/06/21/12
The suggested patches:
https://lkml.org/lkml/2011/6/24/88
https://lkml.org/lkml/2011/6/24/89
https://lkml.org/lkml/2011/6/24/91
taskstats patch is partial, it doesn't honor set{u,g}ids and processes
using caps. For the full fix ptrace_task_may_access_current() is
needed, the patch adding it is pending:
https://lkml.org/lkml/2011/6/20/316
https://lkml.org/lkml/2011/6/20/317
I'd appreciate if somebody points me how information stored in
sched, schedstats, stat, and status files can be exploited. I suspect
it can be used similar way.
Other thoughts:
Files mountinfo, mounts store information related to the process' fs
namespace. I feel this information can be somewhat private, e.g. mount
points can reveal private file pathes in case of separate namespaces
where this information cannot be learned by reading /proc/self/mountinfo.
Files limits and status store process related restrictions. I dunno
whether this can be considered as a private information.
I'd appeciate any comment.
Thanks,
--
Vasiliy Kulikov
http://www.openwall.com - bringing security into open computing environments
reply other threads:[~2011-06-25 17:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20110625173430.GA3079@albatros \
--to=segoon@openwall.com \
--cc=kernel-hardening@lists.openwall.com \
/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