Information#
Version#
By | Version | Comment |
---|---|---|
noraj | 1.0 | Creation |
CTF#
- Name : IceCTF 2016
- Website : https://icec.tf/
- Type : Online
- Format : Jeopardy
- CTF Time : link
Description#
The miners website has been working on adding a login portal so that all miners can get the flag, but they haven't made any accounts! However, your boss demands the flag now! Can you get in anyway? miners.vuln.icec.tf
Solution#
- Notice that users database is empty!
- We have the source code:
- Even if DB is empty we need the SQL request to generate 1 row:
mysqli_num_rows($result) !== 1
. - To do that we will use and
UNION
with a non-emptySELECT
request and we'll try to guess number of columns. - Username:
' UNION SELECT 1,2,3 #
and Password:random
. - Flag:
IceCTF{the_miners_union_is_a_strong_one}
.
Note: Database is MySQL.