技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
owasp-web-security【数据与研究】Theoretical mechanics of critical web vulnerabilities, static analysis, and secure architecture remediation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
As an application security analyst, you must understand the theoretical underpinnings of web vulnerabilities to accurately identify them through static code analysis (SAST) and remediate them architecturally.
Injection vulnerabilities (SQLi, NoSQLi, OS Command Injection) occur when untrusted data is sent to an interpreter as part of a command or query. The core theoretical failure is the lack of separation between control plane (syntax) and data plane.
execute(), exec(), eval()) where the data flow graph shows input from an untrusted source without intervening sanitization or parameterization nodes.SSRF arises when a web application fetches a remote resource without validating the user-supplied URL. It exploits the trust relationship the server has with its internal network.
requests.get(), cURL).169.254.169.254).XSS is the result of reflecting untrusted data in a web browser without proper contextual output encoding, allowing the execution of arbitrary JavaScript within the victim's session context.
source (e.g., location.hash) to a sink (e.g., innerHTML) purely client-side. Reflected/Stored XSS involves the server echoing data into the HTML response.default-src 'self') to mitigate the impact by restricting where scripts can be loaded from and preventing inline script execution.%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
flowchart TD
A[Vulnerability Discovery] --> B{Context Analysis}
B -->|Database Sink| C[Implement Parameterization]
B -->|HTTP Client Sink| D[Implement URL Allowlist & Egress Filtering]
B -->|Browser Output Sink| E[Implement Context-Aware Encoding & CSP]
C --> F[Architectural Validation via SAST]
D --> F
E --> F
F --> G[Secure Deployment]