|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: CGI Change Password (LDAP)by tachyon (Chancellor) |
| on Dec 11, 2004 at 01:23 UTC ( #414035=note: print w/ replies, xml ) | Need Help?? |
|
Unless you run this over https it is insecure as the password goes over the wire in plaintext. You have a CGI object. It contains all the params. Why not just pass that to your validate and change functions? Typically I use the return null string if function succeeds or error string if it fails. This lets you avoid globals like your g_err_msg. Then the app logic goes:
I can't see how it might be exploited but is is usually wise to limit CGI user input to a selected range of characters. The null byte hack is one issue this attends to. cheers tachyon
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||