Security - Datamatiker 4. semester
Project maintained by DatSecDK
Hosted on GitHub Pages — Theme by mattgraham
← Back
Week-04 A1 SQL injection
The plan for this week is to take a closer look at SQL injection,
how it is prevented,
and some advice for securing the rest of the DB in case of penetration.
Learning Goals
After this week you are able to:
- Perform an attack on an unprotected database
- Prevent attacks on your database
- Explain the general principle behind injection attacks
What to Read
Slides: 04-A1 SQL injection.pdf
Exercise
Implement the placeholders from PlaceHolders.java
in the dk.cphbusiness.soft.sqlinject
package.
Exam questions
- Give an example of a SQL inject which will give all users in a user table
- Explain how prepared statements prevent SQL injection
- Explain how to use placeholders in cases where prepared statements cannot do the job
- Explain how logging could be used to monitor injection attempts