• toddestan@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 days ago

    It may not be completely crazy, depending on context. With something like a web app, if data is being sanitized in the client-side Javascript, someone malicious could absolutely comment that out (or otherwise bypass it).

    With that said, many consultant-types are either pretty clueless, or seem to feel like they need to come up with something no matter how ridiculous to justify the large sums of money they charged.

    • jj4211@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      4 days ago

      In this case, there was file a, which is the backend file responsible for intake and sanitation. Depending on what’s next, it might go on to file b or file c. He modified file a.

      His rationale was that every single backend file should do sanitation, because at some future point someone might make a different project and take file b and pair it with some other intake code that didn’t sanitize.

      I know all about client side being useless for meaningful security enforcement.

      • toddestan@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 days ago

        I have to say that is pretty dumb. I will agree the scenario isn’t completely implausible, but if someone who doesn’t know what they are doing is allowed to do something like that, they’re going to screw up other stuff too.