old-29 -- SQLi (via Filename)

URL: https://webhacking.kr/challenge/web-14/index.phparrow-up-right

old-29.png

Looks like another SQLi. We are able to upload file and it seems to get recorded in database. I tried uploading t.js' for SQLi test and server didn't like that!

The usual payloads didn't work, so let's try to analyze what we have. Also odd trait during fuzzing was that / denotes start of the input...(?)

The application takes our file and inserts it into database, we control file column, but not others.

Queries should be roughly like so:

old-29-1.png

Shuffling the deck and trying payload worked, I first used arbitrary IP but it didn't like that. If we use our Public IP we can see the results.

old-29-2.png

Test injection:

Get tables:

Get columns:

Get flag:

Last updated