WebGoat 8.1 靶场 刷题通关教程全攻略 - (A1) Injection

WebGoat 8.1 靶场 刷题通关教程全攻略 - A1 Injection

  • (A1) Injection
    • SQL Injection (intro)
      • 2. It is your turn!
      • 3. It is your turn!
      • 4. Data Definition Language (DDL)
      • 5. Data Control Language (DCL)
      • 9. Try It! String SQL injection
      • 10. Try It! Numeric SQL injection
      • 11. It is your turn!
      • 12. It is your turn!
      • 13. It is your turn!
    • SQL Injection (advanced)
      • 3. Try It! Pulling data from other tables
      • 5.
    • SQL Injection (mitigation)
      • 5. Try it! Writing safe code
      • 6. Try it! Writing safe code
      • 9. Input validation alone is not enough!!
      • 10. Input validation alone is not enough!!
      • 12.
    • Path traversal
      • 2. Path traversal while uploading files
      • 3. Path traversal while uploading files
      • 4. Path traversal while uploading files
      • 5. Retrieving other files with a path traversal

(A1) Injection

SQL Injection (intro)

2. It is your turn!

WebGoat 8.1 靶场 刷题通关教程全攻略 - (A1) Injection_第1张图片

根据页面所给的数据表,以及题目中的要求,可以写出下列语句

SELECT department FROM employees WHERE first_name='Bob' AND last_name='Franco';

WebGoat 8.1 靶场 刷题通关教程全攻略 - (A1) Injection_第2张图片

3. It is your turn!

WebGoat 8.1 靶场 刷题通关教程全攻略 - (A1) Injection_第3张图片

根据题目要求,写出下列语句

UPDATE employees SET department='Sales' WHERE first_name='Tobi' AND last_name='Barnett';

WebGoat 8.1 靶场 刷题通关教程全攻略 - (A1) Injection_第4张图片

4. Data Definition Language (DDL)

WebGoat 8.1 靶场 刷题通关教程全攻略 - (A1) Injection_第5张图片

根据题目要求,写出下列语句

ALTER TABLE employees ADD phone varchar(20)

WebGoat 8.1 靶场 刷题通关教程全攻略 - (A1) Injection_第6张图片

5. Data Control Language (DCL)

WebGoat 8.1 靶场 刷题通关教程全攻略 - (A1) Injection_第7张图片

根据题目要求,写出下列语句

GRANT ALTER TABLE TO UnauthorizedUser

WebGoat 8.1 靶场 刷题通关教程全攻略 - (A1) Injection_第8张图片

9. Try It! String SQL injection

WebGoat 8.1 靶场 刷题通关教程全攻略 - (A1) Injection_第9张图片

根据上文讲解,选择第一项为Smith',第二项为or,第三项为'1' = '1,即可完成注入

你可能感兴趣的:(WebGoat,网络攻防学习,sql,网络安全)