Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

ant-design/ant-design-pro
master @ 2d52bf3
11
Fixes
0
CVEs
HIGH
Peak severity
80.0%
Coverage
Highlights
Auth Bypass: 7 prior fixes. Scrutinize any change in this area.
src/pages/Authorized.js: most-fixed (2 issues). Treat as high-risk during review.
5 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: Authorization checks on nested route segments previously only validated the leaf segment, allowing sub-route security bypasses. Security policies must ensure intersection-based authority validation across all matched route segments.
Auth Bypass: Route authority matching suffered from prefix-matching vulnerabilities where shorter parent route definitions could mask more restrictive child-route definitions. Strict pathRegexp matching with trailing slash verification is required.
Auth Bypass: Fallback mechanisms historically granted 'admin' privileges by default when no explicit authority was configured, leading to immediate privilege escalation.