|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/php-rest-api-cybersecurity/
课程评论:没有评论
课程名称:PHP REST API 网络安全 课程概述: 本课程旨在教你如何从基础开始保护你的PHP REST API,防止常见的安全漏洞,包括 SQL 注入、XSS、CSRF、SSTI、路径遍历、命令注入等。课程强调实践,通过动手编码的实例来展示实际攻击,并运用最佳实践进行防护。通过本课程,你将建立扎实的REST API PHP安全知识,帮助你构建更安全、更强大的API。 学习内容: 1. 如何防范PHP REST API的常见漏洞。 2. 安全错误处理与响应管理在API开发中的重要性。 3. 正确公开API文档的方法。 4. JSON格式相较于XML的优势及安全隐患(DoS, XXE, RCE)及其防护措施。 5. 安全管理API密钥以防止未授权访问。 6. 如何防止XSS和CSRF攻击。 7. 缓解SQL注入、命令注入及其他注入型攻击。 8. 处理服务器端模板注入(SSTI)和路径遍历。 9. 命令注入的危险以及如何应对零日攻击。 10. 反序列化漏洞及其预防措施。 11. PHP应用中授权和身份验证的安全最佳实践,特别是JWT漏洞。 12. 实施速率限制和流量控制,防止API滥用。 13. 保护Webhook并防止SSRF漏洞。 14. 通过真实世界漏洞重现和修复的实践编码练习。 课程结构: 课程开始时,会对REST和PHP进行快速介绍,并假设你已具有一定的基础知识。随后将直接进入开发REST API时常见的安全问题。 在前几部分中,将重点讲解API文档错误、调试及错误处理,强调这些常被忽视却至关重要的安全构建环节。 然后将深入讨论REST API中使用的数据格式,着重于JSON、XML和YAML,探讨这些格式可能引入的安全缺陷及其风险缓解措施。 接下来,将讲解常见漏洞及其防御方法,通过理论讲解和实践编码练习,你将模拟攻击并理解其运作机制。 课程还将讨论授权与身份验证漏洞,专注于JWT的安全实现。最后,介绍速率限制、流量控制、Webhook安全及SSRF防护。 目标受众: - 希望提升安全技能并保护API的PHP开发者。 - 想要加深对REST API安全最佳实践理解的Web开发者。 - 对PHP和Web应用安全感兴趣的安全专业人员。 - 希望专注于PHP安全的渗透测试人员。 - 渴望了解PHP开发中的Web应用安全的学生和爱好者。
What You'll Learn:How to secure PHP REST APIs against the most common vulnerabilities.The importance of secure error handling and response management in API development.How properly expose API documentation.Why JSON format is much more better choice then XML.What are the main XML format vulnerabilities (DoS, XXE, RCE) and how to defense against it.How to manage API keys securely and prevent unauthorized access.How to prevent XSS (Cross-Site Scripting) and CSRF (Cross-Site Request Forgery) attacks in your APIs.How to mitigate SQL Injection, Command Injection, and other injection-based attacks.How to deal with SSTI (Server-Side Template Injection), Path Traversal.Why Command Injection is so dangerous by handling zero-day advanced attack by your own hands.How to handle deserialization vulnerabilities and prevent them in PHP.Best practices for securing authorization and authentication in PHP applications, with a focus on JWT vulnerabilities.How to implement rate limiting and throttling to protect APIs from abuse.How to secure webhooks and prevent SSRF (Server-Side Request Forgery) vulnerabilities.Practical coding exercises with real-world vulnerability recreations and fixes.Requirements:Basic knowledge of PHP and REST API development.Familiarity with web development concepts (no prior security experience required).Docker and docker compose installation at own OS, basic docker knowledge to be able to run environmentShort Description:This course will teach you how to secure your PHP REST APIs from the ground up. You'll learn how to protect your applications from common vulnerabilities, including SQL injection, XSS, CSRF, SSTI, Path Traversal, Command injection and much more. The course focuses on practical, hands-on coding examples, where you'll replicate real-world attacks and then apply best practices to defend against them. By the end of the course, you'll have a solid understanding of REST API PHP security, helping you build safer and more robust APIs.COURSE STRUCTURE:The course starts with a quick introduction to REST and PHP, assuming you have some basic knowledge of both. We'll jump right into the security issues that most developers face when building REST APIs.In the first several sections, we'll focus on API documentation errors, debugging, and error handling, highlighting how common mistakes can lead to security vulnerabilities. These aspects are often overlooked but are essential for building a secure application.Then will dive into the data formats used in REST APIs, with a focus on JSON, XML, and YAML. We'll explore how these formats can introduce security flaws like XXE/DoS and discuss how to mitigate these risks.Next, we'll cover some of the most common vulnerabilities, such as XSS, CSRF, SSTI, SQL injection, Command Injection, and Path Traversal. Each vulnerability is explained with a brief theory, followed by hands-on coding exercises where you will simulate the attack, understand its mechanics, and learn how to defend against it.xThere is focused section, we'll discuss deserialization vulnerabilities and how to prevent them in PHP, covering secure error handling and response management practices.In the following sections, we'll discuss authorization and authentication vulnerabilities, with a special focus on JWT (JSON Web Tokens). You'll learn how to securely implement token-based authentication and protect against JWT vulnerabilities.The course then moves on to rate limiting and throttling, showing you how to prevent abuse and mitigate denial of service attacks. You'll also learn how to secure webhooks and prevent SSRF vulnerabilities.Throughout the course, I'll provide practical examples and real-world case studies from my own experience, giving you an insider's view of how vulnerabilities are exploited and how to safeguard against them. You'll also have the opportunity to replicate attacks in a safe, controlled environment and apply defensive techniques in real-time.Who This Course Is For:PHP developers looking to improve their security skills and protect their APIs.Web developers who want to deepen their understanding of security best practices for REST APIs.Security professionals interested in PHP and web application security.Penetration testers who want to specialize in PHP security.Students and enthusiasts eager to learn about web application security in the context of PHP development.