Basic Injection
30 points Easy

See if you can leak the whole database using what you know about SQL Injections. link

Don't know where to begin? Check out CTFlearn's SQL Injection Lab

Flag
Rating 4.61
5
4
3
2
1

Discussion

注意细节

0
Protected
0

' OR 1=1 # //CTFlearn{th4t_is_why_you_n33d_to_sanitiz3_inputs}

0
Protected
0
Protected
0
Protected
0

super simple great way to show real-world example of SQL injection

0

It does not work. where is the admin to access me launch the lab?!

0

Hello, I know it's been a few weeks and you probably figured it out, but a little hint is to view the source page, it should reveal a few names to try on the challenge :D

0

I can't launch the lab. it shows me this message <Unable to launch challenge. Contact an admin>

0

Why ' or 1=1 -- not work?

8

This will work ' or '1' = '1

2

spoiler alert

-2
Protected
-9

I would also want to know why ' OR 1 = 1; -- statement does not work, but ' OR '1' = '1 is working. This ' OR '1' = '1 is mentioned in The Lab. I think reading Wikipedia SQL injection will help me to understand it. Also I like that comments supports markdown :)

0

You forgot to include the semicolon - it should read: ' OR 1 = 1; --. Also, keep in mind that in MySQL, comments must include a space after the double dash. See the "Comments" section in: https://portswigger.net/web-security/sql-injection/cheat-sheet

0