Skip to contentSkip to conversation

Do you trust X server?

DISCUSSION Casey Schaufler 2 participants 2 messages Mar 18, 2005 – Mar 24, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines · --- Tom
Quoted 1 line · On Fri, Mar 18, 2005 at 12:26:04AM -0500, [email protected] wrote:

For a remote exploit of the X server itself, you'd

have to find a way to

Quoted 1 line

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.

Quoted 10 lines

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.

Quoted 1 line

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
[email protected]

__________________________________
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 3 lines · Casey Schaufler

Let us be clear. The X consortium has always made it plain the the X server provides mechanism, not policy.

That it does. Nevertheless, its impact on the policy needs to be evaluated if you want to use X on an SELinux system. There's no point in saying "sure, it breaks all my security, but hey, it wasn't designed to keep the policy intact".

Of course X is policy-ignorant. Most of the programs that SELinux has policies for are.

Quoted 3 lines

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.

i.e. ca. 90% of the applications we've written .te files for so far.

Quoted 5 lines

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. However, it has been noted in past discussions that the X server is, like login or ssh, one of the programs that cannot fulfill their role within an SELinux environment without either endangering said environment or becoming policy-aware.

Quoted 3 lines

the "system" is not damaged at all. The DoS "attack" is a programming flaw, or "bug" in the jargon.

Most security issues are the consequence of from programming flaws. ;)

Signature · 8 lines
http://web.lemuria.org/pubkey.html
pub  1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]>
     Key fingerprint = C731 64D1 4BCF 4C20 48A4  29B2 BF01 9FA1 2D7A 04F5

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.