LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-30-2007, 10:57 AM   #1
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Rep: Reputation: 30
The old X problem ...still unsolved ??


hi,

One of the security tool has generated reports for our production system which is RedHat Linux 2.1 installed on it.

The error in question is :

unrestricted X server access (No X server access control )

Now when I tried to goole on above error found the following help.

"""""Restrict access to server: An open X display allows anyone, anywhere to view your screen, capture keystrokes and even execute commands remotely. This is a serious vulnerability that is easily fixed using xhosts or xauth. The xhost program is used to add and delete host names or user names to the list allowed to make connections to the X server, providing a rudimentary form of privacy control and security sufficient for a workstation environment (e.g. xhost +user@host when granting access).""""""""""



So tried to disable the unwanted access using below command. But got this,

>>>xhost -
xhost: unable to open display ""
root@P04.com /root
>>>

But at the same time I get this when I run ,

>>>xauth list
P04.com:1 MIT-MAGIC-COOKIE-1 c04203fd1bdc2f31d7b249434ff4de3d
localhost.localdomain/unix:1 MIT-MAGIC-COOKIE-1 e448d1eb5e9ccce7a407ea55f06c0fe9
P01.com/unix:10 MIT-MAGIC-COOKIE-1 dd84bffa51d812943c1dba16ba2f54bb
P01.com/unix:1 MIT-MAGIC-COOKIE-1 c04203fd1bdc2f31d7b249434ff4de3d
P01.com/unix:0 MIT-MAGIC-COOKIE-1 e00708c7b585daea3ce89ef1f52bee89
P04.com/unix:10 MIT-MAGIC-COOKIE-1 0964d62871c1e842f60ad9307dfed6bf
>>>

And I have found that in /etc/sshd_config X11 Forwarding is set to Yes.

But it gives no output for

>>>echo $DISPLAY
>>>


Now I'm pretty confused as to whether the xhost is being used on this system? Or is it xauth or X11Forwarding ?? Or none ??
Then why is it that our Security Audit tool is complaining as ""unrestricted X server access (No X server access control )""
 
Old 06-30-2007, 12:24 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
try setting the DISPLAY variable before using xhost... I had a related problem earlier. As to why you have nothing in your display string I could not say
(would expect :0.0 or something.)
Code:
bash$ DISPLAY=`uname -n | sed s'/.yourdomainname.com//'`:0.0
also, check /etc/ssh/sshd_config if X11Forwarding is enabled.

Last edited by jhwilliams; 06-30-2007 at 12:33 PM.
 
Old 06-30-2007, 01:21 PM   #3
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
Yes , the X11 Forwarding is yes. So ? All I want is to get rid of the vulnerability alert that the tools producing. Is there any way out?? I guess if I can make sure that the X services are secure enough then that alert will not get generated. Any guess plzzz??
 
Old 06-30-2007, 03:36 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Actually .... when using ssh -X you needn't set DISPLAY or xhost +

As for the warning, and the inability to disable the xhost (xhost -,
xhost: unable to open display "") ... that's because you're trying
to do that on a terminal that isn't owned by the process that runs
the X server on the server. Why is X running in the first place?
BAD MOVE.


Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Balancing unsolved problem amateen Linux - Networking 0 12-26-2006 06:30 AM
"Problem unsolved" icon / indicator celejar LQ Suggestions & Feedback 6 01-24-2006 12:33 PM
Wierd Annoying unsolved yet problem! Acidx Linux - Networking 2 09-16-2005 01:18 PM
NFS Problem - UnSolved fiod Linux - Networking 1 01-22-2005 11:03 AM
unsolved mounting of cdrom umd Slackware 7 04-21-2003 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration