← Back to Writeups
CUSTOMEasyWeb

Kurome

XESXOR9/10/20261 min read
#web#custom#easy#direct_query#no_injection_needed

Kurome

Platform: web-kids20 | Category: Web | Type: Challenge | Difficulty: Easy | OS: NA | Author: XESXOR | Date: 2019-10-20 | Status: Solved Techniques: direct_query, no_injection_needed

Summary

SQL injection task at https://2019-10-20-sqlinj.ctf.su/kurome

Kurome — Web Kids 2.0

Description

SQL injection task at https://2019-10-20-sqlinj.ctf.su/kurome

A page with a search form that queries a database of anime girls.

Analysis

The search form executes an SQL query like:

sql
SELECT * FROM girls WHERE name='<input>'

Despite the task being positioned as SQL injection, getting the flag only requires entering the correct character name.

Kurome is a character from the anime "Akame ga Kill!", sister of the main heroine Akame.

Solution

  1. Open the page https://2019-10-20-sqlinj.ctf.su/kurome
  2. Enter in the search field: Kurome
  3. Click search
  4. The results display a record with the flag in the secret column ‍​‌‌​​​​‌​‌‌​​‌‌​​‌‌​​‌‌​​‌‌​​‌​​​​‌‌​​​​​‌‌​​‌‌​​‌‌​​‌​‌​‌‌​​‌​‌‍

No SQL injection required — just querying the correct name. ‍​‌‌​​​​‌​‌‌​​‌‌​​‌‌​​‌‌​​‌‌​​‌​​​​‌‌​​​​​‌‌​​‌‌​​‌‌​​‌​‌​‌‌​​‌​‌‍