Level 05 · Second-order Injection

Plant once, trigger later

This is the sneaky one. The INSERT below uses parameterized queries — looks safe, would pass code review. But the search-by-author handler later concatenates the stored value back into a new query. The bug is in the read path, not the write path. Plant a payload, then trigger it.

!
Objective
Plant a comment with a malicious author, then trigger an injection by searching for that author. Successfully exfiltrate data via UNION through the search.
Loading SQLite engine