S
sekdab
Hello all.
Disclaimer, I am a Perl newbie. Though I know a good deal of shell,
and some PHP, Perl is, otherwise, new territory for me.
I've gone ahead and loaded the CGI.pm module and, as a test, am
creating a small password change screen. Everything was fine and I
had the page up and running in no time. I did this to focus a bit on
security, and was wondering what the best way would be to force limit
the characters entered to alphanumeric.
I.e. I want to prevent someone from using "tom ; cat /etc/passwd" as a
password because this data is being passed to a shell.
I've just started readingp on regular expressions and can probably
figure out a convoluted way to do this; just wanted some hints as to
how others have done this in the past.
Thanks for the help.
Tom
Disclaimer, I am a Perl newbie. Though I know a good deal of shell,
and some PHP, Perl is, otherwise, new territory for me.
I've gone ahead and loaded the CGI.pm module and, as a test, am
creating a small password change screen. Everything was fine and I
had the page up and running in no time. I did this to focus a bit on
security, and was wondering what the best way would be to force limit
the characters entered to alphanumeric.
I.e. I want to prevent someone from using "tom ; cat /etc/passwd" as a
password because this data is being passed to a shell.
I've just started readingp on regular expressions and can probably
figure out a convoluted way to do this; just wanted some hints as to
how others have done this in the past.
Thanks for the help.
Tom