B
Bill
I am working on a package of perl CGI scripts, which are to be as
secure as practicable for stuff that is on a public server .
One of the scripts is an administrative script, which allows users (of
which there are two security level classes, with the higher level
class able to create users at the lower level) to be added or
modified.
In order to start the package going, at least one administrator
account must be created, or already exist, at installation time.
One way to do this is to have a line in the administrator script that
is modified to create an administrator, for example:
edit
my %admin; to be
my %admin = ( 'admin' => 'Mybig0leNastypassword' );
However, I am concerned that this exposes a plaintext admin account in
the CGI text, even though it would not be readable by regular HTML
access. Regular user passwords, as they are added, will be put in a
database as a SHA1 digest.
Does anyone know of a better way to do this in Perl? I'd rather not
have the security hole of a default admin account at time of startup.
secure as practicable for stuff that is on a public server .
One of the scripts is an administrative script, which allows users (of
which there are two security level classes, with the higher level
class able to create users at the lower level) to be added or
modified.
In order to start the package going, at least one administrator
account must be created, or already exist, at installation time.
One way to do this is to have a line in the administrator script that
is modified to create an administrator, for example:
edit
my %admin; to be
my %admin = ( 'admin' => 'Mybig0leNastypassword' );
However, I am concerned that this exposes a plaintext admin account in
the CGI text, even though it would not be readable by regular HTML
access. Regular user passwords, as they are added, will be put in a
database as a SHA1 digest.
Does anyone know of a better way to do this in Perl? I'd rather not
have the security hole of a default admin account at time of startup.