Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607132 - <lxdebase/lxsession-0.5.2: 'dm-tool lock' appears to lock the screen but contains password bypass.
Summary: <lxdebase/lxsession-0.5.2: 'dm-tool lock' appears to lock the screen but cont...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL: https://github.com/lxde/lxsession/com...
Whiteboard: B4 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-25 01:32 UTC by Clin
Modified: 2018-12-02 20:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Clin 2017-01-25 01:32:08 UTC
The commands 'dm-tool lock' && 'dm-tool switch-to-greeter' appear to lock the screen (eg prompt for a password from the user) are both easily bypassed when switching to a TTY and back to X (eg 'Alt+Ctrl+F1, Alt+Ctrl+F7').

This has been raised many times but marked wontfix by vendor. It's been raised by multiple people as early as 2013 (and probably earlier) and in some cases can be used to bypass lock screens in real world scenarios.

To Reproduce:
- Use LightDM as login manager w/ Openbox (also confirmed on Ubuntu 16.10 w/ Unity).
- Lock the screen via command 'dm-tool lock' or 'dm-tool switch-to-greeter' which prompts for a password.
- Press Alt+Ctrl+F1, Alt+Ctrl+F7


Bug Reports:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1338814
https://bugs.launchpad.net/ubuntu/+source/lxsession/+bug/1205384
https://ubuntuforums.org/showthread.php?t=2224690
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740163
Comment 1 Christopher Díaz Riveros (RETIRED) gentoo-dev Security 2017-10-05 17:30:23 UTC
From Bug reports I can see that issues were already resolved. 

@Maintainer, could you please confirm if we need to do something here?

Thank you,

Gentoo Security Padawan
ChrisADR
Comment 2 Christopher Díaz Riveros (RETIRED) gentoo-dev Security 2017-10-08 20:02:07 UTC
After searching a bit I found upstream released a fix for this issue in lxsession.

From URL:

>Replace unfinished lightdm method in lxlock by xscreensaver method, which also 
>auto start the daemon if it's not running

Fixed version is available in lxsession 0.5.3

@Maintainers please ready for stabilization.

Gentoo Security Padawan
ChrisADR
Comment 3 Aaron Bauman (RETIRED) gentoo-dev 2018-12-02 20:57:42 UTC
(In reply to Christopher Díaz Riveros from comment #2)
> After searching a bit I found upstream released a fix for this issue in
> lxsession.
> 
> From URL:
> 
> >Replace unfinished lightdm method in lxlock by xscreensaver method, which also 
> >auto start the daemon if it's not running
> 
> Fixed version is available in lxsession 0.5.3
> 
> @Maintainers please ready for stabilization.
> 
> Gentoo Security Padawan
> ChrisADR

It was tagged for 0.5.2 as well and is present in the tarball.