Mind your own business

Security Summer School

Info
Details

Category

Web Exploitation

Difficulty

Easy

Challenge Overview

From the first time we enter the website we get a form.

form

After we complete it we're redirected to that invoice page, where I saw a weird thing here.

Fibonacci Sequence Pattern

This is the well-known "Fibonacci Sequence Pattern". It made me think about numbers, that thing with 1, 1, 2, 3, 5, 8, 13, where every adjacent two numbers sum up to get the next one.

I looked at the link and saw /invoice.php?invoice=1597 then checked 1597 and saw it's a Fibonacci number.

I made my life easier using curl in Kali, and when I entered a non-Fibonacci number I got Invoice not found.

So, we can only enter Fibonacci numbers, but there are infinite numbers like this. Since we know the flag format and that there are working links with ?invoice=*fibonacci_number*, we could try to bruteforce it in Python using the requests library.

I used the following Python Script to bruteforce the first 1000 invoices.

We found the flag at invoice 10946

invoice 10946

Final Flag

SSS{1ts_n0t_nic3_t0_sn00p_ar0und}

made by k0d

Last updated