Files

43 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
id: cs.web-security.index
title: Web 安全基础
type: index
domain: cs
stack: [web-security]
tags: [XSS, CSRF, SQL 注入, CORS, SSRF, OWASP]
week: [7, 14, 16]
---
# Web 安全基础
XSS、CSRF、SQL 注入、CORS、SSRF 的原理和防御,以及它们在 AI 应用中的新形态(模型输出渲染、Agent 工具、Text-to-SQL)。BOSS直聘 2026-10-23 的调研中有岗位提到 Web 安全基础。
## 学习路线
| 顺序 | 课程 | 级别 | 预计 |
| --- | --- | --- | --- |
| 1 | [Web 安全基础:XSS、CSRF、SQL 注入、CORS、SSRF 的原理、防御和在 AI 应用中的新形态](01-xss-csrf-sqli-cors-ssrf.md) | 基础 | 3 小时 |
## 企业场景
- [AI 客服上线前的安全评审:回答渲染 XSS、抓取工具 SSRF、Text-to-SQL 注入和跨域配置](scenarios/ai-app-security.md)
## 面试题
- [Web 安全面试题](interview.md)
## 示例代码
- [examples/secure-api](examples/secure-api/):每类攻击的错误写法与正确写法,13 个测试证明漏洞可利用、修复有效(FastAPI + sqlite3)
## 在 16 周计划中
- [第 7 周:前端工程化查漏](../../../plan/week07-frontend.md)
- [第 14 周:后端扩展与部署](../../../plan/week14-backend-extend-deploy.md)
- [第 16 周:面试冲刺](../../../plan/week16-interview.md)
## 参考
- OWASP Top 10:https://owasp.org/www-project-top-ten/
- OWASP LLM 应用 Top 10:https://genai.owasp.org/