• Kethal@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 months ago

    It seemed odd to me that a Web site could write to or read from the clipboard without the user approving it. That would be a pretty obvious security and privacy issue. From what I gather, on Chrome sites can write to the clipboard without approval, but they need approval to read. On Firefox and others any access requires permission. Thus this exploit seems limited to Chrome users.

    @SkaveRat pointed out that it doesn’t require permission, only interaction. So likely there’s a button that’s clicked that writes to the clipboard, and most browsers are susceptible to this.

    • SkaveRat@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 months ago

      not when there was a user intent like clicking a button.

      For example in this screenshot, it’s likely that there’s only the “verify I’m human” button first, you click it, the steps pop up, and at the same time the command ist copied into your clipboard

      • MeatsOfRage@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        2 months ago

        Exactly, copy requires a click but there’s no rule that the copy button has to look like anything particular

        • dan@upvote.au
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          2 months ago

          It doesn’t necessarily need a click - it can be triggered by a keypress too (eg at my workplace we have a few internal pages where you can press a keyboard shortcut to copy a shortened URL for the current page).

          It has to be something the browser considers a user interaction, meaning the user has expressed an intent to perform the action. That’s usually a button press or keypress.

      • lando55@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        2 months ago

        Why isn’t the default behavior for browsers to not allow access to the clipboard? Similar to how it prompts you for access to camera/microphone

        Edit: On a per-site basis, like if you use the Zoom website it asks you for access to the webcam, would something like this work for clipboard as well or would it break stuff?

  • BetaDoggo_@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    This is actually pretty smart because it switches the context of the action. Most intermediate users avoid clicking random executables by instinct but this is different enough that it doesn’t immediately trigger that association and response.

    • Kusimulkku@lemm.ee
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      2 months ago

      You’re probably sarcastic but

      paste this random line in the run prompt (or what’s it called) and run it

      sneaky

      Hmm

      • rhombus@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        It opens the run dialog, which I’m sure the vast majority of Windows users have never heard of. This would trick a lot of people who just trust whatever their computer asks them to do.

        • Kusimulkku@lemm.ee
          link
          fedilink
          English
          arrow-up
          0
          arrow-down
          1
          ·
          2 months ago

          It’s not sneaky, it’s just people are morons and fall for the simplest shit

          • JackbyDev@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 months ago

            Please show some empathy for those who are not as tech literate as you are. Elitism doesn’t look good on you, friend.

            • Kusimulkku@lemm.ee
              link
              fedilink
              English
              arrow-up
              0
              arrow-down
              1
              ·
              2 months ago

              Perhaps it would’ve been fairer to say that they’re morons when it comes to computers

              • Honytawk@lemmy.zip
                link
                fedilink
                English
                arrow-up
                1
                ·
                2 months ago

                Fairer to call at least 80% of people morons because they don’t know one specific computer feature that is mainly used just by IT people?

                Seems like the only moron here is you.

                • Kusimulkku@lemm.ee
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  arrow-down
                  1
                  ·
                  edit-2
                  2 months ago

                  Of course it’s fairer. Before it meant that they’re all around idiots. Now it just says they’re idiots when it comes to computers. There might be aspects they’re not idiots in, but if they’re running random commands, computers isn’t one of them.

                  Seems like the only moron here is you.

                  Not when it comes to computers but in some other things for sure

  • Tylerdurdon@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    So inventive these guys. If only we could harness that ingenuity for the common good instead, it would have a huge impact.

  • ghurab@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    This reminds of when I was 13 I used to tell my opponents in Warcraft 3 that pessing alt+q+q quickly reveals the map. It’s a shortcut for closing the game. Worked way to many times

    I do see this working