测试版 Shoulder 目前处于测试阶段 — 结果有时可能不正确。您的反馈塑造我们接下来要修复的内容。 分享反馈
#1 A01:2021

Broken Access Control

Access control enforces policy such that users cannot act outside of their intended permissions. Failures typically lead to unauthorized information disclosure, modification, or destruction of data.

概述

Moving up from #5, 94% of applications were tested for some form of broken access control. The 34 CWEs mapped to Broken Access Control had more occurrences in applications than any other category.

攻击者如何利用此漏洞

理解攻击模式有助于您构建更好的防御。这些是安全团队监控的技术。

Parameter tampering

An attacker modifies URL parameters or hidden form fields to access unauthorized resources. For example, changing an account number in a URL to view another user's data.

检测信号: Requests with sequential IDs being tested, or parameters being modified in unexpected ways

Forced browsing

An attacker accesses pages that should require authentication by directly entering the URL, bypassing the intended navigation flow.

检测信号: Direct requests to admin or privileged URLs without proper session tokens

Privilege escalation

A standard user gains access to admin functionality by manipulating their role or permissions data.

检测信号: Role parameters being modified in requests, or admin endpoints accessed by non-admin sessions

如何预防

  • Except for public resources, deny by default
  • Implement access control mechanisms once and reuse throughout the application
  • Model access controls should enforce record ownership
  • Disable web server directory listing and ensure metadata files are not present
  • Log access control failures and alert admins when appropriate
  • Rate limit API and controller access to minimize automated attack tooling
  • Invalidate stateful session identifiers on logout

有Shoulder检测的CWE (12)

这些CWE有Shoulder检测规则。点击查看具体漏洞和修复方法。

其他映射的CWE (22)

这些CWE映射到此类别,但尚无Shoulder规则。