Course Solutions Uncategorized (Solved) : Asked Improve Security Cgi Handler Script Used Send Comments Web Master Server Current Scr Q31188699 . . . .

(Solved) : Asked Improve Security Cgi Handler Script Used Send Comments Web Master Server Current Scr Q31188699 . . . .

 

You are asked to improve the security in the CGI handler scriptused to send comments to the Web master of your server. The currentscript in use is shown in Figure 11.10a, with the associated formshown in Figure 11.10b. Identify some security deficiencies presentin this script. Detail what steps are needed to correct them, anddesign an improved version of this script.

Figure 11.10a:

#! /usr/bin/perl

# comment.cgi – send comment to webmaster

# specify recipient of comment email

$to = “webmaster”;

use CGI;

use CGI::Carp qw(fatalsToBrowser);

$q = new CGI; #           create query object

# display HTML header

print $q->header,

$q->start_html(‘Comment Sent’),

$q->h1(‘Comment Sent’)

# retrieve form field values and send comment to webmaster

$subject =

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post