phase 5 part 5: cs algorithms, network-os, web-security topics with tested examples; all 43 stacks pass --strict

This commit is contained in:
Shikui Wang committed 2026-10-23 16:47:11 +08:00
1 parent f695bbd7cc
commit 691f738f5f
22 files changed
+1955 -37

No files matched your search

+32 -5
View File
@@ -1,15 +1,42 @@
---
id: cs.web-security.index
title: Web 安全
title: Web 安全基础
type: index
domain: cs
stack: [web-security]
tags: []
tags: [XSS, CSRF, SQL 注入, CORS, SSRF, OWASP]
week: [7, 14, 16]
---
# Web 安全
# Web 安全基础
XSS、CSRF、SQL 注入、CORS、鉴权与会话安全、大模型应用的提示词注入。
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/