Enumeration

I find another vhost in the nginx configurations in /etc/nginx

After the register and log in

Unfortunately, we cannot read the user.txt as we only got the shell as www-data.

The config file of the newly found subdomain:

We cannot read the config files as they are in root. But we know MySQL is running as there is a mysql directory in /etc.

SQL Injection

Putting the wrong ticket gives us an error

We know now its vulnerable.

Thats a Boolean-based Bilnd SQLi.

When checking it out with burpsuite it only sends the id as JSON. Its a websocket denoted by ws.

We only get Ticket Exists when the query is successful. We can use that information. As we know that using UNION we can query and test for columns.

So we get back 3 columns.

User enumeration

0xdf explained it nicely.

This query will look through the users table in the MySQL database and it will return true if a user whose name starts with a exists. That's all we need.

Now we just brute force it to get the full usernames. Doing it manually isn't the most efficient way.

Now we can make mysql to dump the databases with -dbs.

After enumerating the tables in soccer_db we find the credentials:

player, thats the folder we saw in /home.

Last updated