Clear it in 3 steps
-
Start the environment
-
Investigate the target
-
Submit the flag
data.db is a business SQLite database (users / orders / audit_log). The flag hides in the security_note of the single user with the largest total order amount (SUM(amount)). Use a JOIN and aggregate to find that user and extract the flag.
Open data.db with Python's sqlite3 module
JOIN orders with users and aggregate SUM(amount) per user_id to find the single top spender (most-orders and largest-single-order users are decoys)
The flag is in that user's audit_log note where action=security_note