All of lore.kernel.org
 help / color / mirror / Atom feed
* Do you trust X server?
@ 2005-03-17 22:28 Jun OKAJIMA
  2005-03-18  5:26 ` Valdis.Kletnieks
  2005-03-18 12:38 ` Stephen Smalley
  0 siblings, 2 replies; 10+ messages in thread
From: Jun OKAJIMA @ 2005-03-17 22:28 UTC (permalink / raw)
  To: SELinux



Hello.

I am not sure that here is the proper place to discuss this issue,
but do you trust X server (or video driver), when you use your PC
with X window?.

Most ( and probably all) X server runs as root on Linux.
Then, if it has ( and it must have ) a buffer overflow or any vulnerability,
and it would execute some cruel code if a certain drawing commands set comes.
A cracker makes web sites contain htmls or SVG or ... to make a such commands
set to be displayed. Then, you can be cracked with just browsing the pages,
not being required to click untrusted contents explicitly.

Have you considered this risk? Is there any site about this issue?
And any measure to solve this issue with SE linux?

                 --- Okajima, Jun. Tokyo, Japan.

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Do you trust X server?
@ 2005-03-18 16:21 Casey Schaufler
  2005-03-24 20:26 ` Tom
  0 siblings, 1 reply; 10+ messages in thread
From: Casey Schaufler @ 2005-03-18 16:21 UTC (permalink / raw)
  To: Tom, SELinux


--- Tom <tom@lemuria.org> wrote:
> On Fri, Mar 18, 2005 at 12:26:04AM -0500,
> Valdis.Kletnieks@vt.edu wrote:
> > For a remote exploit of the X server itself, you'd
> have to find a way to
> > exploit the X protocol, 
> 
> Not true.

Let us be clear. The X consortium has always
made it plain the the X server provides mechanism,
not policy. You can trust the X server to the same
degree you can trust any part of the system that
does not implement or enforce policy. If you
chose to use the X server as a component of
your policy enforcement that is your affair,
but the appropriate use of that code is your
responsibility, not that of the X server.

> This was 2002, and it was a DoS, but it shows that
> the X server can be
> attacked through remote applications:
> 
> http://web.lemuria.org/security/mozilla-dos.html
> 
> The short: A font-rendering bug in X can cause a
> system freeze if mozilla
> is instructed to render a huge (like 1666666 pixels)
> font.

There are bugs in code that provides mechanism.
The security consequences of these problems are
one reason why systems are evalauted as a whole,
not by their individual components.

> Don't trust X.

The case mentioned above requires breakdowns
in the browser, font manager, and system admin.
None of these are X server problems. Further,
the "system" is not damaged at all. The DoS
"attack" is a programming flaw, or "bug" in
the jargon.


Casey Schaufler
casey@schaufler-ca.com


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Do you trust X server?
@ 2005-03-24 20:41 Casey Schaufler
  2005-03-24 21:02 ` Tom
  0 siblings, 1 reply; 10+ messages in thread
From: Casey Schaufler @ 2005-03-24 20:41 UTC (permalink / raw)
  To: Tom, Casey Schaufler; +Cc: SELinux


--- Tom <tom@lemuria.org> wrote:

> > If you
> > chose to use the X server as a component of
> > your policy enforcement that is your affair,
> > but the appropriate use of that code is your
> > responsibility, not that of the X server.
> 
> That depends. As far as we can provide policy
> enforcement externally,
> the X server doesn't have to care.

Yes, that is correct.

> However, it has
> been noted in past
> discussions that the X server is, like login or ssh,

Excuse me, but the X server is not like login or ssh.
Login and ssh are policy enforcing programs. As I
noted above, the X server is not.

> one of the
> programs that cannot fulfill their role within an
> SELinux environment
> without either endangering said environment or
> becoming policy-aware.

If this is true it is a problem with the SELinux
environment, not the X server. The SGI Irix B1
evaluation of 1995 used an unmodified X server
that did no policy enforcement. The environment
was not endangered by the presence of the X server.


Casey Schaufler
casey@schaufler-ca.com


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

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

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

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-17 22:28 Do you trust X server? Jun OKAJIMA
2005-03-18  5:26 ` Valdis.Kletnieks
2005-03-18  8:35   ` Tom
2005-03-18 16:58     ` Valdis.Kletnieks
2005-03-18 12:38 ` Stephen Smalley
2005-03-18 16:07   ` Daniel J Walsh
  -- strict thread matches above, loose matches on Subject: below --
2005-03-18 16:21 Casey Schaufler
2005-03-24 20:26 ` Tom
2005-03-24 20:41 Casey Schaufler
2005-03-24 21:02 ` Tom

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.