Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.23 KB

File metadata and controls

43 lines (29 loc) · 1.23 KB

picoCTF 2022: SQLiLite

Author: Mubarak Mikail

Web_Exploitation category Score: 300 Solved

Description

Can you login to this website?

You'll need to start an instance.

Hints

Hint 1 admin is the user you want to login as.

Summary

This challegne can be solved using a SQLinjection. To log in we use some username and password to see what happens.
The login fails and we get a look at the SQL query. Now we can think of a way to get a SQL command injection. Something like ' OR 1=1--.

Explanation: ' ends the input, 1=1 adds an additional statement that is always true and -- starts a comment, so everything behind that will be ignored.

As soon as you see the text Logged in! But can you see the flag, it is in plainsight. you've got it. To see the flag just have a look at the html source, it's hidden there.

Flag

Show flag
picoCTF{L00k5_l1k3_y0u_solv3d_it_147ec287}