Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Is this a Lightdm security bug?

  1. #1
    Join Date
    May 2009
    Location
    Fareham, UK
    Beans
    1,524
    Distro
    Ubuntu 16.04 Xenial Xerus

    Is this a Lightdm security bug?

    I've been messing around with Lightdm a bit lately because I only just figured out how to customise the guest session so I've been logging in and out a lot today, that's how I noticed what I'm sure is a bug in lightdm's behaviour

    I have a start-up script which sleeps for 30 seconds and then opens pidgin minimized, I kept noticing today that if I log in to my user account, then quickly log out and log in as a guest session (within the 30 secs) then pidgin would start as MY user but on the guest session, so with all of my accounts and contacts available but in the screen of the guest session

    I've never noticed this until now, I've been using gdm.

    Can anyone confirm this? And if so would this be a lighdm bug?

    Not that this pidgin incidence is a huge deal to me but if this is reliably reproduced could lead to serious security risks is some setups

    Regards
    Mark
    Catch me on Freenode - imark

  2. #2
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Is this a Lightdm security bug?

    Are you switching users or are you logging out?
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  3. #3
    Join Date
    May 2009
    Location
    Fareham, UK
    Beans
    1,524
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Is this a Lightdm security bug?

    Completely logging out and then logging back into either a guest session or another user from lightdm (result is the same), I confirmed the same behaviour on my netbook install of Xubuntu 13.04, and my desktop running Ubuntu 13.04, both now use lightdm hence the reason I jumped to blame that, I've never seen the same behaviour with Gdm, it only happens with pidgin that I can find so far but still there could be more risky applications that I haven't found that might act the same, this definitely shouldn't happen but the question is which package is responsible

    EDIT: I just switched over to Gdm and I actually do see the same behaviour on Gdm so I putting this down to a fault with pidgin, I assume its sending the window to display:0 regardless of which user is logged in
    Last edited by CaptainMark; September 16th, 2013 at 08:52 AM.
    Catch me on Freenode - imark

  4. #4
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Is this a Lightdm security bug?

    is that data not in home folder? because guest is supposed to restrict that folder.

    https://wiki.ubuntu.com/DesktopTeam/...d/GuestAccount

    interesting find.
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Full disk backup (newer kernel -> suitable for newer PC): Clonezilla
    User friendly full disk backup: Rescuezilla

  5. #5
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Is this a Lightdm security bug?

    Wow, that's pretty bad. Does it happen for other programs? What about NON-GTK programs? This sounds like a real security flaw and you should report it to Ubuntu or even upstream if you can figure out the culprit.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

  6. #6
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Is this a Lightdm security bug?

    I suppose it could be in the manner in which your script is running. How are you triggering your script?
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  7. #7
    Join Date
    May 2009
    Location
    Fareham, UK
    Beans
    1,524
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Is this a Lightdm security bug?

    I have an entry in startup scripts to run all scripts in ~/Documents/bash/login/ which contains a script that just sleeps for 30 secs and runs pidgin, but honestly it shouldn't matter should it, no scripts or programs should cross over to another user's session unless they've been explicitly programmed to do so
    Catch me on Freenode - imark

  8. #8
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Is this a Lightdm security bug?

    The terminal isn't the same as your X session, I believe. That could be a contributor. I would have guessed it would launch Pidgin as whatever user happened to be logged in at the time it was called, but if it's being called as you (from a background terminal)...
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  9. #9
    Join Date
    May 2009
    Location
    Fareham, UK
    Beans
    1,524
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Is this a Lightdm security bug?

    Any terminal being called as a user (which this is being called by my login session) should not be crossed to another user space, regardless of how many child processes are started by it, the parent process is being called by user mark and should terminate with an error if it cant find a display to connect to belonging to that uer. I call many scripts (~15) this way and pidgin is the only one that behaves like this.
    Catch me on Freenode - imark

  10. #10
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Is this a Lightdm security bug?

    Hmmm... isn't the display of the window dependent on the X session and not a user session? So the window/screen output is sent to Display 0 (or similar)? For instance I can ssh into a machine and manipulate a running application if I can find it on a display. Hmmm... (again) I don't think I can ssh in as user A and have an application launch in front of user B in the GUI. (It may be possible, but I wouldn't know how.)
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •