• yeehaw@lemmy.ca
    link
    fedilink
    arrow-up
    5
    ·
    10 days ago

    I just don’t get this. Is it lazy programming? I don’t really program anymore and was never much if one, but I though at least some languages ad a concept of taking an input literally allowing special characters without injection or something. Forget what it’s called…

    • purplemonkeymad@programming.dev
      link
      fedilink
      arrow-up
      7
      ·
      10 days ago

      Extremely, the password should not even appear anywhere in a comparison or query. It should be hashed with a salt before being checked. What is even worse is this suggests that they are also using a SQL query via string substitution instead of it being parameterised. Considered a no no with user input.