Ctrl+Alt+F7 bypasses the light-locker lock-screen under XFCE

Bug #1410195 reported by Martin Meredith
282
This bug affects 5 people
Affects Status Importance Assigned to Milestone
PolicyKit
Invalid
Medium
libnss-ldap (Ubuntu)
Confirmed
Critical
Unassigned
Nominated for Trusty by Alberto Salvia Novella
libpam-ldap (Ubuntu)
Confirmed
Critical
Unassigned
Nominated for Trusty by Alberto Salvia Novella

Bug Description

HOW TO REPRODUCE:
1. Create an user account with password.
2. Login in the new account using the XFCE desktop environment.
3. Lock the screen.
4. Hit the Ctrl+Alt+F7 key combination.

EXPECTED BEHAVIOUR:
- The user session to be unavailable due to no password being entered.

REAL BEHAVIOUR:
- The session is accessible without entering its password, due to the VT8 being bypassed to the original VT using the Ctrl+Alt+F7 key combination.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: light-locker 1.4.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11
Uname: Linux 3.13.0-43-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Jan 13 10:34:10 2015
InstallationDate: Installed on 2015-01-06 (6 days ago)
InstallationMedia: Xubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/zsh
SourcePackage: light-locker
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Martin Meredith (mez) wrote :
Revision history for this message
Martin Meredith (mez) wrote :

Alex Denvir subscribed, as he's the one who bought this to my attention.

Changed in xubuntu-meta (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Simon Steinbeiß (ochosi) wrote :

With light-locker running, you can switch back to VT7, but it will block your access to the running session there and automatically redirect you to VT8.

So yeah, going to a new VT is expected and part of the plan. If you don't have light-locker running, then of course this will be a problem, because your session will be unlocked and unprotected (as with any other screenlocker, it only works when installed ;)).

Changed in xubuntu-meta (Ubuntu):
status: New → Invalid
Revision history for this message
Martin Meredith (mez) wrote :

Hi Simon,

Unfortunately, this isn't happening. I'm able to switch to VT7 and use the machine. (my access is not blocked to the running session)

Changed in xubuntu-meta (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Martin Meredith (mez) wrote :

(I'm currently setting up a VM to test this on, but, If need be, I'll film what's happening and upload that :))

Changed in light-locker (Ubuntu):
status: New → Confirmed
Changed in xubuntu-meta (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Martin Meredith (mez) wrote :

Changing to incomplete, as I can confirm that this is happening. Invalid would mean I'm wrong. As I can provide documentary evidence regarding this, I'll mark it as complete until I do so :)

Changed in xubuntu-meta (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Simon Steinbeiß (ochosi) wrote :

As you might have noticed, I only marked it as invalid against xubuntu-meta, as it is not a bug in that component.

Revision history for this message
Martin Meredith (mez) wrote :

This issue is caused by Polkit not correctly working when box is installed as an LDAP client.

Changed in xubuntu-meta (Ubuntu):
status: Incomplete → Invalid
information type: Private Security → Public Security
Changed in openldap (Ubuntu):
status: New → Confirmed
Changed in policykit-1 (Ubuntu):
status: New → Confirmed
Changed in openldap (Ubuntu):
importance: Undecided → Critical
Changed in policykit-1 (Ubuntu):
importance: Undecided → Critical
description: updated
summary: - Able to bypass screen lock.
+ Ctrl+Alt+F7 bypasses the lock-screen under XFCE
Changed in hundredpapercuts:
status: New → Confirmed
importance: Undecided → Critical
summary: - Ctrl+Alt+F7 bypasses the lock-screen under XFCE
+ Ctrl+Alt+F7 bypasses the light-locker lock-screen under XFCE
summary: - Ctrl+Alt+F7 bypasses the light-locker lock-screen under XFCE
+ Ctrl+Alt+F7 bypasses light-locker lock-screen under XFCE
summary: - Ctrl+Alt+F7 bypasses light-locker lock-screen under XFCE
+ Ctrl+Alt+F7 bypasses the light-locker lock-screen under XFCE
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

Please:
- Report to <http://www.openldap.org/its/>.
- Paste the new report URL here.
- Set this bug status back to confirmed.

Thank you.

Changed in hundredpapercuts:
status: Confirmed → Incomplete
Changed in light-locker (Ubuntu):
status: Confirmed → Incomplete
Changed in openldap (Ubuntu):
status: Confirmed → Incomplete
Changed in policykit-1 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

Please, also repeat the above with <https://bugs.freedesktop.org/> against PolicyKit.

tags: added: asked-to-upstream
no longer affects: xubuntu-meta (Ubuntu)
Revision history for this message
In , Martin Meredith (mez) wrote :

When combined with pam_ldap, to login to a centralised server, the GUI components of policykit fail, this means that the UI cannot shutdown, cannot mount disks, install packages, etc (Xubuntu 14.04).

I can provide any further info, but I don't know what you require to research this issue :).

pkexec from a terminal works fine.

affects: light-locker → policykit-1
Revision history for this message
Martin Meredith (mez) wrote :

Can;t seem to link the openldap bug, so

http://www.openldap.org/its/index.cgi/Incoming?id=8025

Changed in hundredpapercuts:
status: Incomplete → Confirmed
Changed in light-locker (Ubuntu):
status: Incomplete → Confirmed
Changed in openldap (Ubuntu):
status: Incomplete → Confirmed
Changed in policykit-1 (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Howard Chu (hyc) wrote :

As I noted in our ITS#8025, this has nothing to do with upstream OpenLDAP. It may be specific to the particular way you built OpenLDAP in your distro, or it may be due to pam_ldap itself, but neither of these are in the purview of the OpenLDAP Project. Certainly there is nothing in vanilla OpenLDAP source code that operates at a low enough system level to interfere with screen blanking or locking.

Revision history for this message
Martin Meredith (mez) wrote :

Howard, It's having the usernames come from ldap, rather than the local system, that causes policykit to have weird stuff happen, that causes screen locking. It's all interconnected :)

The bug isn't in the parts individually, but in the integration of them all.

no longer affects: openldap
Changed in policykit-1:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Howard Chu (hyc) wrote :

Try replacing pam-ldap/nss-ldap with nslcd and/or nssov and see if the problem persists. I'd bet it doesn't. See here https://bugs.launchpad.net/debian/+source/sudo/+bug/423252/comments/84 for reasons why you should have abandoned pam-ldap/nss-ldap years ago.

Revision history for this message
In , Martin Meredith (mez) wrote :

This has been tracked down to being an issue with libpam-ldap

Changed in light-locker (Ubuntu):
status: Confirmed → Invalid
Changed in openldap (Ubuntu):
status: Confirmed → Invalid
Changed in policykit-1 (Ubuntu):
status: Confirmed → Invalid
Changed in libpam-ldap (Ubuntu):
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → Critical
Changed in hundredpapercuts:
status: Confirmed → Invalid
no longer affects: policykit-1 (Ubuntu)
no longer affects: openldap (Ubuntu)
no longer affects: libpam-ldap (Ubuntu)
no longer affects: light-locker (Ubuntu)
Changed in libpam-ldap (Ubuntu):
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Martin Meredith (mez) wrote :

Switching to libpam-ldapd and nslcd have fixed this issue. I've marked this as an issue against libpam-ldap.

Revision history for this message
Martin Meredith (mez) wrote :

https://github.com/opscode-cookbooks/openldap/issues/44 <-- this has been filed, as this is why we ended up with the outdated package

Changed in libnss-ldap (Ubuntu):
importance: Undecided → Critical
status: New → Triaged
Changed in libpam-ldap (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Ryan Tandy (rtandy) wrote :

Might be related to bug 781737. pam-ldap/nss-ldap dropping privileges is, AFAIK, caused by libgcrypt (bug 423252). If this is the same bug, then the pending openldap merge (bug 1395098) will resolve it, as gcrypt will no longer be used. But switching to nss-pam-ldapd is a good recommendation anyway, since the older modules are dead upstream.

no longer affects: hundredpapercuts
Revision history for this message
Nathan Stratton Treadway (nathanst) wrote : Re: [Bug 1410195] Re: Ctrl+Alt+F7 bypasses the light-locker lock-screen under XFCE

On Fri, Jan 16, 2015 at 18:05:04 -0000, Ryan Tandy wrote:
> will no longer be used. But switching to nss-pam-ldapd is a good
> recommendation anyway, since the older modules are dead upstream.

(In fact there is discussion underway regarding downgrading libnss-ldap
and libpam-ldap out of main; see LP: #1408478 for more information.)

      Nathan

Changed in policykit-1:
status: Confirmed → Invalid
keshavbhatt (keshavnrj)
Changed in libnss-ldap (Ubuntu):
status: Triaged → Confirmed
Changed in libpam-ldap (Ubuntu):
status: Triaged → Confirmed
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.