Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chapter 11, Problem 4P Bookmark OW Bookmark Show all steps. COND You are asked to improve the security in the CGI handler script used to

image text in transcribed

Chapter 11, Problem 4P Bookmark OW Bookmark Show all steps. COND You are asked to improve the security in the CGI handler script used to send comments to the Web master of your serverThe current script is use is shown in Figure with the associated form shown in Figure Identify some security deficiencies present in this script. Detail what steps are needed to correct them, and design an improved version of this script. Figure comment Form Handler Exercise #!/usr/bin/perl # comment.cgi - send comment to webmaster # specify recipient of comment email Stos webmaster ", use CGI; use CGI: Carp qw (atalOTOBrowser); $q = new CGI; create query object # display HTML header print $q-header $q-start_html ('Comment sent), Sq->hl ("Comment sent"); retrieve form field values and send comment to webmaster $subject = $q-param ("subject"); $from = $g->param("from"); $body = Sq-param ("body"); # generate and send comment email system ("export REPLYTO=\"$from\"; echo \";body\" I mail-s "$subject \" to"); # indicate to user that email was sent print "Thankyou for your comment on Soubject." print "This has been sent to Sto,"; # display HTML footer print $q-end_html; (a) Comment CGI script Send a Comment/headbody> subject of this comment: Your Email Address:

Please enter comments here:

area

/html>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

What is the environment we are trying to create?

Answered: 1 week ago

Question

How would we like to see ourselves?

Answered: 1 week ago