• Cousin Mose@lemmy.hogru.ch
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    I’ve been doing web development for something like 20 years now and I just can’t imagine how shitty your backend is if this is an issue.

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      21 hours ago

      As a backbend dev, I blame DBAs. We were forced to support CSV imports from out support team so they could fix data issues on their own, and now we have some wonky data in prod…

      • Cousin Mose@lemmy.hogru.ch
        link
        fedilink
        English
        arrow-up
        0
        ·
        19 hours ago

        Yeah that’s a whole other can of worms. I see this a lot at work where people are asking for direct database credentials and cringe every time.

      • Cousin Mose@lemmy.hogru.ch
        link
        fedilink
        English
        arrow-up
        0
        ·
        20 hours ago

        Lately I’ve been dealing with tons of invalid byte sequences in MySQL dumps and it makes me question what the hell they’re allowing in there.

    • Dasus@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 days ago

      With LLM coding increasing, it might be going up. Idk am no pro, just worried.

      Tangential, but I find it hilarious how Gemini’s syntax fucks up all the time.

      I ask it to change my light called “CX2” to red. It complies, like usual, and it reads Okay, changing “CX2” to red., but what it says out loud is Okay, changing "CX two inches to red.

    • livingcoder@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 days ago

      It happened to a friend who wasn’t passing in the proper types into their stored procedures, all strings, and “null” (not case sensitive) conflicted with actual null values. Everything in the web interface were strings, and so was null.

      For some people it takes this mistake before they learn to always care about the data types you’re passing in.

    • timuchan@lemm.ee
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 days ago

      This was my thought as well, sanitize your inputs! Are they not quoting/casting to string before input?

        • Cocodapuf@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 day ago

          Unless you’re coding from scratch it’s hard to not do this with any modern framework.

          I think that word modern is doing a lot of heavy lifting there.

          A lot of systems simply aren’t modern. There’s always that mentality of “well, it’s been working for the last 12 years, let’s not mess with it now”, despite all the valid objections like "but it’s running on Windows2000” or “it’s a data beach waiting to happen”…

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

          A couple years ago I wanted to write a simple website with SQL injection vulnerability, so I could demonstrate sqlmap to someone

          It was surprisingly difficult (and every fiber in my body screamed)

        • limer@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 days ago

          Word press code, and plugins, do not sanitize out of the box. You have to call an additional function, each time, that is not provided automatically. Many home made plugins miss that; many popular plugins used to be home made ones

            • Atherel@lemmy.dbzer0.com
              link
              fedilink
              English
              arrow-up
              0
              ·
              edit-2
              2 days ago

              Let’s take a blog and slap a whole e-commerce system on it through a plugin and let it auto translate with another one, what could go wrong. wait why is everything so slow, oh i need additional plugins for caching and one more for functionality XYZ why is everything broken now?!?

              Edit: Sorry, my app had a hiccup and posted my comment several times

            • limer@lemmy.dbzer0.com
              link
              fedilink
              English
              arrow-up
              0
              ·
              2 days ago

              Yet here we are, it and the plugins handle too much of my daily traffic. It’s easy to dismiss the piss poor coding, but is done at our peril.

              Everyone of us has personal data stored in those God awful plugins, in their thousands of basic security holes