• topperharlie@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    9 hours ago

    It always have annoyed me the whole modern “micro dependency” ecosystem, but I legit had no idea that so many big brands were using external JS on their sites… WTF dude?

    JavaScript developers are the literal worst, like how does it become culture to be so reckless? not a single developer goes like “ehhh this is sketchy as fuck, maybe we should do a bit of good engineering”??? like they really truly believe on the “do not reinvent the wheel” bullshit, as they proven many times over with nodejs supply chain malware for dependencies like “strip left”…

    sorry but my respect for JS people is on all times low (and it was super low to begin with)

    • AHemlocksLie@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 hours ago

      Oh, dude, EVERY site pulls in a bunch of external JS. Try installing noscript, might have to use Firefox, might not work with Chrome anymore, and just check some of your favorite sites. It’s extremely common for sites to pull in JS from 3-6 external sites, plus their own CDN if they have one. Store fronts tends to be the worst. Very easy to end up with over a dozen external URLs being hit for external JS.

  • Fijxu@programming.dev
    link
    fedilink
    English
    arrow-up
    37
    arrow-down
    1
    ·
    23 hours ago

    PROGRAMMERS STOP USING CDNS OR WHATEVER THE FUCK TO SERVE CSS, JS AND FONTS. THAT’S STUPID, JUST MAKE A COMPILE TIME MACRO OR WHATEVER TO DOWNLOAD AND PIN THE EXTERNAL ASSETS INTO THE SITE OMG IS NOT THAT HARD.

  • chunes@lemmy.world
    link
    fedilink
    English
    arrow-up
    44
    ·
    1 day ago

    It’s almost like Richard Stallman was onto something when he suggested that maybe you shouldn’t run arbitrary code in your web browser.

    • CheeseNoodle@lemmy.world
      link
      fedilink
      English
      arrow-up
      14
      ·
      24 hours ago

      This is the exact reason I embraced inconvenience and have all java script disabled by default, usually you only need to enable 2-3 scripts for the page to work out of what can be 20+ in total.

      • expletivedeleted@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 hours ago

        Shit, I won’t log into anything without a VM, or a bootable USB. I know, 2FA is an annoying bitch, but I am not going to trust any device or save any password.

        And passkeys? Those can fuck right off.

        My coworker has a USB drive that stores his passkeys. It is on his car keys. He went to take a piss, and I threw his keys into my bottom drawer.

        Then we discussed the security implications of passkeys for the entire afternoon. When he was ready to leave he finally noticed his keys, and his passkey drive, were missing.

        I joked, “Hang on, the image is almost done.” And tossed him his keys.

        "Dude, nothing beats physical access when it comes to hacking. You left the keys on your desk. What if I were to mug you on the street? Your car has a license plate, but your thumb drive doesn’t. I could have swapped the drive and you would have never noticed:

        “You wouldn’t have known I emptied your bank accounts until after you figured out how to finally log in and your money, lo and behold, is long gone.”

      • chunes@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        23 hours ago

        But how do you determine which ones? Are they usually the ones that live on the same domain as the site?

        • citizensongbird@lemmy.world
          link
          fedilink
          English
          arrow-up
          16
          ·
          23 hours ago

          Not OP but I do the same. Virtually all trackers and advertising are run from other sites, and there’s really just a handful, so you get to recognize them pretty quickly. When elements of a site don’t work it’s usually pretty obvious why. For example, if a video isn’t working, you’ll usually see a domain in the blocked list with the word “player” in there. Enable it and the video usually starts working. Domains with “cdn” in the name also break sites and need enabling. Trackers and ads often have the word “track” or “ad” in the domain (they’re not very imaginative, thank goodness!) so easy to recognize and leave blocked.

          • heartSagan5@lemmy.zip
            link
            fedilink
            English
            arrow-up
            5
            ·
            19 hours ago

            also “analytics” is one that I don’t enable because they can be blind for all I care.

        • AAA@feddit.org
          link
          fedilink
          English
          arrow-up
          10
          ·
          23 hours ago

          Trial and error, but you develop feeling for it over time. However a lot of sites definitely need more than 2-3 sources enabled, and they rarely live on the same domain.

          I also disable everything by default and enable manually, and it IS inconvenient. Anyone saying otherwise is lying.

        • CheeseNoodle@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          23 hours ago

          So it’s not 100% effective but usually the extra bullshit scripts can’t even load until the mandatory ones are running, so the first set of scripts get permission for that session and then any latecomers are shit out of luck. Sometimes the second set of scripts are allowed if there’s only a few of them and the page has embedded media as they are usually for that, but in those cases the bullshit scripts are usually in wave 3 and thus mostly still avoided.

    • nehal3m@lemmy.zip
      link
      fedilink
      English
      arrow-up
      5
      ·
      23 hours ago

      I’m contemplating using a computer for work exclusively, and going back to analog calendars, paper files and photos. I’m so tired.

      • 3laws@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        16 hours ago

        Keep your WebDAV services offline, there’s fantastic mobile apps to interface with your selfhosted stuff.

        I think a ESP32 is capable enough to just store ICS and service them to your calendar app with HTTPS.

      • trash@leminal.space
        link
        fedilink
        English
        arrow-up
        1
        ·
        18 hours ago

        Like in Parks and Rec when Tommy is banned from technology. Lol.
        But seriously, its getting fucking grim out here.

  • Zarobi@aussie.zone
    link
    fedilink
    English
    arrow-up
    37
    ·
    1 day ago

    A decent content security policy (CSP) would have stopped this in it’s tracks. The fact that none of these brands cares enough about security or their customers to even have the most basic protections in place is abhorrent

    Here’s a funny trick: if you open Google Chrome and use Lighthouse on Google’s own websites (YouTube, Gmail, etc), they fail their own best practices tests. I wish I were kidding

    • barnacles@lemmy.zip
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      8 hours ago

      No exploits in the wild, though - it’s possible the severity is overstated and people do have mitigations

      I am in the wrong thread, ignore my existence

      • Zarobi@aussie.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 hours ago

        What do you mean? The article literally has a section called “money stolen so far” lol

        • barnacles@lemmy.zip
          link
          fedilink
          English
          arrow-up
          2
          ·
          8 hours ago

          I was so sure I clicked on an article about the java se vuln, sorry mate - confused as I read an article about it from lemmy, I can only assume it was a post above or something!

          Disregard my comment, idk who down voted you lmao

    • Tehhund@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      23 hours ago

      This is an area I don’t know much about: how would CSP have helped in this case?

      • Zarobi@aussie.zone
        link
        fedilink
        English
        arrow-up
        11
        ·
        23 hours ago

        It is a set of rules for the website, outlining what domains are allowed to do various activities on the page after loading. For example: you can configure it to prevent inline <script> tags, only allow xyz domains to load scripts, and only allow network requests to xyz hosts. This configuration would prevent this from doing anything at all - there would just be errors in the console when the malware attempts to create the malicious script tags.

        Most websites don’t bother because it’s mildly inconvenient for the developer to have to whitelist things all the time, and many js libraries are poorly written and will fail to work with this configuration. For example many advertising and tracking libraries (including the one from the article) specifically tell people to enable “unsafe-inline” and “unsafe-eval”. Like it literally has unsafe in the name lol

  • howdy@lemmy.ml
    link
    fedilink
    English
    arrow-up
    64
    ·
    edit-2
    2 days ago

    why the fuck are these products named cringely or fartly

  • dan1101@lemmy.world
    link
    fedilink
    English
    arrow-up
    74
    ·
    2 days ago

    I wonder if we are seeing the beginning of a large wave of AI-assisted attacks that let a lot of people run exploits that don’t really know how to. The internet may be in turmoil for some time.

      • nomy@lemmy.zip
        link
        fedilink
        English
        arrow-up
        3
        ·
        17 hours ago

        Skids that don’t sleep and have an encyclopedic knowledge of past exploits.

    • farmgineer@nord.pub
      link
      fedilink
      English
      arrow-up
      48
      ·
      1 day ago

      Here in Japan, I’m getting notices that my data was leaked by some service I use several times a week for the last few weeks. This is partially because services ask for way more data than they really need and Japan not taking security seriously at all (like, until very recently, plaintext passwords 6-8 chars, no special chars, etc.). I’m not even exaggerating: a retailer I order baking supplies from, a huge chain, got hacked today; I had another notification yesterday from Nitori, one of the largest home shops in Japan; and I’ve had many more over the last weeks.

      • WFH@lemmy.zip
        link
        fedilink
        English
        arrow-up
        6
        ·
        24 hours ago

        Oh yeah Japan is security gore. I once ordered a woodblock print for a gift. The very official and legitimate eshop of the editor required me to send my fucking credit card number in fucking plaintext over fucking email. This was in the 2020s, not the early 90s.

      • FG_3479@lemmy.world
        link
        fedilink
        English
        arrow-up
        14
        ·
        1 day ago

        And multiple if them are “fixing” it just by blocking IP addresses without actually solving the underlying security flaws.

  • America@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    177
    ·
    2 days ago

    This is going to be a consistent headline going forward. Script kiddies have been handed the ultimate resource- an amoral, sorta-ish decent programmer on standby.

    • ggtdbz@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      1
      ·
      edit-2
      22 hours ago

      I just had, in a pinch, and with a bit of prodding, Google’s AI search_overview/search_chatbot/product_recommender shart out a 30 line odd Python script for a piece of software that I’m familiar with but whose scripting I’ve never really used. Just something to speed up a verifiable, but obnoxious and repetitive task. Maybe the second time I do something like this since the Talk To Transformer novelty wore off. And I am my workplace’s soapbox LLM hater, right. I like doing things the hard way and writing my own shit spaghetti code because I know how I write and I know how to dive back into it. Setting aside taking ownership of one’s own words when it comes to writing regular text to just talk about the “practical” use here.

      I cannot begin to fathom how powerful LLMs must feel to someone not technically inclined who doesn’t have an automatic revulsion to its output. I feel like many people are getting fatigue from machine generated images and just find it unpleasant, but Magic Text Box seems impossible to shake off for so many people around me.

      (The script is not beautiful and I want to change some bits of it either way when I have some spare time for the future. Not wanting to rewrite it wholesale does feel like I’m giving into something I don’t believe in to be frank)

      • Seralth@piefed.seralth.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        11 hours ago

        If you never look at the code or understand the code you can never be revolted enough by it to want to fix it or do better.

        If you write your own shit code you have to look at it. And thus you want to improve because dear God look at that mess!

    • Skullgrid@lemmy.world
      link
      fedilink
      English
      arrow-up
      111
      ·
      2 days ago

      an amoral, sorta-ish decent programmer

      Hey, it’s not amoral! It can’t draw boobs unless you’re paying for the special gooner package!

    • blargh513@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      16
      ·
      2 days ago

      My last boss, ciso, wrote the dumbest fucking email I have ever viewed. He basically told the CIO that ai threats were real and the best course of action was to upgrade some identity systems instead of investing in abities to prevent or detect ai threats.

      A few months later, CIO asks what we are doing about ai threats. The uncomfortable silence.of his dumb ass was delicious as I had been advocating to invest in ai since I started.

      Joke is on me though, he fired me not long ago. I will happily watch as they get turned inside out by their own asshole.

      • Carl@anarchist.nexus
        link
        fedilink
        English
        arrow-up
        39
        ·
        2 days ago

        This is either a masterful piece of satire, or the dumbest lack of introspection I’ve seen in a long time. And Poe’s Law is in full effect, so I genuinely can’t tell which one it is.

  • DeathByDenim@lemmy.world
    link
    fedilink
    English
    arrow-up
    44
    ·
    2 days ago

    I was going to say that I was happy I have the JavaScript Firewall extension for Firefox installed, but then I saw that this stuff was also served from 1st party domains in some cases… Can’t win!

    • GMac@feddit.org
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 day ago

      Same thoughts here. Run noscript but blocking all first party js makes so much unusable.

      • DeathByDenim@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        18 hours ago

        Interestingly, blocking first party js on some websites actually makes them more usable! Like the ones that load the site and then blank it with the claim “your ad blocker is causing our website to break” even though they themselves break it deliberately.

        • GMac@feddit.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          35 minutes ago

          Yes. Blocking all is my default position and it is satisfying when it fixes sites.

    • shalafi@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      24 hours ago

      That was all on Chase. Other banks involved in transactions with them saw delays.

  • Jiral@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    1 day ago

    Is only the thumbnail slop or the rest of that obscure link as well?

    • boonhet@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 day ago

      It reads fairly human to me. The blog seems to be marketing for a javascript security SaaS and their home page definitely looks like it has had some of its copy written by LLMs though.

  • Pratai@piefed.ca
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    1
    ·
    2 days ago

    Now that it takes no knowledge and little skill for the kids to hack shit. This is going to be happening a lot more often.