Новая Школа - онлайн-школа подготовки к ЕГЭ
Задача Задача №3619953
А
Аноним
17 июня 2026 22:48 · публичный вопрос
А
Аноним

555-1 waitfor delay '0:0:15' --

Нейросеть17 июня 2026 22:48

That looks like a time-based blind SQL injection payload for SQL Server.

  • 555-1: Probably a label or question number (not part of the SQL itself).
  • waitfor delay '0:0:15': T-SQL command that pauses the query for 15 seconds (0 hours, 0 minutes, 15 seconds).
  • --: SQL comment; everything after it is ignored, helping to terminate the injected statement cleanly.

What it does conceptually:

  • If a vulnerable application concatenates user input into a SQL statement, injecting something like WAITFOR DELAY '0:0:15' -- can cause the server to sleep for 15 seconds. If the response times noticeably increase, it indicates the injection is possible. This is the classic time-based blind SQL injection technique.

Common unsafe pattern (vulnerable, for understanding only):

  • Vulnerable query: SELECT * FROM users WHERE username = 'USER_INPUT';
  • Attacker input: anything' WAITFOR DELAY '0:0:15' --
  • Result: the server waits ~15 seconds before responding, signaling a vulnerability.

Defenses (important for exams and real security):

  • Use parameterized queries / prepared statements.
  • Avoid dynamic SQL built by string concatenation.
  • Use least-privilege accounts for the database (no broad permissions for the app).
  • Input validation and allow-listed inputs where possible.
  • Use ORM/query builders that separate data from code.
  • Employ Web Application Firewall (WAF) and security testing in a lab with proper authorization.
  • Regular security testing: use tools that assess for TB-SQLi in a safe, authorized environment; review code for insecure dynamic SQL patterns.

If you want, I can give a quick exam-style question and a model answer to practice this concept.

555-1 waitfor delay '0:0:15' --
That looks like a time-based blind SQL injection payload for SQL Server. - 555-1: Probably a label or question number (not part of the SQL itself). - waitfor delay '0:0:15': T-SQL command that pauses the query for 15 seconds (0 hours, 0 minutes, 15 seconds). - --: SQL comment; everything after it is ignored, helping to terminate the injected statement cleanly. What it does conceptually: - If a vulnerable application concatenates user input into a SQL statement, injecting something like WAITFOR DELAY '0:0:15' -- can cause the server to sleep for 15 seconds. If the response times noticeably increase, it indicates the injection is possible. This is the classic time-based blind SQL injection technique. Common unsafe pattern (vulnerable, for understanding only): - Vulnerable query: SELECT * FROM users WHERE username = 'USER_INPUT'; - Attacker input: anything' WAITFOR DELAY '0:0:15' -- - Result: the server waits ~15 seconds before responding, signaling a vulnerability. Defenses (important for exams and real security): - Use parameterized queries / prepared statements. - Avoid dynamic SQL built by string concatenation. - Use least-privilege accounts for the database (no broad permissions for the app). - Input validation and allow-listed inputs where possible. - Use ORM/query builders that separate data from code. - Employ Web Application Firewall (WAF) and security testing in a lab with proper authorization. - Regular security testing: use tools that assess for TB-SQLi in a safe, authorized environment; review code for insecure dynamic SQL patterns. If you want, I can give a quick exam-style question and a model answer to practice this concept.