Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

TODO 2 : write a prepared statement for this query with parameters for the two strings passed in . Comment out the query that used

TODO2: write a prepared statement for this query with parameters for the two
strings passed in. Comment out the query that used simple concatenation. Then, in
TODO3, write the execution statement to execute the prepared statement, commenting
out the existing statement (we recommend commenting out instead of deleting).
After saving and launching the app, try option 1 with the SQL injection attack and see if
it successfully protected the data from retrieval.
Query2: TODO4: write a prepared statement for this query with parameters for the two
strings passed in. Comment out the query that used simple concatenation. Then, in
TODO5, write the execution statement to execute the prepared statement, commenting
out the existing statement (we recommend commenting out instead of deleting).
Check that the patient table currently exists in the test_sql_inj database and re-establish
it if necessary.
After saving and launching the app, try option 2 with the SQL injection attack and see if
it successfully protected the patient table from deletion in the database.
Submit your DBConnector.py file to gradescope when you have verified that your
prepared statements are working.TODO2: write a prepared statement for this query with parameters for the two
strings passed in. Comment out the query that used simple concatenation. Then, in
TODO3, write the execution statement to execute the prepared statement, commenting
out the existing statement (we recommend commenting out instead of deleting).
After saving and launching the app, try option 1 with the SQL injection attack and see if
it successfully protected the data from retrieval.
Query2: TODO4: write a prepared statement for this query with parameters for the two
strings passed in. Comment out the query that used simple concatenation. Then, in
TODO5, write the execution statement to execute the prepared statement, commenting
out the existing statement (we recommend commenting out instead of deleting).
Check that the patient table currently exists in the test_sql_inj database and re-establish
it if necessary.
After saving and launching the app, try option 2 with the SQL injection attack and see if
it successfully protected the patient table from deletion in the database.
Submit your DBConnector.py file to gradescope when you have verified that your
prepared statements are working.

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

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

What is meant by the effective rate of interest?

Answered: 1 week ago