A developer is reviewing the following transaction logs from a web application: Username: John Doe Street name: Main St. Street number: <script>alert('test') </alert> Which of the following code snippets should the developer implement given the above transaction logs?
A) if ($input != strcmp($var1, "<>") ) {die() ;}
B) <form name ="form1" action="/submit.php" onsubmit="return validate() " action=POST>
C) $input=strip_tags(trim($_POST['var1']) ) ;
D) <html><form name="myform" action="www.server.com/php/submit.php action=GET"
Correct Answer:
Verified
Q229: A manufacturing company recently recovered from an
Q230: A network administrator is concerned about a
Q231: Following a recent outage, a systems administrator
Q232: A Chief Information Security Officer (CISO) needs
Q233: A security administrator is reviewing the following
Q235: A security analyst is classifying data based
Q236: The Chief Financial Officer (CFO) of a
Q237: A Chief Information Security Officer (CISO) is
Q238: A company is migrating systems from an
Q239: A security engineer is assessing a new
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents