← 返回首页

Web安全

Web Security

课程介绍 Course Introduction

学分:3 | 先修课:计算机网络、数据库系统 | 学期:第6学期

Web安全课程聚焦Web应用的安全威胁与防护技术。涵盖OWASP Top 10漏洞,包括SQL注入、XSS、CSRF、SSRF、文件上传漏洞、反序列化漏洞、认证与会话管理缺陷等。学生将学习漏洞原理、渗透测试方法、安全编码规范,以及Web应用防火墙(WAF)的配置与使用。

Web Security focuses on security threats and protection techniques for web applications. The course covers OWASP Top 10 vulnerabilities including SQL injection, XSS, CSRF, SSRF, file upload vulnerabilities, deserialization flaws, and authentication/session management defects. Students learn vulnerability principles, penetration testing methods, secure coding standards, and configuration of Web Application Firewalls (WAF).

大作业 Final Project

作业标题:Web应用渗透测试与漏洞修复

对给定Web应用进行渗透测试,发现并验证SQL注入、XSS、CSRF等漏洞,编写漏洞利用PoC,提出修复方案并实施代码加固,提交测试报告与修复前后对比。

Perform penetration testing on a given web application, identify and verify vulnerabilities such as SQL injection, XSS, and CSRF, write proof-of-concept exploits, propose and implement fixes, and submit a test report with before-and-after comparison.

实施步骤 Implementation Steps

📋 示例:对一个Web应用做渗透测试并修复漏洞,比如一个开源的博客系统。你需要用Burp Suite或OWASP ZAP扫描常见漏洞(SQL注入、XSS、CSRF),利用漏洞获取敏感数据,然后编写修复代码并验证安全性。
步骤 1
漏洞扫描
使用扫描工具对目标网站进行安全扫描,识别潜在漏洞
产出:扫描报告
步骤 2
漏洞验证
手动验证SQL注入、XSS、CSRF等漏洞的存在性
产出:漏洞验证报告
步骤 3
漏洞利用与修复
分析漏洞利用方式,提出修复方案并验证修复效果
产出:修复方案
步骤 4
安全加固
实施安全加固措施,包括输入过滤、输出编码、权限控制等
产出:加固方案
步骤 5
安全报告
撰写完整的安全评估报告
产出:安全评估报告

Steps

Step 1
Vulnerability Scanning
Scan target website, identify potential vulnerabilities
Deliverable: Scan Report
Step 2
Vulnerability Verification
Manually verify SQL injection, XSS, CSRF vulnerabilities
Deliverable: Verification Report
Step 3
Exploitation & Fix
Analyze exploitation methods, propose and verify fixes
Deliverable: Fix Plan
Step 4
Security Hardening
Implement input filtering, output encoding, access control
Deliverable: Hardening Plan
Step 5
Security Report
Prepare comprehensive security assessment report
Deliverable: Security Assessment Report

Prerequisites · International Exams · Contact · Back to top · Home