News for hackers. Stuff that matters.
Re:With Firefox on X11, any page can pastejack you anytime (... by lolinder on Saturday October 21, 2023 @03:09PM (#37969652)
> not something that blasts out your clipboard when you click in the wrong place and select something unintentionally

This isn't helped by the fact that the mainstream desktop OSes don't have proper clipboard managers bundled by default. Accidentally copying something isn't as big a deal when you have the most recent 200 items you've copied in an easily searchable widget.

Re:With Firefox on X11, any page can pastejack you anytime (... by charcircuit on Saturday October 21, 2023 @03:30PM (#37969828)
Windows has clipboard history
Re:With Firefox on X11, any page can pastejack you anytime (... by lolinder on Saturday October 21, 2023 @03:38PM (#37969891)
Oh, I missed that! I've been mostly on Linux since before Windows 10.
Re:With Firefox on X11, any page can pastejack you anytime (... by charcircuit on Saturday October 21, 2023 @04:29PM (#37970179)
FYI Window's clipbord history has better security than what desktop Linux has. For example desktop Linux currently has no way to copy an image and specify that the contents are sensitive and should not be added to the history.

Poor API design and the inability for APIs like the clipboard to evolve are part of the reason why desktop Linux's security keeps falling behind other operating systems.

Re:With Firefox on X11, any page can pastejack you anytime (... by arp242 on Saturday October 21, 2023 @09:40PM (#37972110)
How do you copy something without adding it to the clipboard history? I can't find how to do that?

Either way, I'm pretty sure it could be added if someone cared enough, e.g. by adding a new target.

It just seems to me that if someone is able to access your clipboard history you've lost already, and the entire feature seems more of a convenience thing than a security thing.

Re:With Firefox on X11, any page can pastejack you anytime (... by charcircuit on Saturday October 21, 2023 @10:19PM (#37972274)
>How do you copy something without adding it to the clipboard history?

Win32: https://learn.microsoft.com/en-us/windows/win32/dataxchg/cli...

WinRT: https://learn.microsoft.com/en-us/uwp/api/windows.applicatio...

>Either way, I'm pretty sure it could be added if someone cared enough

That's the problem. Ironically, not enough people care about improving the security and privacy of desktop Linux.

>It just seems to me that if someone is able to access your clipboard history you've lost already

Do you not see how it could be problematic if sensitive things were logged and persisted to disk?

Re:With Firefox on X11, any page can pastejack you anytime (... by arp242 on Saturday October 21, 2023 @10:52PM (#37972426)
Most clipboard managers don't store to disk but in memory, AFAIK anyway.

And your link just shows some programmatic access? How do I access that as a user when I press Ctrl+C? I suppose it's "useful" for things like password managers, but since anything can read the clipboard anyway it's a very limited protection. If something is so sensitive that you're using that special programmatic way of storing it then you should be using the clipboard but an actually secure mechanism.