Das Video kommt von YouTube: erst beim Abspielen verbindet sich die Seite mit YouTube (Google).
What Is SQL Injection?
Das Wichtigste aus dem Video
Transkriptautomatisch erstellt · 16 Zeilen
- [Music] Welcome to the hack explaining video tutorial series. In this video, we will
- learn about SQL injection. One of the most common and dangerous methods hackers can use to attack your website. This is the vulnerable application we'll
- be trying to hack with a SQL injection attack. Here are the application logs. Watch what happens here when we interact with the vulnerable application.
- First, let's try guessing the password. Okay, so guessing the password didn't work. Let's try adding a quote character
- after the password. The application crashed with an unexpected error. What could that mean?
- The logs show a SQL syntax error. This indicates that the quote character messed something up in an unexpected way.
- This is what the application code looks like behind the scenes. Watch how the SQL code gets built as we enter the login details. Let's enter the password
- with a trailing quote character once more. The quote is inserted directly into the SQL string and terminates the query
- early. This is what caused the syntax error we saw in the logs. This behavior indicates that the application might be vulnerable to SQL
- injection. Now let's try a specifically crafted password.
- And we're in. We successfully gained access to the application without having to guess the password using SQL injection.
- The double dashes we entered caused the database to ignore the rest of the SQL statement, allowing us to be authenticated without having to supply
- the real password. SQL injection is one of the most prevalent vulnerabilities on the
- internet. If you only have time to protect yourself against one vulnerability, you should be checking for SQL injection in your codebase.
- Click on the link to learn how to protect yourself or move on to the next video.
- [Music]