On mySimon: Holiday Gifts for Mom and Dad
BNET Business Network:
BNET
TechRepublic
ZDNet

October 3rd, 2007

X Font Server flaw hits Sun Solaris hard

Posted by Ryan Naraine @ 8:52 am

Categories: Apple, Botnets, Browsers, Data theft, Exploit code, Hackers, Microsoft, Open source, Oracle, Passwords, Patch Watch, Pen testing, Responsible disclosure, Viruses and Worms, Vulnerability research, Zero-day attacks

Tags: Sun Microsystems Inc., Vulnerability, Font, Flaw, Sun Solaris, UNIX, Operating Systems, Servers, Security, Software

X Font Server flaw hits Sun Solaris hard Default installations of Sun’s free Solaris operating system are sitting ducks for remote code execution attacks.

According to an alert from iDefense, the flaw exists in the way Solaris implements the X Font Server (xfs), which is used to handle font rendering on X11 (X Window System).

The vulnerability, fixed in XFS version 1.0.5, affects multiple vendors but current versions of Solaris are hardest hit because the XFS service is turned on by default and listens on TCP port 7100.

“These vulnerabilities are remotely exploitable [on Solaris],” iDefense warned.

In the absence of a patch from Sun Microsystems, Solaris users are urged to stop XFS from listening remotely by disabling it via the service manager.

[SEE: Sun rushes out patch for Solaris Telnet exploit ]

Exploit code for this vulnerability has been released by Immunity, Inc., a penetration testing firm that sells access to exploits and vulnerabilities. “Good default anonymous remotes don’t come out every day. Solaris is still all over the place so this sort of thing is quite interesting,” said Immunity researcher Dave Aitel.

On modern Linux systems, these vulnerabilities are only locally exploitable since the server is configured to listen on a UNIX socket only.

Technical details of the X Font Server vulnerabilities:

An integer overflow vulnerability exists within the handlers for the QueryXBitmaps and QueryXExtents protocol requests. Both requests result in a call to the build_range() function. This function takes a 32bit integer from the request, and uses it in an arithmetic operation that calculates the size of a dynamic buffer. This calculation can overflow, which leads to an improperly sized memory allocation. This results in a heap overflow.

Additionally, a heap corruption vulnerability exists within the handlers for the QueryXBitmaps and QueryXExtents protocol requests. Both requests result in a call to the swap_char2b() function. This function takes a 32bit integer from the request, and uses it as the number of bytes to swap in the request buffer. This allows an attacker to swap an arbitrary number of bytes on the heap.

Sun Microsystems has taken baby steps recently to improve its security response process. This month, for the first time, the company provided advance notification of security updates for Java SE.

Sun said this is the first step towards the simultaneous release of security fixes across all supported Java SE release families. “Sun expects to fully synchronize the release of security fixes across all supported releases, including J2SE 1.3.1 in 2008,” the company said on its security blog.

Sun has been heavily criticized in the past for the way Java patches are released.

* Image via Wikipedia article on Sun Solaris.

Ryan NaraineRyan Naraine is a journalist and security evangelist at Kaspersky Lab. He manages Threatpost.com, a security news portal. Here is Ryan's full profile and disclosure of his industry affiliations.


Email Ryan Naraine

For daily updates on Ryan's activities, follow him on Twitter.

Subscribe to Zero Day via Email alerts or RSS.

  • Talkback
  • Most Recent of 9 Talkback(s)
RE: X Font Server flaw hits Sun Solaris hard?
I guess I'm very confused at the "hard" part of this message. Solaris 10 has an install option to set the ports open or closed. Any decent sys-admin that specifies "open" should reexamine their creden... (Read the rest)
Posted by: GAGendel Posted on: 10/12/07 You are currently: a Guest | | Terms of Use
it's a good alert, but what kind of idiots  Narr vi | 10/03/07
Excuse me?  kraterz | 10/03/07
One way to get free publicity for your OS ...  George Mitchell | 10/03/07
Who is going to trust a vendor...?  Resuna | 10/04/07
And of course you are ...  George Mitchell | 10/04/07
RE: X Font Server flaw hits Sun Solaris hard  chris.copp@... | 10/04/07
Don't turn services on by default, and bind them to localhost if you can.  Resuna | 10/04/07
solaris is still better than windoze  Linux Geek | 10/04/07
RE: X Font Server flaw hits Sun Solaris hard?  GAGendel | 10/12/07

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement

Recent Entries

advertisement

Archives

Favorite Links

ZDNet Blogs

White Papers, Webcasts, and Downloads

SmartPlanet

Click Here