captcha - PHP client PIN security -
i'm developing system has functionality clients can view details of purchases/renewals/etc supplying pin "number".
a pin being used instead of login information because of type of clients we're targeting. pin printed on documents sent them.
the view shown when supply pin not reveal highly sensitive information such credit card etc, less sensitive 1 such product name, type, price, barcode, repairs etc.
the issue in question pin. opted using random 5 character pin (0-9, a-z a-z) - case sensitive. i'll removing homoglyphs ('i','1','l','0','o','rn','vv'), actual number of combinations lower.
i've got couple of questions this:
- is practice acceptable?
- should write lockout mechanism "ban" traffic ips large amount of failed attempts?*
- should write error checking system (similar luhn's algo in credit card numbers)?
- *should make use of captcha system?
as captcha , lockout - i'd go captcha, , delay 1) clients fail captcha, , 2) invalid logins: before checking, sleep 1 sec on 1st attempt, 2s on second, 4s third, 8s on subsequent. won't inconvenience normal users too much, slow down attacker significantly. no matter do, people will wrong - no need ban them outright.
the checksum - might useful 6th character detecting typing errors, not security.
as far password strength goes, weak password - wouldn't use only form of authorization stronger "sharing pictures of lolcats" - consider longer one, or clients might accidentaly access each other's data (and tend really upset when happens: "you mean see my data that?!").
Comments
Post a Comment