mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 02:56:10 +00:00
6040b60e86
nulFreeInput left a string as sent under any key containing "password". That covered the admin settings password_login and password_registration, which are flags: 'true\u0000' failed the lockout check as a disabled password login while the database stored 'true'. It also tested the raw key, so 'pass\u0000word' lost the NUL of the password it carried. The exemption is now HASHED_PASSWORD_KEYS, the fields TREK only ever hashes with bcrypt (password, current_password, new_password), matched exactly on the key without its NUL. A unit test reads every field of the shared schemas and the instance settings named like a password, passphrase or secret and fails until each is either in that list or decided against with its reason.