A Basil Plant to Cybersecurity - Memes@lemmy.world • 1 year agoYour password must also not contain the following character combinations: script, select, insert, update, delete, drop, --, ', /*, */.lemmy.worldimagemessage-square51fedilinkarrow-up1323arrow-down16
arrow-up1317arrow-down1imageYour password must also not contain the following character combinations: script, select, insert, update, delete, drop, --, ', /*, */.lemmy.worldA Basil Plant to Cybersecurity - Memes@lemmy.world • 1 year agomessage-square51fedilink
minus-square@zqwzzle@lemmy.calinkfedilinkEnglish30•1 year agoSo they’re not hashing or salting the passwords too. Cool…
minus-squareSemi-Hemi-Demigodlinkfedilink9•1 year agoThey might be doing it in the DB query, but they’re definitely not sanitized beforehand.
minus-square@CrayonRosary@lemmy.worldlinkfedilink1•1 year agoSanitization has nothing to do with salting and hashing.
minus-squareSemi-Hemi-Demigodlinkfedilink1•1 year agoIf you do the salting and hashing in a database query you need to sanitize the input before you use it or you open yourself to SQL injection. Databases have salting and hashing functions, after all
minus-square@Rednax@lemmy.worldlinkfedilink5•1 year agoWhich makes me want to try and insert a password of a few megabytes worth of text. Should be fine, since there is no max lenght defined, right?
minus-square@CrayonRosary@lemmy.worldlinkfedilink1•edit-21 year agoThat’s not how it works. The code always has access to the submitted plaintext password. It’s salted and hashed after it’s verified for complexity. The complexity verification can even be done in JavaScript.
So they’re not hashing or salting the passwords too. Cool…
They might be doing it in the DB query, but they’re definitely not sanitized beforehand.
Sanitization has nothing to do with salting and hashing.
If you do the salting and hashing in a database query you need to sanitize the input before you use it or you open yourself to SQL injection.
Databases have salting and hashing functions, after all
Which makes me want to try and insert a password of a few megabytes worth of text. Should be fine, since there is no max lenght defined, right?
That’s not how it works. The code always has access to the submitted plaintext password. It’s salted and hashed after it’s verified for complexity. The complexity verification can even be done in JavaScript.