#10
A10:2021
Server-Side Request Forgery
SSRF flaws occur whenever a web application fetches a remote resource without validating the user-supplied URL.
概述
New for 2021. This category represents the scenario where the security community is telling us this is important, even though it's not illustrated in the data at this time.
攻击者如何利用此漏洞
理解攻击模式有助于您构建更好的防御。这些是安全团队监控的技术。
Internal service access
Attackers use the server to make requests to internal services that are not directly accessible from the internet.
检测信号:
Requests to internal IP ranges, localhost, or cloud metadata endpoints
Cloud metadata exploitation
In cloud environments, SSRF can access instance metadata services to obtain credentials or sensitive configuration.
检测信号:
Requests to 169.254.169.254 or similar metadata endpoints
如何预防
- Segment remote resource access functionality in separate networks
- Enforce URL schema, port, and destination with a positive allowlist
- Do not send raw responses to clients
- Disable HTTP redirections
- Be aware of URL consistency to avoid DNS rebinding attacks
有Shoulder检测的CWE (1)
这些CWE有Shoulder检测规则。点击查看具体漏洞和修复方法。