-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add diagrams ex4 and 5, markdown format ex6 and 7
- Loading branch information
Showing
4 changed files
with
51 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
# Exercise 6 - SQL injection continued | ||
|
||
In this exercise, we will look at some more complicated examples of SQL injection. | ||
In this exercise, we will look at some more complicated examples of SQL injection. | ||
|
||
## 6.1 - Extract the user table schema | ||
|
||
:pencil2: Log out and log in using with the following username | ||
|
||
``` | ||
```sql | ||
' UNION ALL SELECT GROUP_CONCAT(sql) as id FROM sqlite_schema-- | ||
``` | ||
:pencil2: Inspect the source of the voting page. Do you see anything questionable? | ||
:pencil2: Inspect the source of the voting page. Do you see anything questionable? | ||
:pencil2: Look at the source code. Try to reason on how we are able to extract table schemas using SQL injection. | ||
:star: Bonus: Can you change the login query to execute some arbitrary SQL to steal information? | ||
## Get a users password | ||
The developers of this solution has not followed any good practices, and has stored the passwords as clear text! | ||
|
||
:pencil2: Try to use a similar technique as in the previous task to extract a users password. | ||
The developers of this solution has not followed any good practices, and has stored the passwords as clear text! | ||
:pencil2: Try to use a similar technique as in the previous task to extract a users password. | ||
### [Go to exercise 7 :arrow_right:](../exercise-7/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters