News for hackers. Stuff that matters.
Re:Kids find a security flaw in Linux Mint by mashing keys by gambiting on Wednesday January 20, 2021 @04:17AM (#25844285)
Does anyone know why lockscreens in Linux have been such a joke? I remember trying Ubuntu couple years ago and when waking up my laptop it would show me my entire desktop with all the information displayed right there in the open for about 10-20 seconds before suddenly engaging the lockscreen. All you had to do was close the lid and open it again and you could just copy whatever was on the screen before the lock screen appeared. I guess it's because the lockscreen was a separate process that had to start up? Still, what an awful awful design.
Re:Kids find a security flaw in Linux Mint by mashing keys by astrange on Wednesday January 20, 2021 @04:19AM (#25844302)
Bad design in X11 which can't be fixed.

https://news.ycombinator.com/item?id=25801693

Re:Kids find a security flaw in Linux Mint by mashing keys by datenwolf on Wednesday January 20, 2021 @08:42AM (#25846292)
It's not an X11 design flaw. The very concept of locking the screen is flawed. A flaw that also haunts Wayland, BTW.

The concept of screen lockers is having a special layer, that can't be bypassed, which a locker creates. The whole security then hinges on the locker not crashing. X11 does have such a layer. Wayland compositors also implement it through such a layer. And for either the situation is, that if the locker crashes, that layer is destroyed by implication and the session exposed.

That's a flawed concept.

What you really want is detachable graphics session. On the text console one can effortlessly use screen or tmux and to "lock" the session simply detach and exit to the regular login getty.

You want exactly the same, but for X11. And there's no obstacle in printiple to implement this. It's just that the Xorg server can't detach. Almost all of the required code is there, fundamentally it'd be the same code that's executed during a VT switch.

In the meantime one can use Xpra with Xvfb to create detachable X11 sessions, which then however lack GPU acceleration.

Re:Kids find a security flaw in Linux Mint by mashing keys by shawnz on Wednesday January 20, 2021 @09:35AM (#25846866)
The architecture you're describing would also be good for other reasons. For example, you could start a local session, lock it, and then remotely connect to the same session over VNC without local users at the workstation being able to see or interfere with what you are doing, just as on Windows.

Mac OS almost gets this right, except it annoyingly defaults to sharing the remote session with the local console unless someone is already logged in locally.

Re:Kids find a security flaw in Linux Mint by mashing keys by zadler on Wednesday January 20, 2021 @09:18AM (#25846675)
It’s amazing to me that The most popular display managers on Linux have this flaw. Perhaps there is a workaround involving switching to another tty?
Re:Kids find a security flaw in Linux Mint by mashing keys by arbitrage on Wednesday January 20, 2021 @09:54AM (#25847092)
that's a really good point! your comment reminded me that that is what we used to do in the lab at university, a long time ago. switching to a different terminal, then locking that, was much more fool proof. perhaps not for security, but rather because X11 was so damned buggy and crashy, that you might need to have access to that terminal to get back into your workstation without forcing a reboot.
Re:Kids find a security flaw in Linux Mint by mashing keys by Blikkentrekker on Wednesday January 20, 2021 @11:06AM (#25848051)
Perhaps outside of display servers altogether, implementing an authentication system that keeps track of what user currently owns what v.t., and allowing only that user, or root, to switch to that v.t..
Re:Kids find a security flaw in Linux Mint by mashing keys by surajrmal on Wednesday January 20, 2021 @11:16AM (#25848187)
I'm curious what other OS which avoid X11/Wayland do, such as Android. Do they implement an architecture like what you mention?
Re:Kids find a security flaw in Linux Mint by mashing keys by mmis1000 on Wednesday January 20, 2021 @01:17PM (#25849855)
Windows has a secure desktop that host lock screen. Crash that gives you a bsod or at worst a blank screen (your window did not host on it, whta did you expect?)
Re:Kids find a security flaw in Linux Mint by mashing keys by jdc on Wednesday January 20, 2021 @11:27AM (#25848325)
> In the meantime one can use Xpra with Xvfb to create detachable X11 sessions, which then however lack GPU acceleration.

Maybe using Xdummy instead of Xvfb would work better?

This wiki article makes such an approach look promising: https://xpra.org/trac/wiki/Xdummy

Re:Kids find a security flaw in Linux Mint by mashing keys by Dylan16807 on Wednesday January 20, 2021 @10:31PM (#25855037)
I agree with your explanation but I would still call that a method of "locking the screen".
Re:Kids find a security flaw in Linux Mint by mashing keys by formerly_proven on Wednesday January 20, 2021 @04:24AM (#25844338)
Re:Kids find a security flaw in Linux Mint by mashing keys by chrismorgan on Wednesday January 20, 2021 @06:15AM (#25845038)
I’m not familiar with the details of the design flaw and whether or not Wayland fixes it, but those links don’t contradict this being an X-specific design flaw. I get the impression that swaylock is a direct port of i3lock, and thus stands a fair chance of being written and architected in an X style, rather than taking advantage of any superior form that Wayland may support but X didn’t.

Expressed otherwise: just because someone’s written one piece of bad software for Wayland doesn’t mean Wayland doesn’t allow you to write good software. (Whereas I get the impression from what I’m reading that X makes it impossible to write a good screen locker, if by that you require that it be crash-proof and use the usual platform toolkit for the UI.)

(Remember in this that I’m saying I don’t know. I’d like to hear if Wayland does have a good answer to this, or from anyone with definite knowledge that it doesn’t.)

Re:Kids find a security flaw in Linux Mint by mashing keys by waheoo on Wednesday January 20, 2021 @06:35AM (#25845174)
I think they're simply saying that lock screens are hard to get right and that shitting on x11 at every chance you get doesn't help anything.
Re:Kids find a security flaw in Linux Mint by mashing keys by bionade24 on Wednesday January 20, 2021 @09:31AM (#25846825)
If you've ever looked in the bugtracker of a big X11 screenlocker, you would love to have this small amount of bugs. In fact, some of the bugs you posted are alread solved and I can't find one bug related to displaying. Giving the display to the user could also lie in other code parts. We'll see how this ends, but it's already a huge gain that not every Everyday Linux user has experienced such things by themselves.
Re:Kids find a security flaw in Linux Mint by mashing keys by toast0 on Wednesday January 20, 2021 @04:59AM (#25844545)
The underlying design issues are:

a) there's no Xserver concept of a lock screen which would be hard to fix, I suspect. How would you signal X to lock/unlock; what would it do if the lock client wasn't connected, etc.

b) there's no atomic way to transfer mouse/keyboard grab to another window, which means you can't have a reliable, crash reduced screen locker that supervises a beautiful password checking program; it has to be the same program. This could probably be fixed with an X extension; yes, an extension is a lot of work, and yes, you'd have to deal with fragmentation, but you could keep the untoolkited password dialog in case the extension isn't present, nobody would see it unless they did something odd, so it's fine.

Another issue is that I think I've seen some linux systems don't launch the screen locker until resume, instead of locking before suspend; that's not ideal, because the screen locker will take time to launch and lock the screen (more so if it's got a fancy initialization routine and is a large binary/many libraries to load).

An option could be running a dedicated screen lock Xserver on a different VT, and (securely) switching to that one somehow. But that would probably involve changes to multiple layers at the same time, which is hard to pull off in Linux. People would complain about the bloat of running a second Xserver, regardless of the actual bloat or imcreased utility.

Re:Kids find a security flaw in Linux Mint by mashing keys by m45t3r on Wednesday January 20, 2021 @08:30AM (#25846167)
> Another issue is that I think I've seen some linux systems don't launch the screen locker until resume, instead of locking before suspend; that's not ideal, because the screen locker will take time to launch and lock the screen (more so if it's got a fancy initialization routine and is a large binary/many libraries to load).

This particular issue is fixed in logind, when you ask it to lock the season/suspend/hibernate it first calls the lock screen, wait it to signal it finishes and them it proceed to suspend/hibernate.

Not saying you need systemd to fix this issue, but it is one of the things that systemd allows you to do correctly without reinventing the wheel.

Re:Kids find a security flaw in Linux Mint by mashing keys by josefx on Wednesday January 20, 2021 @05:08AM (#25844596)
> and yes, you'd have to deal with fragmentation,

Why not just require that it is there? Is there even a valid reason for someone to keep the extension out unless it is to give another "this is the reason X sucks" speech?

Re:Kids find a security flaw in Linux Mint by mashing keys by toast0 on Wednesday January 20, 2021 @05:14AM (#25844627)
Because, IIRC, xscreensaver is launched on demand (idle timer, power management), and that's a terrible time to detect the extension and tell a user that they won't be able to resume their session, because their Xserver is too old.

Also, because of piecemeal releases, and remote X. You might update Xscreensaver, but not your X server or desktop environment. You might have a dedicated X terminal which can't easily have its server component updated, but you run remote sessions that have an updated Xscreensaver. (Btw, if you do this, you're pretty dedicated in 2021)

Re:Kids find a security flaw in Linux Mint by mashing keys by andi999 on Wednesday January 20, 2021 @07:21AM (#25845563)
What is todays alternative to remote sessions?
Re:Kids find a security flaw in Linux Mint by mashing keys by toast0 on Wednesday January 20, 2021 @01:56PM (#25850387)
Most of what I've seen has migrated towards a virtual display on the session server, streamed via vnc/rdp/? to a thin client.
Re:Kids find a security flaw in Linux Mint by mashing keys by marcthe12 on Wednesday January 20, 2021 @08:34AM (#25846213)
I like the dedicated VT, as DE users usually have a DM to login and for wayland that prob must a separate VT any way. The question is how to securely do this.
Re:Kids find a security flaw in Linux Mint by mashing keys by sontek on Wednesday January 20, 2021 @07:56AM (#25845859)
JWZ has been complaining about these screensavers for a decade. His screensaver from 20 years ago still doesn't have these issues.

Its not an X11 problem.

- https://bit.ly/3o2qekz

- https://bit.ly/38Y6pGO

(using bit.ly because he gives a testicle if referrer is HN :P)

Re:Kids find a security flaw in Linux Mint by mashing keys by shawnz on Wednesday January 20, 2021 @08:54AM (#25846439)
In fact jwz himself says in that very post that it is a fundamental problem with X11:

> X11 ... was designed with no security to speak of, and so lockers have to run as normal, unprivileged, user-level applications. ... This mistake of the X11 architecture can never, ever be fixed.

He also claims in the second post that Xscreensaver is actually vulnerable to exactly the same kind of attack:

> The xscreensaver daemon is a critical piece of security software. The reason for this is that, as a screen locker, any bug in the program that causes it to crash will cause the screen to unlock. As soon as xscreensaver is no longer running, the screen is no longer locked. Therefore, great care must be taken to ensure that the daemon never crash.

Re:Kids find a security flaw in Linux Mint by mashing keys by metafunctor on Wednesday January 20, 2021 @08:16AM (#25846023)
I don't understand the part about JWZ's testicles, so here are the links without bit.ly tracking for those whose ad blockers don't allow them:

- https://www.jwz.org/blog/2021/01/i-told-you-so-2021-edition/

- https://www.jwz.org/xscreensaver/toolkits.html

[Edit]: I understand now. My browser doesn't send referrer URLs, and I think that's the real fix instead of using something like bit.ly!

Re:Kids find a security flaw in Linux Mint by mashing keys by gambiting on Wednesday January 20, 2021 @08:18AM (#25846048)
You still get the testicles if you click this link, at least using Chrome you do. It's because the referrer field is set to HN so they know where the traffic is coming from.
Re:Kids find a security flaw in Linux Mint by mashing keys by FriedrichN on Wednesday January 20, 2021 @08:35AM (#25846225)
In Firefox set network.http.referer.XOriginPolicy and network.http.referer.XOriginTrimmingPolicy.

Source: https://wiki.mozilla.org/Security/Referrer

Re:Kids find a security flaw in Linux Mint by mashing keys by wernercd on Wednesday January 20, 2021 @09:48AM (#25847023)
I'm using Chrome with uMatrix and uBlock Origin... I assume one of those blocks the data because, somehow strangely, I feel left out that all I'm getting is the websites.

I wonder why someone would setup a "bad result" for specific referrers ...

Re:Kids find a security flaw in Linux Mint by mashing keys by lscotte on Wednesday January 20, 2021 @10:45AM (#25847743)
All good with Brave as far as I can tell. I don't know what everyone is talking about with testicles, but I don't see any with Brave.
Re:Kids find a security flaw in Linux Mint by mashing keys by drdec on Wednesday January 20, 2021 @09:20AM (#25846704)
In Firefox, right-click and open in a new private window and the links will work.

Just tested in Chrome and it works there as well.

Re:Kids find a security flaw in Linux Mint by mashing keys by tehwebguy on Wednesday January 20, 2021 @09:38AM (#25846911)
In mobile Safari tap and hold, then tap the preview or the open button
Re:Kids find a security flaw in Linux Mint by mashing keys by ascar on Wednesday January 20, 2021 @08:32AM (#25846195)
Time to switch to Firefox and give Google less data. Firefox doesn't seem to send the referrer :)
Re:Kids find a security flaw in Linux Mint by mashing keys by sgc on Wednesday January 20, 2021 @09:55AM (#25847097)
Hmmm. I think somebody is following this thread because I got testies using ff on linux by clicking the bitly links above.
Re:Kids find a security flaw in Linux Mint by mashing keys by sontek on Wednesday January 20, 2021 @10:04AM (#25847199)
haha, same. jwz really wants us to see the testes!
Re:Kids find a security flaw in Linux Mint by mashing keys by fullstop on Wednesday January 20, 2021 @08:54AM (#25846436)
Brave does not send the referrer as well.
Re:Kids find a security flaw in Linux Mint by mashing keys by sontek on Wednesday January 20, 2021 @09:08AM (#25846576)
Yes it does. I use brave and I get testicles if I click the link.
Re:Kids find a security flaw in Linux Mint by mashing keys by fullstop on Wednesday January 20, 2021 @03:31PM (#25851594)
I've tested it multiple times, as have others. Perhaps you are running an ancient version?

https://brave.com/privacy-updates-5/

edit: see also: https://www.cookiestatus.com/brave/#referrer

Re:Kids find a security flaw in Linux Mint by mashing keys by merlinscholz on Wednesday January 20, 2021 @09:12AM (#25846619)
Can confirm on android, Linux and windows
Re:Kids find a security flaw in Linux Mint by mashing keys by asddubs on Wednesday January 20, 2021 @02:44PM (#25851010)
just tried it in chrome, i got only one testicle
Re:Kids find a security flaw in Linux Mint by mashing keys by ohiovr on Wednesday January 20, 2021 @09:45AM (#25846995)
Does anyone know how to make this right? Would simply removing the mate-screen-saver package work?
Re:Kids find a security flaw in Linux Mint by mashing keys by sontek on Wednesday January 20, 2021 @08:52AM (#25846412)
haha, yeah. I don't like using URL shorteners either there is just a balance to be made between them tracking you and getting redirected to testicles.

Can't count on everyone having referrer turned off

Re:Kids find a security flaw in Linux Mint by mashing keys by nic_wilson on Wednesday January 20, 2021 @08:03AM (#25845908)
To others, you'll definitely still want to copy paste that URL into a new tab rather than clicking directly. :~)
Re:Kids find a security flaw in Linux Mint by mashing keys by erhan24 on Wednesday January 20, 2021 @08:33AM (#25846206)
Xscreensaver has crashed twice in my life and opened the desktop. That's still a good statistic but it may have crashed because of the animation.
Re:Kids find a security flaw in Linux Mint by mashing keys by throwanem on Wednesday January 20, 2021 @08:38AM (#25846248)
Savers can crash without the screen unlocking. Are you sure it was xscreensaver you were running, and not one of the innumerable incompetent knockoffs?
Re:Kids find a security flaw in Linux Mint by mashing keys by Liskni_si on Wednesday January 20, 2021 @11:10AM (#25848117)
I've also seen some xscreensaver crashes a while ago: https://news.ycombinator.com/item?id=21224179
Re:Kids find a security flaw in Linux Mint by mashing keys by sontek on Wednesday January 20, 2021 @08:53AM (#25846432)
Sounds like you were probably using gnome-screensaver or some of the many other poorly written alternatives like cinnamon that do this. I don't believe there is any way for xscreensaver to unlock the desktop even if it does crash
Re:Kids find a security flaw in Linux Mint by mashing keys by cbsks on Wednesday January 20, 2021 @10:30AM (#25847533)
Incorrect. It’s a limitation of X11 that if the screensaver daemon crashes, including xscreensaver, the desktop will be unlocked. See the JWZ links that are posted in this thread.
Re:Kids find a security flaw in Linux Mint by mashing keys by omoikane on Wednesday January 20, 2021 @06:35PM (#25853346)
Re:Kids find a security flaw in Linux Mint by mashing keys by j-james on Wednesday January 20, 2021 @04:50AM (#25844487)
I'm surprised he doesn't mention XSecureLock. Its entire focus is on preventing issues like this with modularity and redundancy.

https://github.com/google/xsecurelock

Re:Kids find a security flaw in Linux Mint by mashing keys by bionade24 on Wednesday January 20, 2021 @05:04AM (#25844580)
I fear it's as secure as vsftpd: Secure until a large amount of users use it and find bugs.
Re:Kids find a security flaw in Linux Mint by mashing keys by notyourday on Wednesday January 20, 2021 @08:37AM (#25846241)
I do not understand. There's an xl and its PAM-checking derivative xl-more that just work.

They do nothing fancy - paint a window over everything and wait for the password to be typed in. No animation. No graphics. No anything. No enter unlock password dialog. I am sure there could be some edge cases but I'm having a hard time identifying them.

Re:Kids find a security flaw in Linux Mint by mashing keys by josephg on Wednesday January 20, 2021 @04:42AM (#25844441)
Can anyone explain why a crash in xscreensaver results in the computer being unlocked?

It seems like this whole class of bugs could be fixed pretty easily by having a simple process watchdog run xscreensaver as a child process, and re-launch it if it crashes without first signalling that the desktop has been unlocked.

Re:Kids find a security flaw in Linux Mint by mashing keys by segfaultbuserr on Wednesday January 20, 2021 @04:53AM (#25844501)
KDE has a failsafe mechanism. If the screen locker has crashed, it shows a black screen of death with a huge error message.

> The screen locker is broken and unlocking is not possible anymore. In order to unlock, switch to a virtual terminal (e.g. Ctrl+Alt+F2), log in and execute the command: "loginctl unlock session c2". Afterwards switch back to the running session.

I think it's a reasonable design.

Re:Kids find a security flaw in Linux Mint by mashing keys by bionade24 on Wednesday January 20, 2021 @04:56AM (#25844522)
No, it's not failsafe. I know a person where only one screen of two got locked, the second one remained operational.
Re:Kids find a security flaw in Linux Mint by mashing keys by segfaultbuserr on Wednesday January 20, 2021 @04:58AM (#25844529)
Okay, let's call it an "incomplete failsafe". I don't want to discuss the correct terminology, but the idea itself.
Re:Kids find a security flaw in Linux Mint by mashing keys by josefx on Wednesday January 20, 2021 @05:01AM (#25844558)
That might be a kde limitation in general. The amount of "fun" I had dealing with two screens on kde is outright endless. Not sure they even test that kind of configuration, 640x480 pixels should be enough for everyone.
Re:Kids find a security flaw in Linux Mint by mashing keys by mikeyjk on Wednesday January 20, 2021 @05:28AM (#25844724)
I'm using 3 monitors on KDE with Debian currently and it's been fine for me.

All screens lock together etc.

Re:Kids find a security flaw in Linux Mint by mashing keys by bionade24 on Wednesday January 20, 2021 @01:53PM (#25850352)
Now imagine they're powered by a docking station, you go into suspend, put the laptop out of the docking station, wake it up and - tadaa! This bug dissappeared but still occurs slightly diffrent for other people. Three monitors itself aren't more edgecase than 2. How long are you using this setup?

Besides screenlockers, having 2 screens with diffrent resolutions is way worse in KDE than in GNOME. (On X11)

Re:Kids find a security flaw in Linux Mint by mashing keys by BoorishBears on Wednesday January 20, 2021 @09:03AM (#25846533)
I'm sure they're referring to the failsafe.
Re:Kids find a security flaw in Linux Mint by mashing keys by tremon on Wednesday January 20, 2021 @05:11AM (#25844609)
I don't believe the X system had/has a separate protocol for screen locking, or if it does, that any of the programs implement it. So xscreensaver is just another X client that happens to draw itself full-screen on top of all other apps and grab all user input.

From the point of view of the display manager, a screensaver/screenlocker crashing is just a simple app crash. There's nothing in the protocol to suggest that this is a security failure.

Re:Kids find a security flaw in Linux Mint by mashing keys by josephg on Wednesday January 20, 2021 @05:22AM (#25844678)
You don't need special X support for having a lightweight process monitor.

I'm imagining 2 processes:

1. Process monitor shows a fullscreen black window. Launches xscreensaver --lock or something as a child process

2. Xscreensaver shows the lock screen over the top of the process monitor, with a password prompt

When the correct password is entered, xscreensaver signals to its parent process. Then both processes close gracefully.

If xscreensaver crashes without signalling, the process manager silently restarts xscreensaver.

None of that requires any changes to X. You'd just want to be sure xscreensaver is displayed on top of the process manager's black window.

Re:Kids find a security flaw in Linux Mint by mashing keys by buckminster on Wednesday January 20, 2021 @09:03AM (#25846534)
jwz wrote a document explaining why this is hard. (Note that this link may result in an unsavoury redirect if you click on it from here. You can, e.g. copy and paste it to avoid this.)

https://www.jwz.org/xscreensaver/toolkits.html

Re:Kids find a security flaw in Linux Mint by mashing keys by tremon on Wednesday January 20, 2021 @11:44AM (#25848578)
From the point of view of the display manager

Argh. That would be the window manager, of course.

Re:Kids find a security flaw in Linux Mint by mashing keys by tux on Wednesday January 20, 2021 @05:51AM (#25844876)
xscreensaver + light-locker should be okay, there is no virtual keyboard.

There is also xsecurelock [1] by Google.

[1] https://github.com/google/xsecurelock

Re:Kids find a security flaw in Linux Mint by mashing keys by josefx on Wednesday January 20, 2021 @04:53AM (#25844500)
> and re-launch it if it crashes without first signalling that the desktop has been unlocked.

Might be better to just exit the session or load a minimalistic replacement lock program (like the original xscreensaver) to avoid an infinite crash loop.

Re:Kids find a security flaw in Linux Mint by mashing keys by josephg on Wednesday January 20, 2021 @05:17AM (#25844643)
Maybe! An infinite crash loop is also usually better than a security vulnerability, so I think it would be a win even without that.

Also this bug (and probably most other bugs xscreensaver has had over the years) wouldn't result in an infinite crash loop anyway.

Re:Kids find a security flaw in Linux Mint by mashing keys by chaganated on Wednesday January 20, 2021 @08:32AM (#25846196)
I believe that's how JWZ's XScreenSaver works, but every distro decided to re-invent the wheel there for whatever reason, then blame it all on X11 when it inevitably fails.
Re:Kids find a security flaw in Linux Mint by mashing keys by bionade24 on Wednesday January 20, 2021 @04:23AM (#25844337)
Because X11 is such a joke. The problem is solved by wlroots and layer-shell, other Wayland compositors probably have similar things. Swaylock works 100%ly reliable until now (For me). I had problems with every other X11 screenlocker I used in the past. My unusual setup with a docking station and two monitors on it often caused crazy bugs.

Edit: For me stuff

Re:Kids find a security flaw in Linux Mint by mashing keys by PurpleFoxy on Wednesday January 20, 2021 @04:33AM (#25844392)
It seems like most of the complaints I see about distros have actually been solved problems for years but held back by poor distro defaults.

I have been recommending fedora to people for a while because their defaults are far more modern and sane rather than clinging on to python 2 and X11

Re:Kids find a security flaw in Linux Mint by mashing keys by josefx on Wednesday January 20, 2021 @04:58AM (#25844530)
Other commenters link to similar issues with Wayland screen lockers. So I am not sure how the current shiny fixes things.

> python 2

In contrast to Wayland that can be installed in parallel to python 3. So the only reason to remove it is if you enjoy breaking working software.

Re:Kids find a security flaw in Linux Mint by mashing keys by seba_dos1 on Wednesday January 20, 2021 @06:11AM (#25845001)
The difference is that with Wayland there are no design issues that prevent you from implementing it reliably and securely; if it's broken it's an implementation problem that can be fixed.

Also:

> In contrast to Wayland

I don't think Wayland is what you think it is.

Re:Kids find a security flaw in Linux Mint by mashing keys by canofbars on Wednesday January 20, 2021 @04:59AM (#25844546)
Its not that they still had python 2, its that the binary "python" referred to python 2 on ubuntu (it might even still be like this) while other distros had it pointed to python 3.
Re:Kids find a security flaw in Linux Mint by mashing keys by josefx on Wednesday January 20, 2021 @05:17AM (#25844645)
Given that python versions are incompatible by design you should probably explicitly refer to the version your code supports. At least that is my takeaway from this mess.
Re:Kids find a security flaw in Linux Mint by mashing keys by stretchcat on Wednesday January 20, 2021 @05:41AM (#25844812)
This whole situation is a bad trap for novices, given how many tutorials, class slides, etc ask students to copy/paste various invocations of pip and python that may or may not work verbatim on their distro.
Re:Kids find a security flaw in Linux Mint by mashing keys by moistbar on Wednesday January 20, 2021 @04:22PM (#25852159)
Breaking stuff is the first step towards learning to fix stuff.
Re:Kids find a security flaw in Linux Mint by mashing keys by eznzt on Wednesday January 20, 2021 @08:27AM (#25846140)
Re:Kids find a security flaw in Linux Mint by mashing keys by bionade24 on Wednesday January 20, 2021 @04:43AM (#25844445)
But then you are breaking enterprise stuff !!!1!11!
Re:Kids find a security flaw in Linux Mint by mashing keys by canofbars on Wednesday January 20, 2021 @04:58AM (#25844536)
My favourite moment was when fedora turned on CGroups v2 after every distro waited years for docker to update to it. Docker was broken on fedora until you manually turned v1 back on but then docker suddenly upgraded to support v2.
Re:Kids find a security flaw in Linux Mint by mashing keys by Munksgaard on Wednesday January 20, 2021 @04:32AM (#25844385)
What's your take on the issues listed by formerly_proven[0]?

0: https://news.ycombinator.com/item?id=25844338

Re:Kids find a security flaw in Linux Mint by mashing keys by bionade24 on Wednesday January 20, 2021 @04:39AM (#25844426)
I'll edit it to (for me). With working on an X11 desktop everyday, it felt like everyone has at least once experienced such an issue.

To be fair to swaylock, they actually fixed some of those issues, in contrast to kscreenlocker which are just ignoring most edge-case bugs, because it's nearly impossible to fix them.

Re:Kids find a security flaw in Linux Mint by mashing keys by Androider on Wednesday January 20, 2021 @12:13PM (#25848947)
It's still a fundamentally flawed design, because the system fails open when the locker crashes. So it seems Sway / Wayland actually didn't learn anything in this area, and suffers from exactly the same problem as X11 when it comes to the lockscreen.
Re:Kids find a security flaw in Linux Mint by mashing keys by boblivion on Wednesday January 20, 2021 @04:34AM (#25844397)
Re:Kids find a security flaw in Linux Mint by mashing keys by Tsiklon on Wednesday January 20, 2021 @04:40AM (#25844429)
Judging by the redirect to the image macro of a testicle in an egg cup, specifically calling out HN, I think we can assume the author of that article does not appreciate links to his website from HN
Re:Kids find a security flaw in Linux Mint by mashing keys by GekkePrutser on Wednesday January 20, 2021 @08:18AM (#25846042)
So what. This is how the web works. If you don't want people linking to you, don't have a website. He puts this blog out there for people to read, is it so weird that tech sites like HN would want to link to it?

And really if you're being DDoSed by a small thing like HN comment links you really have to up your game :) Wait till you get featured on reddit (previously called slashdotting when slashdot was still a big thing).

Re:Kids find a security flaw in Linux Mint by mashing keys by throwanem on Wednesday January 20, 2021 @08:44AM (#25846324)
He doesn't think he's getting DDoSed from here. He doesn't respect anyone who comes from here.

Nor should he, not least because the redirect reliably results in ~90% of comments in any thread where jwz is mentioned being about the testicle in the eggcup rather than anything substantial.

Re:Kids find a security flaw in Linux Mint by mashing keys by GekkePrutser on Wednesday January 20, 2021 @09:09AM (#25846584)
But he refers to DDoS specifically in his eggcup image :)

PS: I have no idea what he means by "finance-obsessed"? I think the community at HN is tech-obsessed which is what I like about it. But finance? This is not yahoo finance or wherever all the finance guys hang out.

It sounds more like he had a clash with someone specific on a finance-related issue and bases his view of the HN community on that. The eggcup is a bit of an immature way to deal with this IMO. Especially as he has good points to make about X11 security, and this undermines them.

Re:Kids find a security flaw in Linux Mint by mashing keys by seabird on Wednesday January 20, 2021 @10:04AM (#25847206)
"Finance obsessed" is a pretty accurate description of what's going on here. A huge number of people on this site have trouble understanding that there's a world outside of the Bay Area where rent isn't $3000+ a month, and that its possible run a company without involving venture capital and ballooning to multi-million dollar revenues in less than five years. Even the tech discussion here revolves around this stuff -- almost every thread has some mention of "scaling" even if what's being discussed is a niche product that will have a customer base of a few thousand people over its entire life.

I like this site a lot, but I have a lot of patience when it comes to deciphering what is being affected by the Software Hub City Reality Distortion Bubble. Some people don't, hence the eggcup testicle, and people that think something like that undermines the technical argument aren't thinking clearly enough to even debate the technical point with anyway.

Re:Kids find a security flaw in Linux Mint by mashing keys by throwanem on Wednesday January 20, 2021 @09:41AM (#25846941)
Venture capital is finance. So is cryptocurrency.

I don't know what prompted the redirect; it predates my awareness of Hacker News. I could guess, but why bother? The man has a nightclub to run, and I'm sure that's plenty all by itself to fill his days.

Re:Kids find a security flaw in Linux Mint by mashing keys by kowlo on Wednesday January 20, 2021 @04:48AM (#25844473)
I clicked the link specifically seeking out this testicle in an egg cup, however, all I got was an article on XScreenSaver.

How do I get the testicle in an egg cup?

Re:Kids find a security flaw in Linux Mint by mashing keys by ohgodplsno on Wednesday January 20, 2021 @04:51AM (#25844492)
Make sure your browser sends in the Referer header.

Otherwise, this is the image that gets displayed:

NSFW. This is a testicle in an egg cup.

https://cdn.jwz.org/images/2016/hn.png

Re:Kids find a security flaw in Linux Mint by mashing keys by kowlo on Wednesday January 20, 2021 @04:58AM (#25844534)
Thank you! I'm using plain Safari with no extensions.

An interesting website and blog, I like it! I wonder what their problem with HN is, although I don't mind being a testicle!

Re:Kids find a security flaw in Linux Mint by mashing keys by saagarjha on Wednesday January 20, 2021 @05:20AM (#25844661)
Safari doesn't do referrers for what I assume is privacy reasons.
Re:Kids find a security flaw in Linux Mint by mashing keys by angled on Wednesday January 20, 2021 @07:00AM (#25845367)
Jamie wrote xscreensaver...
Re:Kids find a security flaw in Linux Mint by mashing keys by mici on Wednesday January 20, 2021 @04:37AM (#25844413)
This link does not show what you think it will show (pretty much NSFW).

The thread was linked below (or above, to this same parent), or see: https://web.archive.org/web/20210116101222/https://www.jwz.o...

Re:Kids find a security flaw in Linux Mint by mashing keys by gambiting on Wednesday January 20, 2021 @04:38AM (#25844417)
Uhm, this link doesn't lead where you think it does. Or the owner of the website is specifically redirecting HN traffic.
Re:Kids find a security flaw in Linux Mint by mashing keys by cinntaile on Wednesday January 20, 2021 @04:52AM (#25844499)
He's specifically redirecting HN traffic, if you copy the link you won't have any issues.
Re:Kids find a security flaw in Linux Mint by mashing keys by ketzu on Wednesday January 20, 2021 @04:50AM (#25844484)
They are, if you copy paste the link you can read the article.
Re:Kids find a security flaw in Linux Mint by mashing keys by smolder on Wednesday January 20, 2021 @07:40AM (#25845727)
I don't dispute the bad design, but FYI, there was also a very recent exploit for accessing bitlocker drives on Windows without login credentials, making use of accessibility features on the lockscreen.
Re:Kids find a security flaw in Linux Mint by mashing keys by Illniyar on Wednesday January 20, 2021 @05:32AM (#25844749)
This happens to me regularly with macOS too, so perhaps it's harder then you imagine.
Re:Kids find a security flaw in Linux Mint by mashing keys by speedgoose on Wednesday January 20, 2021 @05:35AM (#25844771)
Never happened to me on Windows, so it shouldn't be that hard.
Re:Kids find a security flaw in Linux Mint by mashing keys by joshuaissac on Wednesday January 20, 2021 @08:51AM (#25846399)
It happens to me on Windows 10 if I close the laptop lid to lock the desktop and send it to sleep.

When I open it again, the desktop is accessible for a few seconds (sometimes long enough to launch programs) before the lock screen activates and I have to input my password. The workaround I use is to manually lock with Win+L before closing the lid.

Re:Kids find a security flaw in Linux Mint by mashing keys by passivate on Wednesday January 20, 2021 @12:37PM (#25849291)
Would you mind posting a video? I have never seen this occurring in any version of Windows.
Re:Kids find a security flaw in Linux Mint by mashing keys by joshuaissac on Friday January 22, 2021 @07:42AM (#25871186)
I tried a few times but it cannot be reliably reproduced. It successfully locked every time I tried today.
Re:Kids find a security flaw in Linux Mint by mashing keys by mmis1000 on Wednesday January 20, 2021 @01:04PM (#25849665)
Windows have multiple desktop sessions(the normal user session, and the safe desktop). Even if you ever able to crash the one that host lock screen without bsod. You still won't be able to go back to the normal desktop.
Re:Kids find a security flaw in Linux Mint by mashing keys by SamBam on Wednesday January 20, 2021 @08:48AM (#25846358)
Yup. On my 10.15.7 this happens frequently. Often if I open up the laptop I can see the current contents of the screen for a good 5-8 seconds before the lock screen shows.

I don't think I could interact with the screen in any way, but I could certainly take a picture of it, if I had any private information on the screen.

Re:Kids find a security flaw in Linux Mint by mashing keys by sbarre on Wednesday January 20, 2021 @07:23AM (#25845584)
Yep, also happens to me on my macOS 10.15 iMac..

It will go to sleep, then when I wake it up, I get a flash of my desktop before the lock screen shows..

Too fast to write anything down by hand, but you could certainly point a 60fps camera at it and get something I'm sure.

Re:Kids find a security flaw in Linux Mint by mashing keys by pojntfx on Wednesday January 20, 2021 @04:48AM (#25844472)
X11 problem. Wayland fixes that and is the default on Fedora etc. as of 2021.
Re:Kids find a security flaw in Linux Mint by mashing keys by krick on Wednesday January 20, 2021 @04:50AM (#25844485)
Oh, so Wayland is finally ready to replace X11?
Re:Kids find a security flaw in Linux Mint by mashing keys by canofbars on Wednesday January 20, 2021 @05:03AM (#25844571)
Whether wayland is ready for you basically comes down to 2 questions:

* Do you use a nvidia GPU * Do you need to screen share from electron or other x11 only applications (MS teams, etc)

Its ready if you said no to both of those.

Re:Kids find a security flaw in Linux Mint by mashing keys by wilsonthewhale on Wednesday January 20, 2021 @11:01AM (#25847983)
I tried plasma-wayland on Arch a couple days ago.

Log in, open firefox. Minimize the window, and the entire machine freezes. This is on an AMD GPU as well.

Every time I try Wayland, whether it be sway on my laptop or plasma on my desktop, I run into snags that did not exist in X. So back to X I go.

I'll switch to Wayland when it's ready "for real, actually, promise", and not a moment before. Maybe when Debian Stable switches to it by default.

Re:Kids find a security flaw in Linux Mint by mashing keys by cycloptic on Wednesday January 20, 2021 @12:36PM (#25849273)
Unfortunately the KDE wayland session is still somewhat unstable. GNOME's wayland session is farther along in this regard.
Re:Kids find a security flaw in Linux Mint by mashing keys by bionade24 on Wednesday January 20, 2021 @05:13AM (#25844624)
You can use MS teams in Chromium or Firefox. The secret is that Browsers disable 3rd Party cookies per default for a year now or so and Microsoft has not reacted to it yet.
Re:Kids find a security flaw in Linux Mint by mashing keys by casept on Wednesday January 20, 2021 @04:07PM (#25852009)
The screensharing can be worked around by building a somewhat hacky solution (recording the desktop to an XWayland window and sharing that, for example by using https://gitlab.com/lelgenio/dotfiles/-/blob/master/dotfiles/...).
Re:Kids find a security flaw in Linux Mint by mashing keys by gspr on Wednesday January 20, 2021 @07:13AM (#25845500)
Screen sharing of X11 windows from a Firefox running on Wayland works fine for me under Sway. Sharing of other Wayland windows, or the whole screen, however, does not.
Re:Kids find a security flaw in Linux Mint by mashing keys by kevin_thibedeau on Wednesday January 20, 2021 @04:05PM (#25851980)
Won't it be ready when X11 apps can run inside without issue? X servers on Windows don't have these sort of problems.
Re:Kids find a security flaw in Linux Mint by mashing keys by xorcist on Wednesday January 20, 2021 @06:47AM (#25845266)
> Do you need to screen share from electron or other x11 only applications

Doesn't XWayland solve this?

Re:Kids find a security flaw in Linux Mint by mashing keys by vetinari on Wednesday January 20, 2021 @12:08PM (#25848887)
No, but Pipewire does, and it works under both X11 and Wayland.

Firefox supports Pipewire, Chrome has it behind experimental flag. Electron apps like Skype or Teams? Forget it.

Re:Kids find a security flaw in Linux Mint by mashing keys by YtvwlD on Wednesday January 20, 2021 @08:52AM (#25846411)
No.
Re:Kids find a security flaw in Linux Mint by mashing keys by 3np on Wednesday January 20, 2021 @04:27AM (#25844356)
slock has never surprised or disappointed me.
Re:Kids find a security flaw in Linux Mint by mashing keys by ekimekim on Wednesday January 20, 2021 @05:28AM (#25844720)
I've experienced an issue where the window blacking out the screen would get moved aside, it was something to do with plugging and unplugging monitors and somehow the screen contents would become visible. I probably couldn't reproduce it if I tried.

I wasn't too concerned about it since it still blocked all user input, but if you had sensitive info visible it could definitely be an issue.

Re:Kids find a security flaw in Linux Mint by mashing keys by f1refly on Wednesday January 20, 2021 @04:39AM (#25844424)
For x lockscreens this is solved by making sure the lock launches _before_ the system is suspended, I'm not sure how many distros do it like that though.
Re:Kids find a security flaw in Linux Mint by mashing keys by YtvwlD on Wednesday January 20, 2021 @08:53AM (#25846423)
This is the default on any modern distro (which has logind).
Re:Kids find a security flaw in Linux Mint by mashing keys by anthk on Wednesday January 20, 2021 @07:02AM (#25845385)
slock & pm-suspend.
Re:Kids find a security flaw in Linux Mint by mashing keys by monopoledance on Wednesday January 20, 2021 @11:49AM (#25848635)
In the past I also had some information leaks with an Nvidia discrete graphics card, which seemed to not clear its RAM or something. I think it even persisted over restarts or similar complete session terminations. So I assume, driver issues may play into this too.
Re:Kids find a security flaw in Linux Mint by mashing keys by Kelamir on Wednesday January 20, 2021 @05:13AM (#25844622)
I use i3lock, no such issues with it.
Re:Kids find a security flaw in Linux Mint by mashing keys by minxomat on Wednesday January 20, 2021 @04:38AM (#25844422)
Still happening on Linux mint for me.
Re:Kids find a security flaw in Linux Mint by mashing keys by globular-toast on Wednesday January 20, 2021 @04:25AM (#25844347)
I've seen Windows do that too. It's not just Linux.

My guess is that these lock screens are all bolted on afterwards rather than being in the design from the ground up.

Re:Kids find a security flaw in Linux Mint by mashing keys by AnIdiotOnTheNet on Wednesday January 20, 2021 @07:19AM (#25845546)
> I've seen Windows do that too.

Really? I have never seen this in Windows. Don't get me wrong, I've seen plenty of lock screen failures in Windows, usually in the form of it suddenly being unresponsive, just never anything that actually gave me access to the locked session again.

The closest I've seen is when using RDP, if the Window has been minimized or hidden or otherwise has had reason not to update its display, then locked due to timeout, it will briefly show the last image it rendered when reactivated before updating and showing the lock screen.

P.S.: As other users have pointed out, Windows does have some known lock screen bypasses using accessibility and help dialogs, but in regards to merely crashing the lock screen, I haven't seen it behave in an insecure way.

Re:Kids find a security flaw in Linux Mint by mashing keys by globular-toast on Wednesday January 20, 2021 @09:29AM (#25846802)
Yes, really. I don't use Windows myself, but I've seen it happen to others. As another commenter said, it's usually when the computer is coming out of "sleep" or something like that. Plenty of times I've seen a glimpse of the desktop that was long enough for me to get a vague idea of what they were doing before the lock screen takes over. If one was determined enough a photograph could easily be taken in that time.
Re:Kids find a security flaw in Linux Mint by mashing keys by robocat on Wednesday January 20, 2021 @05:01PM (#25852578)
My guess would be that the video buffer wasn’t cleared before suspending. If so, on resuming there is a race condition between painting the lock screen, and turning on the video hardware that will show the screen memory as it was when suspended.
Re:Kids find a security flaw in Linux Mint by mashing keys by AnIdiotOnTheNet on Wednesday January 20, 2021 @11:20AM (#25848229)
Huh, interesting. Probably explains why I haven't ever seen it: I never use sleep.
Re:Kids find a security flaw in Linux Mint by mashing keys by joefife on Wednesday January 20, 2021 @08:29AM (#25846165)
I see this maybe once a week. It only seems to happen when I'm waking the PC.
Re:Kids find a security flaw in Linux Mint by mashing keys by saagarjha on Wednesday January 20, 2021 @05:22AM (#25844673)
I've seen this happen on macOS too.
Re:Kids find a security flaw in Linux Mint by mashing keys by Jonnax on Wednesday January 20, 2021 @05:15AM (#25844633)
Windows 10 or some ancient version of Windows?
Re:Kids find a security flaw in Linux Mint by mashing keys by josefx on Wednesday January 20, 2021 @05:31AM (#25844743)
There had been recent bugs on windows 10 where you could navigate your way to a desktop session through the input assistance dialogs (mashing the shift button). They fixed it by removing one of the links in the UI. In older Windows I think it was a mix of help and printer dialogs.
Re:Kids find a security flaw in Linux Mint by mashing keys by anthk on Wednesday January 20, 2021 @06:59AM (#25845355)
Slock is good.