All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch for SymlinksIfOwnerMatches
@ 2018-07-03 18:19 Hanno Böck
  2018-07-03 18:48 ` Jann Horn
  2018-07-03 19:47 ` Jann Horn
  0 siblings, 2 replies; 6+ messages in thread
From: Hanno Böck @ 2018-07-03 18:19 UTC (permalink / raw)
  To: kernel-hardening

Hi,

There's a nasty problem in many webserver configurations on multiuser
systems, I've blogged about it a while ago [1]. With a symlink it's
often possible to read out configuration files of other users. This was
famously used in the freedom hosting II hack [2].

grsecurity had a workaround for this: By not allowing file operations
to follow symlinks if the owner of the link and the target don't match
it can block this kind of attack.

I saw a need to keep this feature alive in a post-grsecurity world, so
a while ago I extracted it from the grsecurity patch. I've now made
that public:
https://github.com/hannob/symlinkown

I'm not sure about upstreaming, I think it's a worthy feature, but it
might need some work in polishing it. But for now I'll just share it
and I will hopefully be able to keep the patch working for future
kernels.

[1]
https://blog.hboeck.de/archives/873-The-tricky-security-issue-with-FollowSymLinks-and-Apache.html
[2]
https://securityaffairs.co/wordpress/55990/deep-web/freedom-hosting-ii-hack.html

-- 
Hanno Böck
https://hboeck.de/

mail/jabber: hanno@hboeck.de
GPG: FE73757FA60E4E21B937579FA5880072BBB51E42

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-07-03 21:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-03 18:19 Patch for SymlinksIfOwnerMatches Hanno Böck
2018-07-03 18:48 ` Jann Horn
2018-07-03 18:58   ` Jann Horn
2018-07-03 19:31     ` Salvatore Mesoraca
2018-07-03 19:47 ` Jann Horn
2018-07-03 21:02   ` Hanno Böck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.