Live data from Hacker News

With Firefox on X11, any page can pastejack you anytime (middle button paste)

openwall.com

1–10 of 195 posts

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#3
post #2

Who pastes something and executes it without a second look?

thats kind of unfair, when you select something and you are confident what is selected, pasting with middle button and hitting enter can be milliseconds apart

you already decided to hit enter while you are selection something, could be just a bit above your current cursor in the terminal

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#7
post #6

Earlier quoted context omitted.

Have you never pasted a new line?

There are terminals that have protections against that AFAIK.

`set enable-bracketed-paste on` in .inputrc (at least compatible with bash, terminal also needs support)

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#8
post #2

Who pastes something and executes it without a second look?

People on a hurry and the uninformed that still haven't heard that you can end up with malicious stuff on the clipboard if you haven't careful e.g. someone who inspects the text "systemctl restart cups" on the webpage, concludes it's what they want to run, then copies it straight to the terminal without noticing the web page was hiding malicious code in invisible text.

Re: With Firefox on X11, any page can pastejack you anytime (middle button paste)

#10
post #9

You should always paste into an editor first, just copying any text from a webpage is a risk. There are even examples using terminal escape codes, to hide what happened. https://www.reddit.com/r/privacy/comments/rv964x/comment/hr4...

Adding to the demo here is one using CSS [1]

[1] - https://thejh.net/misc/website-terminal-copy-paste

Post reply on HN