Security context

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

stylefeng/guns
master @ 2a12947
4
Fixes
5
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
cn.stylefeng.guns.core.security.base.BaseSecurityInterceptor: most-fixed (2 issues). Treat as high-risk during review.
3 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: Attackers could bypass authorization gates by utilizing multiple consecutive slashes in request URIs, which failed to map to registered resources but still matched wildcard patterns or fell through to unsecure default paths. Use of proper path canonicalization before pattern matching is vital.
Auth Bypass: Unregistered resources or URLs defaults to permissive authorization access ('return true') rather than a fail-secure approach. Interceptors must throw explicit exceptions or reject requests to unrecognized paths.
Auth Bypass: Overwriting configurations for non-security URLs (SYS_NONE_SECURITY_URLS) instead of appending to them could accidentally wipe out security exemptions or inadvertently expose administrative pathways depending on overwrite behavior.